- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: filesystem moves
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
05-02-2008 10:13 AM
05-02-2008 10:13 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:20 AM
05-02-2008 10:20 AM
Re: filesystem moves
Mirroring occurs at the logical volume level and since a logical volume belongs to a volume group, you can't move a filesystem between volume groups with MirrorDisk/UX.
That said, I'd use 'fbackup'/'frecover':
# cd srcdir && fbackup -i . -f - | ( cd dstdir && frecover -Xsrf - )
An advantage to using 'fbackup' and 'frecover' is that it handles largefiles and can keep sparse files sparse.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:29 AM
05-02-2008 10:29 AM
Re: filesystem moves
The most direct and safest approach.
create new lvol in vg01
copy all data from /var/adm/sw to new lvol
unmount /var/adm/sw
mount new lvol in its place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:30 AM
05-02-2008 10:30 AM
Re: filesystem moves
Would there be any effect to the filesystem? Downtime? Would my users notice anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:35 AM
05-02-2008 10:35 AM
Re: filesystem moves
usage is:
cd /destination_filesystem
vxdump 0f - /source_filesystem | vxrestore xf -
hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:38 AM
05-02-2008 10:38 AM
Solution> I am not overly familiar with fbackup'/'frecover': Would there be any effect to the filesystem? Downtime? Would my users notice anything.
Based uoon the fact that you said the filesystem is '/var/adm/sw' it will be static as long as you are not actively patching (running 'swinstall' or 'swremove').
Hence, it will be perfectly acceptable to copy this without any downtime other than unmounting the the source and destination filesystems when done with your copy to change the '/etc/fstab' to reflect mountpoints.
Yet another advantage to 'fbackup' is that it will automatically retry the copy of files that change during the time they are begin copied. This isn't going to be the case, but it is worth noting.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:41 AM
05-02-2008 10:41 AM
Re: filesystem moves
cp -rp
find | cpio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2008 02:20 AM
05-06-2008 02:20 AM
Re: filesystem moves
Create a new filesystem on vg01. Call it (for example) /var/adm/sw.new
cd /var/adm/sw
find . â xdev â depth â print|cpio â pmd /new_filesystem
cd /etc
cp -p fstab fstab.safe
vi fstab
Swap the new filesystem with /var/adm/sw
You will need to reboot for the change to take effect. Make sure files are being updated in the new /var/adm/sw before you delete the old one.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2008 04:09 AM
05-06-2008 04:09 AM
Re: filesystem moves
For a possible reason not to use "cp -r", see
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1203742
(But I've given up hoping that people will
stop suggesting it.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2008 04:30 AM
05-06-2008 04:30 AM