Skip to contentSkip to conversation

steps to clone a volume group

linux-lvm Rich Graves 2 participants 2 messages Nov 17, 2008 – Nov 18, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1755237768.33050951226964401629.JavaMail.root@mail2.its.carleton.edu

#1 lore raw

I've had that problem too. Two workarounds. Here's what I usually do:

1a) Map the snapshot LUN to a *different* host than the production machine. 1b) Change the UUID and VG/LV there.
1c) *Then* map the LUN to the production machine.

Alternatively (untested):

2a) service haldaemon stop; service multipathd stop; service lvm2-monitor stop (not sure which of these is really necessary) 2b) Map the snapshot to the production server in the SAN.
2c) Manually add with echo '- - -' > /sys/class/scsi_host/hostN/scan
2d) Change UUID and VG/LV.
2e) Manually remove with echo 1 > /sys/block/sdX/device/delete
2f) service haldaemon start; service multipathd start; service lvm2-monitor start

Signature · 3 lines
Rich Graves http://claimid.com/rcgraves
Carleton.edu Sr UNIX and Security Admin
CMC135: 507-222-7079 Cell: 952-292-6529
#2 lore raw

Option 1 we are doing now but trying to avoid due to software license fees, etc.

not a vet yet with linux syntax --

trying item 2c and subbing host0 for hostN  -- getting --
bash: echo: write error: invalid argument

i'm sure its something very obvious, but not too me...

Mike

________________________________
From: Rich Graves <[email protected]>
To: [email protected]
Sent: Monday, November 17, 2008 3:27:43 PM
Subject: Re: [linux-lvm] steps to clone a volume group

I've had that problem too. Two workarounds. Here's what I usually do:

1a) Map the snapshot LUN to a *different* host than the production machine. 1b) Change the UUID and VG/LV there.
1c) *Then* map the LUN to the production machine.

Alternatively (untested):

2a) service haldaemon stop; service multipathd stop; service lvm2-monitor stop (not sure which of these is really necessary) 2b) Map the snapshot to the production server in the SAN.
2c) Manually add with echo '- - -' > /sys/class/scsi_host/hostN/scan
2d) Change UUID and VG/LV.
2e) Manually remove with echo 1 > /sys/block/sdX/device/delete
2f) service haldaemon start; service multipathd start; service lvm2-monitor start

Signature · 9 lines
Rich Graves http://claimid.com/rcgraves
Carleton.edu Sr UNIX and Security Admin
CMC135: 507-222-7079 Cell: 952-292-6529

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/