- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Moving disk array to another system
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
тАО02-25-2004 02:08 AM
тАО02-25-2004 02:08 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 02:12 AM
тАО02-25-2004 02:12 AM
Solution# vgexport -m vg??.map -p -v -s /dev/vg??
Or if you want to make sure the VG doesn't exist on the source system, just omit the '-p' option.
Then on the new system.
Copy the vg??.map from the source system.
# mkdir /dev/vg??
# mknod /dev/vg??/group c 64 0x0?0000
# vgimport -m vg??.map -v -s /dev/vg??
# vgchange -a y /dev/vg??
Then add the appropriate entries to /etc/fstab, mount them up and you are ready to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 02:15 AM
тАО02-25-2004 02:15 AM
Re: Moving disk array to another system
Maybe vgexport the vg and vgimport the vg on the target server.
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
тАО02-25-2004 02:18 AM
тАО02-25-2004 02:18 AM
Re: Moving disk array to another system
You will need to do the following steps in a nut shell.
1. Create map files on system A.
vgexport -v -s -m /tmp/vgxx.s.map vgxx
vgexport -v -m /tmp/vgxx.map -f /tmp/vgxx.disks vgxx
Repeat the above for all the volume groups.
Copy vgxx.s.map, vgxx.map, vgxx.disks and /etc/fstab onto system B into /tmp.
2. Move the Array.
Unmount all the filesystems on system A. Edit /etc/lvmrc and make AUTO_VG_ACTIVATE to 0. Enable only the VGs required to be active inn it. Shutdown the system. Physically disconnect the array and move it to the other
3. Import the VGs on system B.
Shutdown system B if the disk array is scsi. Fiber can be attached online.
#ioscan -f
#insf
Create directories and group files for the volume groups
#mkdir /dev/vgxx
#mknod /dev/vgxx/group c 64 0x0?0000
(Use a valid uniq number in the minor portion "?" of mknod)
#vgimport -s /tmp/vgxx.s.map vgxx
#vgchange -a y vgxx
Repeat the above for all the VGs. vgxx.disks can tell you the disks configured under each VG on system A. It will help identify the missing disks.
Merge /tmp/fstab and /etc/fstab for the logical volumes corresponding to the new volume group. Create mount points and do
'mount -a' to get the filesystems mounted.
Backout:
Once you found system B is successfully working, export the sparce VGs on system A.
vgexport vgxx
And restore your old /etc/lvmrc.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 02:24 AM
тАО02-25-2004 02:24 AM
Re: Moving disk array to another system
On the old system:
vgchange -a n /dev/vg02
vgexport -m /tmp/vg02.map -s /dev/vg02
Down the array and disconnect.
FTP/rcp/tar the /tmp/vg02.map file to the new system:
On the new system:
Connect and power-up the array.
mkdir /dev/vg02
cd /dev/vg02
mknod group c 64 0x020000
Make sure that you choose a unique minor device number for the group node. By convention, vg00 gets 0x000000, vg01 gets 0x010000, vg10 gets 0x0a0000, ... but that's just a convention.
ioscan -fn
insf
vgimport -m /tmp/vg02.map -s /dev/vg02
vgchange -a y /dev/vg01
This method allows you to import the array without worrying about SCSI paths but it may not choose the most optimum SCSI pathing but that can easily be corrected later, if necessary. You next mkdir your mountpoints, add entries to /etc/fstab for any filesystems, and mount the filesystems.