- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Move /usr back to internal disks
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
тАО10-10-2005 12:32 PM
тАО10-10-2005 12:32 PM
1. tar -cvf - /usr/* | (cd /usr_new/; tar -xvf -)
2. change fstab and reboot
Will this work?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2005 12:43 PM
тАО10-10-2005 12:43 PM
SolutionYou can try the following steps :
NOTE : do the necessary backup first (Ignite backup is recommended)
1. goto single user mode
2. create the lvol for /new_usr
3. copy over the contain at /usr to /new_usr
# fbackup -i /usr -f - | (cd /new_usr; frecover -Xrf -)
4. umount /usr and umount /new_usr
5. mount the prev lvol for /new_usr to /usr
6. reboot the system
7. check whether the system can up & running without any problem
8. put the system into monitoring for some period
9. if the system fine, you can safely remove the prev lvol for /usr (the old one)
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2005 12:44 PM
тАО10-10-2005 12:44 PM
Re: Move /usr back to internal disks
Before you reboot the system, dont forget to change /etc/fstab to reflect the changes.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 06:43 AM
тАО10-11-2005 06:43 AM
Re: Move /usr back to internal disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2005 08:03 AM
тАО10-11-2005 08:03 AM
Re: Move /usr back to internal disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2005 09:32 AM
тАО10-12-2005 09:32 AM
Re: Move /usr back to internal disks
Then use cpio to copy the files from one to the other
Cd /usr
Find . -xdev -print | cpio -pdxamv /newusrmnt
When that├в s done change /etc/fstab to mount new_lv on /usr reboot
The -xdev is important if you have any file systems mounted under /usr
If you can get down time it may be best to do the find and cpio in single user mode but if you can't it should work OK any way as long as you don't have weeks between the copy and the reboot
After the reboot you can mount /old_lv to /oldusrmnt and get anything that was missed
When your sure the system is back drop the old_lv and its miller time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2005 11:00 AM
тАО10-12-2005 11:00 AM
Re: Move /usr back to internal disks
is Your /usr still in /dev/vg00? if yes, please simply use pvmove.
otherwise Your plan will work fine, but I'd run it in singleuser or lvm maint. mode to be 100% sure of consistency.