- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- migrate /var to a smaller 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
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
07-15-2004 08:17 PM
07-15-2004 08:17 PM
What is the best way to copy everything from /var filesystem over to /vartmp filesystem and ensure that permission and modification date should be the same.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 08:27 PM
07-15-2004 08:27 PM
Re: migrate /var to a smaller filesystem
you can use the following command :
cd /var
tar cfv - .|(cd /vartmp; tar xfv -)
Under user "root" the date and permissions are kept the same
HTH
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 08:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 08:32 PM
07-15-2004 08:32 PM
Re: migrate /var to a smaller filesystem
cd /var
find . | cpio -pdumv /newdir
Reboot the system after changing the /etc/fstab file to reflect new lv to mount as /var
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 08:38 PM
07-15-2004 08:38 PM
Re: migrate /var to a smaller filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 08:43 PM
07-15-2004 08:43 PM
Re: migrate /var to a smaller filesystem
How big is it now?
Remember that /var is used for a number of things, like storing superceded patches, and of course by default your crash dump area. Please consider these points before doing anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 09:10 PM
07-15-2004 09:10 PM
Re: migrate /var to a smaller filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 09:14 PM
07-15-2004 09:14 PM
Re: migrate /var to a smaller filesystem
Unless your system only has one disc, it is recommended to leave vg00 solely for operating system stuff.
I would not even contemplate reducing /var unless you need to free disc space for another operating system filesystem.
Mark Syder (like the drink but spelt different)