- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reduce /var/ without online JFS
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
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
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-27-2012 03:44 PM
08-27-2012 03:44 PM
Greetings. Discovered on older server that though there are two internal disks, and we have mirror-ux, that the boot disk is not and cannot be mirrored. Lvols 1-3 are on disk 0, the other 5 lvols have some extents on both disks. Disk 0 has no free extents. I noted that /var is way oversized, and if reduced to a third of its current value, it still would have room to grow, and everything would fit on disk 0. Then I could mirror the boot disk. I would like opinion on doing this:
copy /var data to another disk, like a data disk
bring the system down and boot to single user mode
unmount /var
lvreduce /var to new desired size
newfs /var
mount the new /var
mount the data disk
copy the backup of the /var data off the data disk to the new /var
use pvmove to move extents from other lvols off of 2nd disk
vgreduce the 2nd disk, do the pvcreate -B, mkboot etc.
Will this work? Thanks for your suggestions.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2012 04:20 PM
08-27-2012 04:20 PM
SolutionYou did not provide any hard details like vgdisplay -v outputs (and/or summaries of pvdisplay -v) so I'll have to rely on your interpretation of the situation, but yes, your plan looks OK to me.
Remember that mass-manipulation like this will cause extra strain to the disks, which might trigger a disk failure if a disk is already close to the end of its life. Remember that MirrorDisk can do three-way mirroring too: if you can temporarily have an extra disk, you might want to establish an extra mirror before doing the pvmove step. Even if the extra mirror is not immediately bootable (e.g. located on a HBA that cannot be booted from by the current firmware), having an extra copy of the LVs' contents would make recovery easier should a disk fail in mid-operation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2012 07:27 AM
10-10-2012 07:27 AM
Re: reduce /var/ without online JFS
My plan worked exactly as intended. The only issue I had was when backing up parts of /var online, I did not use the p flag to preserver permissions and had to fix a few of those. System disk is now mirrored correctly. Thanks for input.