- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reducing of /dev/vg00/lvol8 (/var)
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
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
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
тАО08-15-2002 03:04 AM
тАО08-15-2002 03:04 AM
Reducing of /dev/vg00/lvol8 (/var)
I must to reduce the size of /dev/vg00/lvol8 (/var)from 2Gb to 0,5Gb of the working HP-UX11i without stopping it.
So the steps I plan to make are:
1.tar cvhf /dev/rmt/0m /var
2.umount /dev/vg00/lvol8
3.lvremove -f /dev/vg00/lvol8
4.lvcreate -L 500 -n lvol8 /dev/vg00
5.newfs -F vxfs /dev/vg00/rlvol8
6.mount -F vxfs /dev/vg00/lvol8 /var
7.tar xvf /dev/rmt/0m
But I now that there is the /var/adm/syslog/syslog.log file which permanently in use. So should I switch it off before my actions and switch on it after? And if yes then how to do switching? Are my steps correct?
Thanks
Kerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 03:14 AM
тАО08-15-2002 03:14 AM
Re: Reducing of /dev/vg00/lvol8 (/var)
Your steps are basically correct but you're going to have a problem with number 2 - the unmount. I believe the only way you're going to be able to accomplish this is to go to single user mode.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 03:24 AM
тАО08-15-2002 03:24 AM
Re: Reducing of /dev/vg00/lvol8 (/var)
You'll have to shutdown and reboot into single user mode, then perform the above tasks except you can reduce the number of steps by combining lvremove and lvcreate into one step: lvreduce. It accomplishes the same thing.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 03:50 AM
тАО08-15-2002 03:50 AM
Re: Reducing of /dev/vg00/lvol8 (/var)
One other thought. You're going to be making /var fairly small which could cause maintenance issues in the future. I assume that you need to re-assign the 1.5GB from /var to some other filesystem. Are there any other alternatives available to you? Like reducing another filesystem than /var or adding some disk space?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 05:00 AM
тАО08-15-2002 05:00 AM
Re: Reducing of /dev/vg00/lvol8 (/var)
I agree with Bill and Pete, I run into lots of customers who are running out of spce with var do to patches added to the system and log files. So the question is, why are you reducing /var? Is it to reclaim space for another filesystem? /var in HP-UX requires a significant amount of space to be available to it for normal system operations. If you tell us why it needs to be reduced maybe we can provide an alternative.
Thanks for participating in the forums,
Martin
Chaos reigns within. Reflect, repent, and reboot. Order shall return.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 05:24 AM
тАО08-15-2002 05:24 AM
Re: Reducing of /dev/vg00/lvol8 (/var)
The first question to ask is why the need to reduce it? Remember that /var gets hit hard on a system and often needs to be very large.
Then if you do need to reduce it you'll need to do it in single user mode as the system won't let you unmount it since so many process will be using it.
Sean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 06:51 AM
тАО08-15-2002 06:51 AM
Re: Reducing of /dev/vg00/lvol8 (/var)
Yes, this does require down time, but so does your method. /var must be unused to umount it. The only way for that to occur is to be in single user mode.
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 02:50 AM
тАО08-16-2002 02:50 AM
Re: Reducing of /dev/vg00/lvol8 (/var)
find . -depth -print | cpio -p d /var2
This dupes the dir to the new /var2,
edit /etc/fstab, to switch var and var2, and reboot.
(or umount both, and bcheckrc it all)
If you need the space on another filesystem, you can always move data to an empty area on your var partition and link it.
have fun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 02:51 AM
тАО08-16-2002 02:51 AM
Re: Reducing of /dev/vg00/lvol8 (/var)
ps -ef | grep syslogd
kill it, or use the script in /sbin/init.d to stop it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2002 03:58 AM
тАО08-16-2002 03:58 AM
Re: Reducing of /dev/vg00/lvol8 (/var)
One is you run the shutdown command. In this version you can't unmount /opt /var /usr or any other hpux file system.
The other version is you power DOWN the computer, you interupt it's boot process, then run the method to boot into single user mode. In this version almost all of the filesystems are unmounted.