Skip to contentSkip to conversation

How to activate a vg or lv with same name as active one

linux-lvm Frank Matthieß 2 participants 2 messages Aug 12, 2002

lore
Share & tools
lore
#0 lore raw

Hello there,

i want to backup a disk which make some strange noise. The problem is that the volumegroupname (vg_sys) and the logical volumes (lv_home, lv_usr, lv_var) are already active and in use by the running system. The weak disk was remove from my home system and attach to a company system with a backup solution.

My first idea ist to rename the the inactive volume group vg_sys to vg_backup. But the man page told me that the vg must be active.

Seconf idea is to rename the lv's, but this is the same problem, isn't it?

How to solve this problem and to get the inactive vg active to mount the lv's on it?

Signature · 1 line
Frank Matthie�                                          [email protected]
#1 lore raw

Frank,

you needed to export the volume group *before* you moved the physical devices over to the other system :(
After the move you needed to import the volume group giving it a new name. See vgexport(8) and vgimport(8) for this.

In case you can't move the disks back to achieve this, the only option is to patch your metadata at the beginning of each of the physical volumes and change all occurences of vg_sys to vg_WhatEver (hacky!).

Quoted 26 lines · Frank Matthieß

Hello there,

i want to backup a disk which make some strange noise. The problem is that the volumegroupname (vg_sys) and the logical volumes (lv_home, lv_usr, lv_var) are already active and in use by the running system. The weak disk was remove from my home system and attach to a company system with a backup solution.

My first idea ist to rename the the inactive volume group vg_sys to vg_backup. But the man page told me that the vg must be active.

Seconf idea is to rename the lv's, but this is the same problem, isn't it?

How to solve this problem and to get the inactive vg active to mount the lv's on it?

Signature · 8 lines
Frank Matthieß                                          [email protected]


_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-