- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /var filesystem
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
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
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
09-08-2000 01:00 PM
09-08-2000 01:00 PM
Also. The lv that /var is on is mirrored. If I lvextend the lv, do I have to do anything special because it's mirrored, or will lvm automagically expand the mirror?
--Scott
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 01:15 PM
09-08-2000 01:15 PM
Re: /var filesystem
/var does not have to be contiguous.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 01:19 PM
09-08-2000 01:19 PM
Re: /var filesystem
If /var happens to be a vxfs file system and you have the Online JFS product (an extra cost product) then you don't have to do anything, you can extend the filesystem on the fly. I LOVE vxfs and Online JFS for that reason.
Otherwise your best bet would be to boot into single-user mode and go from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 01:22 PM
09-08-2000 01:22 PM
Re: /var filesystem
most of the processes that show up when you do fuser -cu /var should be terminated by stopping them from their respective /sbin/init.d scripts. so for example
/sbin/init.d/rpcd stop
etc. etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 01:26 PM
09-08-2000 01:26 PM
Re: /var filesystem
No answers on the lvextend (mirrored) question?
--Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 01:51 PM
09-08-2000 01:51 PM
Re: /var filesystem
It is something you would have to be present for.
Doing the modem will not allow you to boot into single-user mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 01:51 PM
09-08-2000 01:51 PM
Re: /var filesystem
It is something you would have to be present for.
Doing the modem will not allow you to boot into single-user mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 01:58 PM
09-08-2000 01:58 PM
Re: /var filesystem
That should buy you some space :)
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 02:05 PM
09-08-2000 02:05 PM
Re: /var filesystem
lvm is smart enough to know not to extend the mirrored filesystem to the same physical volume. This is true as long as you have not changed the allocation policy, it should be strict but you don't need contiguous on var (as Rick said above)
# lvdisplay /dev/vg00/lvol_var
Allocation policy should be strict
As long as you have enough Free PE on the PV's that contain var and mirror copy, the lvextend should go smooth.
If you don't have the option to boot up into single user mode at the console, you could dialin and attempt to bring it down to the lowest runlevel and attempt to umount /var.
# umount /var
If device busy:
# fuser -ku /var
# fuser -ku /dev/vg00/lvol_var
# umount
If still busy you'd be better off booting up into SU mode. If you had online jfs you'd just do it on the fly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 02:12 PM
09-08-2000 02:12 PM
Re: /var filesystem
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 02:22 PM
09-08-2000 02:22 PM
Re: /var filesystem
/var/adm (logfiles)
/var/adm/crash (crash dump for kernel)
/var/mail (email)
/var/spool/lp (spool files)
/var/tmp (user temp files)
/var/adm/sw (s/ware and patches)
You can evaluate the largest directories with the command:
du -kx /var | sort -rn > /tmp/du.var
Then look at the first few lines of the resultant file. It indicates the largest directories first, a good start at picking directories to move to another disk.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 02:55 PM
09-08-2000 02:55 PM
Re: /var filesystem
If anything still has /var open at this point, you should be able to kill it off. I can't ever remember having a problem with /var - /usr yes (in use by init).
Having extended the filesystem with 'extendfs' then you can simply 'reboot'.
The suggestion for lvextending before shutting down is good as you can do this at any time.
LVM will automatically extend both mirrors and provided you only have two disks in your root volume group, the result should be as you expected. If you have more disks however then you should specify the disks to lvcreate.
You can check where the current extents are with 'lvdisplay -v /dev/vg00/lvol?'.
If for example your primary disk is c2t2d0 and your mirror c1t2d0 then your lvextend should read:-
lvextend -L
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 06:35 AM
09-11-2000 06:35 AM
Re: /var filesystem
--Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 06:42 AM
09-11-2000 06:42 AM
SolutionYet another way to regain precious /var space is to run the 'cleanup' utility. See: 'man 1M cleanup' to review its usage. I routinely recover very significant amounts of space from /var following installations of large patch bundles. cleanup is the safest, recommended way to manage the /var/adm/sw/patch directory on HP 10.20. On 11.X, do swmodify -x patch_commit=true
Make sure, too, to remove remove unnecessary files in /var/tmp, /var/adm/crash, /var/preserve, etc.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 06:56 AM
09-11-2000 06:56 AM
Re: /var filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2001 11:51 AM
03-09-2001 11:51 AM