- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Root disk layout
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО06-08-2004 09:49 AM
тАО06-08-2004 09:49 AM
I looked for white papers, or Best Practices from HP on this subject, but didn't find any. I know they ship their systems with a pretty generic OS, carved up into 7 filesystems.
Relevant info: We're using 2 internal disks, at least 72 G, mirrored, with Online JFS, running on LVM. User files will be placed on the SAN. There's a ton of space on these root disks to use how we want.
So here are the questions:
1) Any advantage to combining HP LVM filesystems into 2 or 3?
2) Are there some fs that are always good to set up with a bunch of extra space, or others that are left pretty full?
3) Given the very large memory built into new systems, what is the "rule of thumb" for device swap size?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2004 09:55 AM
тАО06-08-2004 09:55 AM
Re: Root disk layout
1) I see no advantage, as / /stand and primary swap must have contiguous and strict extents.
2) The additional space can be added to filesystems like /usr and /opt as these don't need to be contiguous and strict. You can always cut an ignite tape to / /stand and primary swap. Do yourself a favour and have online JFS on production servers, one day it may save your bacon.
3) The old rule of thumb for swap used to be 2 x memory but these days given the amount of RAM on some systems it depends largely on the application and databases being used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2004 10:03 AM
тАО06-08-2004 10:03 AM
Re: Root disk layout
1. I prefer to have multiple logical volumes as maintenance is easier. Particularly I would keep / filesystem seperate. The chances to review the size in future will be more if you add /opt and /usr into it and that may be a problem as / filesystem has to be contiguous. My suggestion would be /, /usr, /opt/, /tmp, /var, /etc/lvmconf, (if you have too many VGs and disks),/etc/cmcluster (If it is serviceguarded) and /usr/local.
2. May be you can keep your / at 1 GB just for the sake of "core" dumps. In fact, 500 is more than enough as nothing should grow in / filesystem. You can give some cushion to /var and /opt as they tend to increase.
3. On large memory systems, enable swapmem_on kernel parameter. That will account 75% for swap. It's a good idea to add device swap equal to the size of memory otherwise you may not be able to use all of your memory. With pseudoswap, you don't need to worry about old rule of "twice the memory" swap configuration. pseudoswap plays part only in the calculations and nothing else.
4. Plan for dump. If you have plenty of space left in your vg00, create a seperate logical volume exclusively for dump. With that you can disable savecrash at the bootup to save time during a system crash. You can always run savecrash manually once the system is up.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2004 01:53 PM
тАО06-08-2004 01:53 PM
Re: Root disk layout
2.I would always give extra space to /var ,/opt and /usr file systems because they tend to grow . I also prefer to create extra file systems that require huge amount of space like /var/tmp , /var/adm/crash , /var/opt/perf etc.
3.The rule of thumb is 1.5 to 2 times the amount of memory . But given the large amount of memory , it really depends on the application . If its a memory eater/leaker then even with large amount of memory . it will swap .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2004 02:16 PM
тАО06-08-2004 02:16 PM
SolutionThe problem is with undisciplined software and applications that assume / is their playground rather than asking the sysadmin where it belongs. The SysV.4 filesystem layout defines /opt as the location for applications, /usr for the opsystem (with legacy exceptions covering /usr/local and /usr/contrib) and /tmp is for opsystem (NOT users) storage.
So / is (must be) restricted and kept separate. If it fills up, the whole system may go down. /opt is somewhat static and grows only as applications are added. Logs are kept in /var/opt/
2. /var is the most critical in HP-UX. It is used by kernel processes as well as user processes and always grows without bounds. /var/adm is full of logfiles and always needs monitoring. /var/adm/sw is where backup copies of previous files are stored when patches are installed. This can be etremely large but must be managed with the cleanup utility (NEVER remove files from /var/adm/sw or you'll never be able to install patches again).
Additionally, /var/mail, /var/spool and /var/adm/crash can grow to thousands of megs in short periods--it all depends on what your server is doing.
Which leads to the conclusion that MORE, not less partitions are a better choice for managing some servers. A separate partition for /var/mail and/or /var/spool may be needed to prevent problem users from crashing the system by reprinting a large job 10-20 times. (if /var/spool fills, spooling stops but the system runs. If /var/spool is part of /var, then the whole system goes down.
Putting everything into a couple of giant partitions guarentees that a runaway job or email storm will crash the system. Of course, you can fix this by disabling email and spooling. As far as other opsystems, the design principles apply in the same way. If these are single user workstations with no remote users, then combining should be fine.
2. There are static and dynamic filesystems. Static filesystems are / and /stand..they should not grow. Growth indicates a sysadmin problem. /usr is a bit less static...it will grow a bit when libraries are added and programs are stored in /usr/contrib and/usr/local. NOTE: /usr/local has the wrong permissions--change all /usr/local directories to 755. But some freeware tends to grab a lot of /usr/local.
Dynamic mountpoints are /var, /tmp and /home. /tmp is difficult to cleanup simply because there is so much old code still using /tmp for storage. The correct location is /var/tmp. As has always been the case for Unix systems, cron jobs must watch and trim these mountpoints regularly.
As far as sizes, here's a starting point that works for 9Gb disks and higher:
/ = 250megs
/stand = 150megs
/usr = 2000megs
/opt = 2000megs
/tmp = 500megs
/var = 4000megs
/home = 100 to 2000megs
3. There is no rule of thumb today. Years ago (generations in computer years) the rule was 2xRAM to 5xRAM. If large RAM means 1000megs, then 2xRAM may be necessary for typical applications but for Oracle or SAP, you may need 10x to 20xRAM for installation, then 4x to 8xRAM to run. If large RAM means 8Gb or larger, then device swap can be just a few Gb since it will seldom be used. NOTE: Unlike other flavors of Unix, swap is handled quite differently depending on swapmem_on in the kernel.
Rather than try and figure out what you need, start with 2-4Gb of swap, then monitor swapinfo for actual usage. Large memory systems will use virtually no swap space (memory-mapped files are the exception).
--
While it may look useful to standardize across different opsystems, it usually means some things will be non-standard or awkward in each system, leading to more work rather than less. And within HP-UX, filesystem sizes will be very different for an Oracle system, an Apache web server or an email server.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2004 05:01 AM
тАО06-09-2004 05:01 AM
Re: Root disk layout
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2004 05:44 AM
тАО06-09-2004 05:44 AM
Re: Root disk layout
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=19149
Rgds...Geoff