- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disk replication and lvm
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
Forums
Discussions
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
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
08-08-2007 02:36 AM
08-08-2007 02:36 AM
I've successfully replicated some luns (or San resources in Falconstor's terminology) between the rp7420's. My problem is I'm at a loss as to how to get the volume group and logical volume information built on the replicated system.
I considered vgexport/vgimport but the scsi device files are different on each server.
c24t0d0 on the source and c18d0t0 on the destination for example.
Can I just use vgimport/vgexport? I do this frequently on my service guard clusters but I'm wondering about which switches to use. Normally I'll use -s -v -m -p. Do I drop the -s?
Also do I have to detail all the volume groups on the vgimport command?
For example:
vgimport -v -s -m /tmp/vg01.map /dev/vg01 /dev/dsk/c18t0d0 \
/dev/dsk/c18t0d1 \
/dev/dsk/c18t0d2 \
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 02:58 AM
08-08-2007 02:58 AM
SolutionIf you are using standard LVOL names (lvol1, lvol2, ...) then you don't need a map file otherwise on the original machine:
vgexport -p -m /tmp/vg01.map /dev/vg01
and copy /tmp/vg01.map to the target machine.
Without the -s option, only the LVOL's will be listed.
On the target machine:
Do an ls -l /dev/vg*/group and note the minor device numbers. The only requirement is that your new VG uses a unique minor device number. By convention, vg01 uses 0x010000, vg02 uses 0x020000, and so on but that is just convention.
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -v -m /tmp/vg01.map /dev/vg01 /dev/dsk/c18t0d0 \
/dev/dsk/c18t0d1 \
/dev/dsk/c18t0d2
vgchange -a y /dev/vg01
vgcfgbackup /dev/vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 03:28 AM
08-08-2007 03:28 AM
Re: Disk replication and lvm
vgexport -s -p -m mymapfile /dev/vg01
The -s option will allow you to import the disks to the volume group without the need to supply didk information.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 03:47 AM
08-08-2007 03:47 AM
Re: Disk replication and lvm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 04:28 AM
08-08-2007 04:28 AM
Re: Disk replication and lvm
export/import would get the logical volumes across to the replicated system.
It would not make the replicated system bootable.
That is what Ignite is for.
http://docs.hp.com/en/IUX/
You could also use dd on the entire boot disk, this might leave you with a system that could be modified to become bootable.
Not all systems however will boot off a SAN disk.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com