- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reduction of LV for the /var and /opt directories
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
тАО09-10-2006 09:46 AM
тАО09-10-2006 09:46 AM
Is this true or can I unmount these directories safely?
Thanks, for the help.
Phil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2006 11:19 AM
тАО09-10-2006 11:19 AM
Re: Reduction of LV for the /var and /opt directories
mount -al
Now perform your copy, unmount and recreate the lvol, then initialize it with newfs and mount it again. Now copy your files back to the lvol. Repeat for each filesystem. To quickly copy your filesystem, use cpio -p as in:
cd /old_dir
find . | cpio -pudlmv /temp_dir
Once the new lvol is available, use the same command to copy the files back.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2006 07:59 PM
тАО09-11-2006 07:59 PM
Re: Reduction of LV for the /var and /opt directories
IS your /opt and /var are not separate filesystems? Are they part of / ?
If they are individual filesystem, I recon cleaning up them will not increasse / filesystem free space.
Regards
Sathish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2006 08:29 PM
тАО09-11-2006 08:29 PM
Re: Reduction of LV for the /var and /opt directories
This is usually a static filesystem with little if any growth. Is it possible you have stuff in / that should be in a filesystem of its own? Probably on a non-operating system disc.
Let us know why you want to increase / and we'll be able to advise you.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2006 08:52 PM
тАО09-11-2006 08:52 PM
Re: Reduction of LV for the /var and /opt directories
Safer option might be to use make_tape_recovery, part of Ignite, available for free download from http://docs.hp.com/en/IUX/download.html
This would let you create a bootable tape - "The make_tape_recovery(1M) and make_net_recovery(1M) tools enable consistent, reliable recovery in the event of a catastrophic failure of the system disk or root volume group."
That way you should be able to restructure your vg00 layout and you also have your vg00 data secured
Hope this helps.
Nick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2006 02:06 AM
тАО09-12-2006 02:06 AM
Re: Reduction of LV for the /var and /opt directories
Who ever set up the system in the first place, put a lot of stuff under the / directory. This machine is destined to be a back up of another machine that was set up as mentioned above. I will eventually use rdist to keep both machines relatively the same so if the first machine goes down the other one can be switched to. This second machine does not have enough space under / to accomadate the frst machines set up. so it is either free up space on / on second machine or reformat from scratch on that machine. I have nvever reformated and started from scratch on a Unix box before, the experts here suggest not to do that if I can help it. You see I am not a full time admin, I am actually an EE who finds himself with the responsibility to maintain a small network of two servers and 20 clients.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2006 02:45 AM
тАО09-12-2006 02:45 AM
Re: Reduction of LV for the /var and /opt directories
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2006 02:55 AM
тАО09-12-2006 02:55 AM
Re: Reduction of LV for the /var and /opt directories
I would love to redue the files that do not belong in there. However there are so many scripts that reference those files, then other things are linked here and there, it is a mess. If i move some of these, it would surely break the system. This system is part of a database chain that provides a lot of critical data to our business. I do not have the luxury of experimenting.
Thanks,
phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2006 03:14 AM
тАО09-12-2006 03:14 AM
SolutionLet us say you have a directory called mydir in /. You would rename the directory (for example) mydir.old, then create a new logical volume with a filesystem called mydir. You would then move the contents of mydir.old to /mydir and there you have it - mydir is re-created on a different disc. You could then remove mydir.old when you were happy that the new filesystem was working properly.
Full instructions available if this looks feasible.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2006 04:04 AM
тАО09-12-2006 04:04 AM
Re: Reduction of LV for the /var and /opt directories
That sounds like a good plan, I could do it slowly over time to make sure nothing breaks along the way. Change one directory let it run for a while then do another if no issues arise.
A full set of instructions would be teriffic.
Thanks,
BTW, I am running HP 10.2
Phil