- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Clone lvol in SAN
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
тАО05-29-2003 11:55 PM
тАО05-29-2003 11:55 PM
Clone lvol in SAN
Any idea will be appreciated. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 12:03 AM
тАО05-30-2003 12:03 AM
Re: Clone lvol in SAN
vgimport
vgexport
I've never seen lvimport, doesn't mean it doesn't exist, just mens I've never seen it.
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
тАО05-30-2003 12:07 AM
тАО05-30-2003 12:07 AM
Re: Clone lvol in SAN
To split the data would require using 'vgchgid' and the the mapfiles using the vgexport/vgimport concept. you can't break up a volume group to do this, but it is up to you what you ultimately present to the second server.
Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 12:11 AM
тАО05-30-2003 12:11 AM
Re: Clone lvol in SAN
here is a very very unsupported and try-at-your-risk procedure.
You must have deep knowledge of lvm and a bit of luck.
You have got the lun.
Now create a new vg with that lun and create the lvol1 exactly as on your original VG, same size, same disposition of PE.
This may involve spending time examining the PVDISPLAY -v output and creating some unusefull lvol ro reflect the situation.
now to and fsck -o -m full on /dev/vgNEW/lvol1.
you shuold have your data back :)
This worked for me many times, because information about fs structure is stored in the lvol, and when you clone it it still resides.
the fsck is needed for many reasons.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 12:29 AM
тАО05-30-2003 12:29 AM
Re: Clone lvol in SAN
just forgot to say that you have to do the pvcreate on the disk, otherwise the vgcreate will fail. But pvcreate and vgcreate do not touch data, fortunatly
after that the lvcreate.
If you can give this a try... :)
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2003 12:41 AM
тАО05-30-2003 12:41 AM
Re: Clone lvol in SAN
It is exactly what said Massimo. You should:
1. pvcreate the lun
2. vgcreate, but take care of the PE size, it should be the same than the orignal vg.
3. lvcreate with at least the same size (if it is bigger you don't care). the important thing is that all PE are in the same order than the original. If it is a standart lvol that reside on the whole lun there is no risk (if it is a distributed lvol or strippe, it is a far complicated but you have to write a script to lvextend each PE).
4. fsck -o full is only necessary if the copy has been done while the fs was mounted. If you do it while the fs was unmounted, the fs is still clean.
5. mount.
Cheers.