- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- moving vg from san disk to new san disk
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-19-2008 01:46 AM
06-19-2008 01:46 AM
moving vg from san disk to new san disk
what is the best way to move data (volume group) from a san disk to a new san disk.
is there any possibility to move the entire volume group to onther disk.
or do i have to create new volume group on new disk and copy all data manualy ?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 02:03 AM
06-19-2008 02:03 AM
Re: moving vg from san disk to new san disk
Best: Shut down the applications using the data, do a full backup. Restore that backup after new SAN volume is ready and has a filesystem on it.
You can save time with an scp -rp copy.
There is no such command as vgmove.
You could try and use SAN utilities to replicate the data if the two SAN's are compatible.
Taking the vgexport and vg configuration of the old and moving it to the new might cause limitations as well. The new one might be bigger and the volume group might not be correct for the new SAN.
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-19-2008 08:31 AM
06-19-2008 08:31 AM
Re: moving vg from san disk to new san disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 10:25 AM
06-19-2008 10:25 AM
Re: moving vg from san disk to new san disk
If your VG is located on 1,2,3,4 ... and yuu want to move it to 10,11,12 you can do the following:
1. present new disks(11,12,13) to server
2. extend VG over new disks
3. remove old disks(1,2,3..) from VG
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 10:39 AM
06-19-2008 10:39 AM
Re: moving vg from san disk to new san disk
>>2. extend VG over new disks
>>3. remove old disks(1,2,3..) from VG
I think you're missing some steps between 2 & 3. Just extending the VG to contain the new disks does absolutely nothing for moving the data.
A step 2A would be to use PVMOVE or MIRRORING to migrate the data.
If you use PVMOVE:
2A. PVMOVE Data from old disks to new disks
If you use Mirroring:
2A. lvextend mirrors onto new disks.
2B. lvreduce mirrors from old disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 10:42 AM
06-19-2008 10:42 AM
Re: moving vg from san disk to new san disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 11:00 AM
06-19-2008 11:00 AM
Re: moving vg from san disk to new san disk
If you cannot then,
Full backup from Current SAN
Once you connect new SAN Storage, run vgcfgrestore from old disk to new disk and then vgimport map file. We can use one from /etc/lvmconf (This will restore all lvols )
Run Newfs , mount filesytems and Restore from Backup.
I just went through a major SAN disaster and used above approach!
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 11:33 AM
06-19-2008 11:33 AM
Re: moving vg from san disk to new san disk
present new disk to vg
lvextend to the new disk
lvreduce the old disk
vgreduce the old disk
Done.. no one will ever know it happened.
( do this off-peak to avoid IO bandwidth issues if your app is a busy one ).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2008 02:10 AM
06-20-2008 02:10 AM
Re: moving vg from san disk to new san disk
Thanks for you anwsers .
In the mean time i have done following:
1. pvcreate new disk then created new VG and Lv on new disk
2. on the coming weekend in willshutdown the oracle and other applications and then copy all data from old Lv to new LV.
Time Nelson soultions sounds very easy and can it be done online ? and please explain your solution more deatiled
thanks in advance
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2008 02:20 AM
06-20-2008 02:20 AM
Re: moving vg from san disk to new san disk
To Tim's solution:
(I try to extend it a bit).
1. present new disk to server
2. vgextend the vg with the new disk (pvcreate, vgextend)
3. "lvextend -m 1 ..." the lvols to the new disk (build a mirror between the old and new array - depending on your system config the new disks should have the same size as the old)
4. lvreduce the lvols from old disk (remove the mirror from the old disk)
5. vgreduce the old disk
You are done with this magic move.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2008 04:59 AM
06-20-2008 04:59 AM
Re: moving vg from san disk to new san disk
if there are differences stop all accesses to data copy via tar cp or even dd between lv in both differents vg then switch and start all up