lvm duplication

Bryn M. Reeves bmr at redhat.com
Fri Oct 26 12:13:35 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/26/2012 12:49 PM, Ian Chapman wrote:
> On 26/10/12 19:44, Patrick Dupre wrote:
>> Hello,
>> 
>> How can I manage such an issue?
>> 
>> 
>> WARNING: Duplicate VG name VolGrpSys0: 
>> s4LnbI-FRjU-fsPt-2W3d-XIIL-LT7o-uPsVfo (created here) takes
>> precedence over 4Nyva1-5hZi-Mdgr-KnoK-7NMd-56y1-9jczSF WARNING:
>> Duplicate VG name VolGrpUsr0: 
>> wCV7BU-ulp2-GmUG-RHs7-OBRD-EMKG-Q5E4Zm (created here) takes
>> precedence over v3dRcl-aILh-Qlji-qPMD-2Swq-Ay9Y-QqMzj7
> 
> I guess by renaming your volume groups so you don't have duplicates
> (man vgrename). Be careful if one of them contains your / volume,
> you may need to rebuild the initrd and update your grub config if
> you rename it and update /etc/fstab if necessary.

Better to use the vgimportclone script as it takes care of the
numerous manual steps need to exclude one VG, re-UUID and re-name the
conflicting group.

# vgimportclone --help
Usage: vgimportclone [options] PhysicalVolume [PhysicalVolume...]
    -n|--basevgname - Base name for the new volume group(s)
    -i|--import     - Import any exported volume groups found
    -t|--test       - Run in test mode
    --quiet         - Suppress output
    -v|--verbose    - Set verbose level
    -d|--debug      - Set debug level
    --version       - Display version information
    -h|--help       - Display this help message

The manual page has more usage details.

Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlCKfm8ACgkQ6YSQoMYUY95waACfXWlBJsRql2ijSIgQV3CvHmtk
aDEAnRZvrd0TL7wwECWIlzObljdLrLAr
=B7A6
-----END PGP SIGNATURE-----


More information about the users mailing list