- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Move a 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
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
тАО11-23-2003 10:55 PM
тАО11-23-2003 10:55 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2003 11:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2003 11:05 PM
тАО11-23-2003 11:05 PM
Re: Move a filesystem
just create a new filesystem on VG00, almost with the same size of used space (and anything more!) and copy contents of the filesystem from VG04 to VG00 by cpio command. You can see a procedure in doc
ULVMKBRC00013032 - Moving /opt from vg00 to a new disk/volume group
I hope this helps you.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2003 11:09 PM
тАО11-23-2003 11:09 PM
Re: Move a filesystem
Here is the example of moving FS with
keeping its name:
#newfs -F vxfs /dev/vg00/rlvol_X
#mkdir /filesystem_new
#mount /dev/vg00/lvol_X /filesystem_new
#cd /filesystem_old
#find . | cpio -pdumv /filesystem_new
#cd /
#rm -rf /filesystem_old/*
#umount /home_new
#mount /dev/vg00/lvol_X /filesystem_old
rmdir /filesystem_new
Regards,Stan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2003 11:10 PM
тАО11-23-2003 11:10 PM
Re: Move a filesystem
You will have to create new one transfer your data and remove the old one.
Also exclude v option in cpio to heve a bit better performance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2003 11:13 PM
тАО11-23-2003 11:13 PM
Re: Move a filesystem
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2003 12:28 AM
тАО11-24-2003 12:28 AM
Re: Move a filesystem
# bdf | grep /data*
/dev/vg00/ldata 512000 445705 62191 88% /data.new
/dev/vg04/ldata 2097152 446099 1547902 22% /fw24
445705 for data.new
446099 for data
Then I think that something was not copied.
Anyway diff command doesn't report differences.
According to you, is it normal? Should I worry about that difference? What is causing that little gap?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2003 12:31 AM
тАО11-24-2003 12:31 AM
Re: Move a filesystem
445705 for data.new
446099 for fw24
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2003 12:37 AM
тАО11-24-2003 12:37 AM
Re: Move a filesystem
I believe that the reduction in size between the new and old filesystem is related to a reduction of the directory size. This occurs when you have stored a lot of files in a dir in the "old" filesystem, causing the size of the directory to increase. Later files are removed and but the directory still retains its larger size. When the directory is recreated via cpio the directory is "created from scratch" and thus "optimal" in its allocation.
Do a dircmp between the old and new to see if the two dirs are identical.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2003 12:40 AM
тАО11-24-2003 12:40 AM
Re: Move a filesystem
If that old file system which you want to move to vg00 is not Operating system files [accidentally created by someone], DON'T move those into vg00. Keep only OS specific file systems under vg00, which will make life easier in creating make_tape_recovery(Ignite-UX) and in a diaster recovery scenario. etc.
Thanks
Raju