Operating System - HP-UX
1821592 Members
3371 Online
109633 Solutions
New Discussion юеВ

Quota Problem: quotaon error

 
Bruno Rebelo Lobato
Occasional Advisor

Quota Problem: quotaon error

I follow these steps to enable quota in my home users partition:

#cpset /dev/null /export/home/quotas 600 root bin

Then i enable quota for user blobato.
#edquota blobato

I Modify the line /etc/fstab like this
/dev/vgRAID1/lvolhome /export/home vxfs rw,suid,largefiles,delaylog,datainlog,quota 0 2

then i reboot my L2000 server.
But when the server come up, i saw my /etc/mnttab that the quota option not be active :
/dev/vgRAID1/lvolhome /export/home vxfs log,nodatainlog 0 0 1118322353

Then i try run :
#quotaon -v /export/home

but i received the following message :

quotactl: /dev/vgRAID1/lvolhome: I/O error

The most strange is, i have other partitions (vxfs) with quota running FINE, like you see in this output :
root : quotaon -av
/training: quotas turned on
/temp_teste: quotas turned on
quotactl: /dev/vgRAID1/lvolhome: I/O error

Can anybody help-me, please. I need to activate the quota on home users.

Thank's.

Bruno Lobato
Brazil - Amazon
18 REPLIES 18
RAC_1
Honored Contributor

Re: Quota Problem: quotaon error

Are there any problems with that lvol??
Check dmesg/syslog. mount -p | grep "lvol" Is lvol mounted with quota option??

Also make sure you correctly updated fstab. Also when you rebooted system, did you see anything wrong, any error messages for this lvol??

Anil
There is no substitute to HARDWORK
Victor BERRIDGE
Honored Contributor

Re: Quota Problem: quotaon error

Hi,
In your home directory you should find a file called quotas with perms rw only to root, is it there?
Then try:
Unmount /export/home
mount -o quota /dev/vgRAID1/lvolhome /export/home


Good luck
Victor
Bruno Rebelo Lobato
Occasional Advisor

Re: Quota Problem: quotaon error

## RAC ###
>> Are there any problems with that lvol??

No, the lvol is ok and working.

>> Check dmesg/syslog. mount -p | grep "lvol" Is lvol mounted with quota option??

The output off this command is the /etc/mnttab file, how i said in my post in the mnttab the quota option don't is showed but i set up the quota option in the /etc/fstab before boot my server.


>>Also make sure you correctly updated fstab.

Yes, please see :
/dev/vgRAID1/lvolhome /export/home vxfs rw,suid,largefiles,delaylog,datainlog,quota 0 2

Also when you rebooted system, did you see anything wrong, any error messages for this lvol??

No, everything is fine. with all the partions, but only in this i can't up the quota service :-(

### Victor ###

>> In your home directory you should find a file called quotas with perms rw only to root, is it there?

Yes, see :
-rw------- 1 root bin 0 Jun 9 15:25 quotas

>> Then try:
Unmount /export/home
mount -o quota /dev/vgRAID1/lvolhome /export/home

I can't umount my home partition at this moment, but when i try this :

mount -o remount,quota /dev/vgRAID1/lvolhome /export/home/
vxfs mount: cannot enable quotas

The point is, i have others partions in the same server, and in this other partitions the quota option works :-(.

Any other sugestions ?

Thank's.
RAC_1
Honored Contributor

Re: Quota Problem: quotaon error

fstype -v /dev/vgRAID1/rlvolhome

What does it say??
There is no substitute to HARDWORK
Bruno Rebelo Lobato
Occasional Advisor

Re: Quota Problem: quotaon error

>> fstype -v /dev/vgRAID1/rlvolhome

>> What does it say??

I don't know, thats is because i am under HPUX 11.00 , but i don't have this command :-(

Thanks.
Ermin Borovac
Honored Contributor

Re: Quota Problem: quotaon error

I/O error indicates problem with physical media. Find out what physical volumes are on this logical volume, then check if have any stale extents on each disk. You can also test disks by running dd on each disk device file and sending output to /dev/null.

# dd if=/dev/rdsk/cxtxdx of=/dev/null bs=64k
Bruno Rebelo Lobato
Occasional Advisor

Re: Quota Problem: quotaon error

>> I/O error indicates problem with physical media. Find out what physical volumes are on this logical volume, then check if have any stale extents on each disk. You can also test disks by running dd on each disk device file and sending output to /dev/null.

# dd if=/dev/rdsk/cxtxdx of=/dev/null bs=64k

All the extents are "current", and the dd command work's fine, whithout problems.

Any other sugestion ?

Thank's.
Robert-Jan Goossens
Honored Contributor

Re: Quota Problem: quotaon error

Bruno,

You are sure you are using quotas on a vxfs filesystem ?

# fstyp -v /dev/vgRAID1/rlvolhome

Did you try to use the quotacheck command ?

# qoutacheck -F vxfs -v /export/home

HTH,
Robert-Jan
Bruno Rebelo Lobato
Occasional Advisor

Re: Quota Problem: quotaon error

>> You are sure you are using quotas on a vxfs filesystem ?

>> # fstyp -v /dev/vgRAID1/rlvolhome

Yes, see the output :
root < MN >: fstyp -v /dev/vgRAID1/rlvolhome
vxfs
version: 3
f_bsize: 8192
f_frsize: 8192
f_blocks: 12800000
f_bfree: 1354612
f_bavail: 1354612
f_files: 266752
f_ffree: 1073792360
f_favail: 1073792360
f_fsid: 1073872897
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 16
f_fsindex: 6
f_size: 12800000

>>Did you try to use the quotacheck command ?

>># quotacheck -F vxfs -v /export/home
root < MN >: quotacheck -F vxfs -v /export/home
Syncing quotas for /dev/vgRAID1/lvolhome (/export/home)

The point is, i have others vxfs partitions in the same server, and in this other partitions the quota option works FINE:

root < MN >: repquota -av
/dev/vgRAID3/lvoltraining (/training):
Block limits File limits
User used soft hard timeleft used soft hard timeleft
blobato -- 0 120000 150000 0 400 500
smoraes -- 8 90000 100000 13 0 0
/dev/vgRAID9/lvolteste (/temp_teste):
Block limits File limits
User used soft hard timeleft used soft hard timeleft
blobato -- 0 120000 150000 0 400 500
/dev/vgRAID1/lvolhome (/export/home):
Block limits File limits
User used soft hard timeleft used soft hard timeleft

Any other sugestions ?

Thank's
Victor BERRIDGE
Honored Contributor

Re: Quota Problem: quotaon error

The command does exist under HPUX11.00 but you had it mispelled as Robert-Jan gives you the right spelling: fstyp

Could it be you lack of space in that file system? Adding quotas does use a bit of space...


All the best
Victor
Robert-Jan Goossens
Honored Contributor

Re: Quota Problem: quotaon error

from the quotaon manpage
---
The quotaon command enables quotas on one or more HFS file systems.
---
Yours is vxfs !
Victor BERRIDGE
Honored Contributor

Re: Quota Problem: quotaon error

Just to add more confusion
(OK this is a 10.20 box... but its all I have with quotas....)
# quotacheck -v /dev/s2vg01/lvol5
Syncing quotas for /dev/s2vg01/lvol5 (/users/ocpa)
mos2 # quota -v madani
Disk quotas for madani (uid 2059):
Filesystem usage quota limit timeleft files quota limit timeleft
/users/ocpa 10024 6200 10000 7.0 days 132 240 320
mos2 # quotaoff /users/ocpa
mos2 # quota -v madani
Disk quotas for madani (uid 2059):
Filesystem usage quota limit timeleft files quota limit timeleft
mos2 # quotaon /users/ocpa
mos2 # quota -v madani
Disk quotas for madani (uid 2059):
Filesystem usage quota limit timeleft files quota limit timeleft
/users/ocpa 10024 6200 10000 7.0 days 132 240 320
mos2 # fstyp /dev/s2vg01/lvol5
vxfs
Victor BERRIDGE
Honored Contributor

Re: Quota Problem: quotaon error

I should have added - and its a trusted box...
Victor BERRIDGE
Honored Contributor

Re: Quota Problem: quotaon error

I wonder...
Is there no ACL of sone sort preventing you to use quotas on this file system?


All the best
Victor
Robert-Jan Goossens
Honored Contributor

Re: Quota Problem: quotaon error

Duhhhh ??

could this be a patch problem ?

Bruno, could you post your hpux version and the output of

# swlist -l product | grep -i quota

Regards,
Robert-Jan
Bruno Rebelo Lobato
Occasional Advisor

Re: Quota Problem: quotaon error

### Victor ###
>> The command does exist under HPUX11.00 but you had it mispelled as Robert-Jan gives you the right spelling: fstyp

yes, i saw.

>> Could it be you lack of space in that file system? Adding quotas does use a bit of space...

root < MN >: df -k /export/home/
/export/home (/dev/vgRAID1/lvolhome ) : 102322632 total allocated Kb
10758552 free allocated Kb
91564080 used allocated Kb
89 % allocation used

### Robert ###
>> from the quotaon manpage
---
>> The quotaon command enables quotas on one or more HFS file systems.
---
>> Yours is vxfs !

I agree with you, but then why the command in the others partiotions yhat be vxfs too ?

See some lines of my /etc/fstab :
---------------------------------------------
/dev/vgRAID1/lvolhome /export/home vxfs rw,suid,largefiles,delaylog,datainlog,quota 0 2
/dev/vgRAID3/lvoltraining /training vxfs rw,suid,largefiles,delaylog,datainlog,quota 0 2
/dev/vgRAID9/lvolteste /temp_teste vxfs rw,suid,largefiles,delaylog,datainlog,quota 0 2
---------------------------------------------
When a i run the quotaon command see the output :
/training: quotas turned on
/temp_teste: quotas turned on
quotactl: /dev/vgRAID1/lvolhome: I/O error

Only in the home partition the quota don't work's :-(

Any other sugestions.

Thank's for the support.

Bruno Rebelo Lobato
Occasional Advisor

Re: Quota Problem: quotaon error

>> Is there no ACL of sone sort preventing you to use quotas on this file system?

No, all the fylesystems have the same configuration.

HP-UX Version :
root < MN >: uname -a
HP-UX host B.11.00 A 9000/800

swlist output :
root < fs001 - MN >: swlist -l product | grep -i quota
DiskQuota B.11.00 DiskQuota
PHCO_14194 1.0 quota(1) patch for NFS-quotas
PHCO_20070 1.0 quota(1) patch for NFS-quotas
PHKL_18799 1.0 PANIC in diskquota while running sendmail
PHKL_20401 1.0 fix quotaon I/O error problem

Thank's.
Ermin Borovac
Honored Contributor

Re: Quota Problem: quotaon error

Patch PHKL_20401 seems to fix exactly the same problem as yours.

*** START PATCH NOTES ***
Patch Name: PHKL_20401
Patch Description: s700_800 11.00 fix quotaon I/O error problem
quotaon does not work. It fails with I/O error.
# quotaon -v /home
quotactl: /dev/vg02/lvol1: I/O error
Negative user IDs were not taken care of while processing
the quotas. For example the UID of nobody is -2. This
was failing a sanity check in the quotaon code path.

Resolution:
Cast UIDs to unsigned in sanity checks
in various paths to take care of negative UIDs.
*** END PATCH NOTES ***

You seem to have this patch installed. Still, can you please verify that you see PHKL_20401 in the output of 'what'?

# what /usr/conf/lib/libvxfs_base.a | grep -i quota
# what /stand/vmunix | grep -i quota