- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Moving a filesystem from server A to server B
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
06-15-2006 07:27 AM
06-15-2006 07:27 AM
What I have not done before is to move the LUNs in such a way as to preserve the volume group, lvol, and filesystem that is stored on the LUNs. What I need are the steps to be taken on server A before the LUNs are moved as well as the steps on server B after they are moved so I can simply mount the filesystem and not have to restore from tape. The filesystem is made up of 22 LUNs from the XP, each is 7040MB in size, so restore from tape is a couple of hours I would like to avoid. The volume group has only 1 lvol in it which is the entire volume group as the filesystem I want to move. I am using striping (size 64K, count 2) if that makes a difference. Both servers are connected with dual FC paths to an XP512, however the "c" numbers are different. Server A has device file names c4tXdY and c6tXdY where Server B has device file names c5tXdY and c7tXdY. I do have the ability to test any suggestions with a small number of LUNs (up to 4).
For those of you who may think this a little trivial (backup A, move the LUNs, restore from tape on B), the real story is I am moving 7 filesystems (each fs is 1 lvol consuming all the space of 1 vg) from A to B and 4 from B to A. The 2 servers are trading roles (moving L2000 as DB server to App layer and N4000 as App layer to DB server). Restore from tape would be more than 10 hours so this would save me a LOT of time if I can do it.
Thank you in advance for any suggestions,
-Dave
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 07:38 AM
06-15-2006 07:38 AM
Re: Moving a filesystem from server A to server B
If I follow correctly, you need to 'vgexport' from server-A; disassociate the physical LUNs from server-A; associate the LUNs with server-B; and 'vgimport' on server-B. Define directory mount points and modify server-B's '/etc/fstab' appropriately, and mount your filesystems.
For the 'vgexport' and subsequent 'vgimport' you can either use the '-s' option to search for matching VGIDs thereby automatically finding your physical disk when they are present on server-B; or you can collect the physical path information into a file during 'vgexport (with the '-f' option); edit those paths to conform to server-B; and then 'vgimport' from server-B using the correct paths.
Have a look at the manpages for 'vgexport' and 'vgimport' for more information. Remember, you can use the 'p'review option to create the path 'outfile' for editing ahead of your actual move. The 'mapfile' holds the logical volume names with the addition of the VGID if the '-s' option is used.
Regards!
..JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 07:39 AM
06-15-2006 07:39 AM
Solution1) Unmount everything on servera
2) Deactivate VGs on servera
3) vgexport -m vg??.map -s -v /dev/vg??
(If you want to preview first, add '-p' to
vgexport)
4) Copy vg??.map files from servera to serverb
5) Move LUNs from servera to serverb on the XP
6) 'ioscan -fnC disk' on serverb
7) 'insf -C disk' on serverb
8) ioscan again to verify disk files are created.
9) 'mkdir /dev/vg??' for all VGs on serverb
10) 'mknod /dev/vg??/group c 64 0x0?0000' for all VGs on serverb
11) 'vgimport -m vg??.map -s -v /dev/vg??' on serverb for all VGs
12) Modify /etc/fstab to add LVOLs
13) 'vgchange -a y vg??' for all VGs on serverb
14) 'mount -a' on serverb
I think this should do it. As a fall back you should have 1, preferably 2, good backups in case something goes terribly wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 07:42 AM
06-15-2006 07:42 AM
Re: Moving a filesystem from server A to server B
To be safe, you must do a full backup before you start.
On the soon to be old owner of the fs
vgchange -a -n vg01 #use real vg
vgexport -p -m /tmp/vg01.map vg01
#use ftp whatever to tranfser the map file to the new machine.
# assign luns to new machine
vgexport vg01 # if it exists
cd /dev
mkdir vg01/group c 64 0x0010000 #the last 1 should usually correspond with the 1 in vg01
vgipport -m /tmp/vg01 /dev/dsk/c1t1d0 #use real disk and list them all.
You should lose no data.
But back up anyway.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 07:52 AM
06-15-2006 07:52 AM
Re: Moving a filesystem from server A to server B
Thank you all 3, stay tuned,
-Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 08:00 AM
06-15-2006 08:00 AM
Re: Moving a filesystem from server A to server B
As per the usual caveat applies. Why not create a vg on some test server to that XP and practice moving it around to different servers first. Try it with and without the "-s" option. This is how you'll feel confident and ready to make the move with whatever method you like best.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 07:45 AM
07-13-2006 07:45 AM
Re: Moving a filesystem from server A to server B
Thank you all who provided responses.
-Dave