[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | AdvFS Support/Info/Questions Notefile |
Notice: | note 187 is Freq Asked Questions;note 7 is support policy |
Moderator: | DECWET::DADDAMIO |
|
Created: | Wed Jun 02 1993 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 1077 |
Total number of notes: | 4417 |
1005.0. "problem with quotacheck" by MLNCSC::VOCI () Wed Feb 19 1997 02:45
Hello,
a customer has the following problem with ADVFS. He creates a file set, copies
some data and issues the df command, the allocations shown are correct.
He then issues the command quatacheck, after this command the df non longer
shows correct values.
The problem apears using both the quota* and the vquota* commands.
Digital Unix 4.0
Following you'll find the script used to reproduce the problem and the log file.
==========> SCRIPT
#!/bin/csh
set verbose
cd /
umount /u /z
rmfdmn -f marte
mkfdmn /dev/rz1a marte
addvol /dev/rz1g marte
addvol /dev/rz1h marte
addvol /dev/rz2c marte
addvol /dev/rz3c marte
mkfset marte f1
mkfset marte f2
mkdir /z /u
mount "marte#f1" /z
mount "marte#f2" /u
df -k
mkdir /z/lele
cp -r /a/lele /z
df -k
chown -R lele /z/lele
du -ks /z/lele
quota -vu lele
quotacheck -av
echo ho finito
df -k
cat /etc/fstab
===========> END SCRIPT
The problem is on marte#f1 and on marte#f2, the df issued before the quotacheck
shows 54MB allocated, this value becomes 1033MB in the output of the second df.
==========> LOG FILE
cd /
umount /u /z
rmfdmn -f marte
rmfdmn: domain marte removed.
mkfdmn /dev/rz1a marte
addvol /dev/rz1g marte
addvol /dev/rz1h marte
addvol /dev/rz2c marte
addvol /dev/rz3c marte
mkfset marte f1
mkfset marte f2
mkdir /z /u
mkdir: cannot create /z.
/z: File exists
mkdir: cannot create /u.
/u: File exists
mount "marte#f1" /z
mount "marte#f2" /u
df -k
Filesystem 1024-blocks Used Avail Capacity Mounted on
raid0_root#f1 65536 55494 3048 95% /
raid0#usr 600000 543369 56631 91% /usr
raid0#f1 6000000 1032739 1603304 40% /a
raid0#f2 1500000 1033927 466073 69% /b
terra#f1 1162850 1033927 128923 89% /v
terra_root#f1 65536 55464 3072 95% /bck_root
terra#usr 626150 544238 81912 87% /bck_usr
marte#f1 5965016 16 5959728 1% /z
marte#f2 5965016 16 5959728 1% /u
mkdir /z/lele
cp -r /a/lele /z
df -k
Filesystem 1024-blocks Used Avail Capacity Mounted on
raid0_root#f1 65536 55494 3048 95% /
raid0#usr 600000 543369 56631 91% /usr
raid0#f1 6000000 1032739 1603304 40% /a
raid0#f2 1500000 1033927 466073 69% /b
terra#f1 1162850 1033927 128923 89% /v
terra_root#f1 65536 55464 3072 95% /bck_root
terra#usr 626150 544238 81912 87% /bck_usr
marte#f1 5965016 54534 5899224 1% /z
marte#f2 5965016 16 5899224 1% /u
chown -R lele /z/lele
du -ks /z/lele
54518 /z/lele
quota -vu lele
Disk quotas for user lele (uid 104):
Filesystem blocks quota limit grace files quota limit grace
swap0 0 0 0 0 0 0
swap1 0 0 0 0 0 0
/ 0 0 0 0 0 0
/usr 0 0 0 0 0 0
/a 22793 0 0 3 0 0
/b 22793 0 0 3 0 0
/z 54518 0 0 134 0 0
/u 0 0 0 0 0 0
/v 22793 0 0 3 0 0
/bck_root 0 0 0 0 0 0
/bck_usr 0 0 0 0 0 0
quotacheck -av
*** Checking user and group quotas for raid0#f1 (/a)
/a: root fixed: blocks 4237 -> 4231
/a: maurizio fixed: inodes 2 -> 0 blocks 3 -> 0
/a: amariott fixed: inodes 3 -> 0 blocks 12 -> 0
/a: paolo fixed: blocks 10 -> 0
/a: AMBCLIM fixed: inodes 7336 -> 7331 blocks 1033773 -> 1033759
*** Checking user and group quotas for raid0#f2 (/b)
*** Checking user and group quotas for marte#f1 (/z)
/z: root fixed: inodes 2 -> 60 blocks 16 -> 4231
/z: corrado fixed: inodes 0 -> 1054 blocks 0 -> 38599
/z: lele fixed: inodes 134 -> 3 blocks 54518 -> 22793
/z: clima fixed: inodes 0 -> 1535 blocks 0 -> 561449
/z: paola fixed: inodes 0 -> 444 blocks 0 -> 62640
/z: sandra fixed: inodes 0 -> 1180 blocks 0 -> 180373
/z: marco fixed: inodes 0 -> 1632 blocks 0 -> 99203
/z: claudia fixed: inodes 0 -> 772 blocks 0 -> 59318
/z: antonio fixed: inodes 0 -> 632 blocks 0 -> 4422
/z: jruge fixed: inodes 0 -> 41 blocks 0 -> 899
/z: fixed: inodes 41 -> 0 blocks 899 -> 0
/z: system fixed: inodes 136 -> 22 blocks 54534 -> 168
/z: AMBCLIM fixed: inodes 0 -> 7331 blocks 0 -> 1033759
/z: fixed: inodes 7331 -> 0 blocks 1033759 -> 0
*** Checking user and group quotas for terra#f1 (/v)
*** Checking user and group quotas for marte#f2 (/u)
/u: root fixed: inodes 2 -> 60 blocks 16 -> 4231
/u: corrado fixed: inodes 0 -> 1054 blocks 0 -> 38599
/u: lele fixed: inodes 0 -> 3 blocks 0 -> 22793
/u: clima fixed: inodes 0 -> 1535 blocks 0 -> 561449
/u: paola fixed: inodes 0 -> 444 blocks 0 -> 62640
/u: sandra fixed: inodes 0 -> 1180 blocks 0 -> 180373
/u: marco fixed: inodes 0 -> 1632 blocks 0 -> 99203
/u: claudia fixed: inodes 0 -> 772 blocks 0 -> 59318
/u: antonio fixed: inodes 0 -> 632 blocks 0 -> 4422
/u: jruge fixed: inodes 0 -> 41 blocks 0 -> 899
/u: fixed: inodes 41 -> 0 blocks 899 -> 0
/u: system fixed: inodes 2 -> 22 blocks 16 -> 168
/u: AMBCLIM fixed: inodes 0 -> 7331 blocks 0 -> 1033759
/u: fixed: inodes 7331 -> 0 blocks 1033759 -> 0
echo ho finito
ho finito
df -k
Filesystem 1024-blocks Used Avail Capacity Mounted on
raid0_root#f1 65536 55494 3048 95% /
raid0#usr 600000 543377 56623 91% /usr
raid0#f1 6000000 1032725 1603296 40% /a
raid0#f2 1500000 1033927 466073 69% /b
terra#f1 1162850 1033927 128923 89% /v
terra_root#f1 65536 55464 3072 95% /bck_root
terra#usr 626150 544238 81912 87% /bck_usr
marte#f1 5965016 1033927 4931089 18% /z
marte#f2 5965016 1033927 4931089 18% /u
cat /etc/fstab
/dev/rz0b swap0 ufs sw 0 2
/dev/rz1b swap1 ufs sw 0 2
raid0_root#f1 / advfs rw 1 0
raid0#usr /usr advfs rw 1 0
raid0#f1 /a advfs rw,userquota,groupquota 0 2
raid0#f2 /b advfs rw,userquota,groupquota 0 2
marte#f1 /z advfs rw,userquota,groupquota 0 2
marte#f2 /u advfs rw,userquota,groupquota 0 2
terra#f1 /v advfs rw,userquota,groupquota 0 2
cray:/usr/home/maurizio /cray_maurizio nfs ro,bg
terra_root#f1 /bck_root advfs ro 0 0
terra#usr /bck_usr advfs ro 0 0
/proc /proc procfs rls /w 0 0
T.R | Title | User | Personal Name | Date | Lines |
---|
1005.1 | Quotacheck -a | NETRIX::"[email protected]" | David Akers | Wed Feb 19 1997 06:07 | 12 |
| This is a known bug and it has been fixed in 4.2 and is being
backported to 4.0.
The problem is in the quotacheck command. When using the -a switch and
having the filesystems set in /etc/fstab with the fsck number > 1. The
fsck number tells quotacheck to run multi-threaded and check each filesystem
in parallel. The quotacheck command has a bug that makes it non-thread safe.
The work around is to either changes the fsck number in /etc/fstab to 1 for
all filesystems or to run quotacheck individually on each filesystem.
[Posted by WWW Notes gateway]
|