- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- edquota parameter and block size
Operating System - HP-UX
1824169
Members
3343
Online
109669
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 11:15 AM
тАО12-06-2000 11:15 AM
Hi:
I'm attempting to set up a quota for a user on the /home filesystem. I want it to be 50MB. My problem is I'm not very good with block sizes and I was hoping someone could tell me if the steps I'm taking are accurate.
1. DETERMINE BLOCK SIZE OF HOME FILESYSTEM
(Maybe this has nothing to do with my problem, please read further)
# fstyp -v /dev/vg00/lvol4
hfs
f_frsize: 1024
At this point I've determined the block size of /home to be 1K
2. SET UP THE QUOTA PARAMETERS FOR MY USER USING edquota.
# edquota timn
fs /home blocks (soft = 40000, hard = 50000) inodes (soft = 400, hard = 500)
I'm computing the hard block to be:
1024 x 50000 = 51,200,000.
Is my logic correct here? I guess my real question is: Is the block size for setting up quotas dependent upon what the block size is for the filesystem? In my case it 1024 as I've shown you above.
How do I know if the block size edquota is using is 512, 1024, or 2048??
Thank you,
I'm attempting to set up a quota for a user on the /home filesystem. I want it to be 50MB. My problem is I'm not very good with block sizes and I was hoping someone could tell me if the steps I'm taking are accurate.
1. DETERMINE BLOCK SIZE OF HOME FILESYSTEM
(Maybe this has nothing to do with my problem, please read further)
# fstyp -v /dev/vg00/lvol4
hfs
f_frsize: 1024
At this point I've determined the block size of /home to be 1K
2. SET UP THE QUOTA PARAMETERS FOR MY USER USING edquota.
# edquota timn
fs /home blocks (soft = 40000, hard = 50000) inodes (soft = 400, hard = 500)
I'm computing the hard block to be:
1024 x 50000 = 51,200,000.
Is my logic correct here? I guess my real question is: Is the block size for setting up quotas dependent upon what the block size is for the filesystem? In my case it 1024 as I've shown you above.
How do I know if the block size edquota is using is 512, 1024, or 2048??
Thank you,
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 11:32 AM
тАО12-06-2000 11:32 AM
Re: edquota parameter and block size
There is only one way to check: fix a quota and compare.You are wright you seem to be in 1k block so soft 40000 should be 40Mb... how many files do you authorize that person to have is nb inodes.
Here is a case:
Disk quotas for batisse (uid 2123):
Filesystem usage quota limit timeleft files quota limit timeleft
/users/batisse 208 6200 10000
cd /users/batisse; du -sk
batisse # du -ks
208 .
so 50Mb quota is 50000...
Good luck
Victor
Here is a case:
Disk quotas for batisse (uid 2123):
Filesystem usage quota limit timeleft files quota limit timeleft
/users/batisse 208 6200 10000
cd /users/batisse; du -sk
batisse # du -ks
208 .
so 50Mb quota is 50000...
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2000 08:26 AM
тАО12-07-2000 08:26 AM
Solution
Hi Tim,
Bocksize for edquota is 1Kbytes.
Why are you multiplying 1024 by 50000 ? That woulg give approx 50GB instead of 50MB.
A megabyte is 1024 Kbytes or 1024 blocks
50 MBytes is 50 times a MB or 50x1024 blocks
Your quota setting per user should be (if you want 40Mb soft and 50Mb hard limits) 40960 and 51200 respectively.
Best regards,
Dan
Bocksize for edquota is 1Kbytes.
Why are you multiplying 1024 by 50000 ? That woulg give approx 50GB instead of 50MB.
A megabyte is 1024 Kbytes or 1024 blocks
50 MBytes is 50 times a MB or 50x1024 blocks
Your quota setting per user should be (if you want 40Mb soft and 50Mb hard limits) 40960 and 51200 respectively.
Best regards,
Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP