All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] LVM2 on a USB-disk/ same VG name
@ 2006-03-09  8:59 Axel Braun
  2006-03-09  9:46 ` Heinz Mauelshagen
  0 siblings, 1 reply; 6+ messages in thread
From: Axel Braun @ 2006-03-09  8:59 UTC (permalink / raw)
  To: linux-lvm

Hello experts,

I need your advice to save some data: My old laptop died, but I could make
the HD work again via a USB-adapter. I attached it to the new Laptop (as
well running SuSE 10.0 / lvm2), and the lvm on the USB-Disk is not
displayed.

The lvm on the installed system is active:
z60m:~ # pvdisplay /dev/sda8
  --- Physical volume ---
  PV Name               /dev/sda8
  VG Name               system
  PV Size               28.75 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              7359
  Free PE               11
  Allocated PE          7348
  PV UUID               ZdwaLr-anXc-Z7ck-cGI0-oFoW-UluI-F7SZ18

This group is also active:
z60m:~ # lvscan
  ACTIVE            '/dev/system/daten' [12.70 GB] inherit
  ACTIVE            '/dev/system/home' [8.00 GB] inherit
  ACTIVE            '/dev/system/root' [8.00 GB] inherit

Now, on the USB-disk is a LVM as well:
z60m:~ # pvdisplay /dev/sdb8
  --- Physical volume ---
  PV Name               /dev/sdb8
  VG Name               system
  PV Size               17.48 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              4475
  Free PE               9
  Allocated PE          4466
  PV UUID               P8KDPg-QbME-4Hzc-lw8G-ntOA-1dIv-1DeXmR

vgscan does not activate the group on the USB - due to the same name?
z60m:~ #  vgchange -a y
  3 logical volume(s) in volume group "system" now active
z60m:~ # pvscan
  PV /dev/sda8   VG system   lvm2 [28.75 GB / 44.00 MB free]
  Total: 1 [28.75 GB] / in use: 1 [28.75 GB] / in no VG: 0 [0   ]
z60m:~ # lvscan
  ACTIVE            '/dev/system/daten' [12.70 GB] inherit
  ACTIVE            '/dev/system/home' [8.00 GB] inherit
  ACTIVE            '/dev/system/root' [8.00 GB] inherit

What is your proposal to activate the USB-lvm group - best without loosing
data.....

TIA
Axel

-- 
"Feel free" mit GMX FreeMail!
Monat f�r Monat 10 FreeSMS inklusive! http://www.gmx.net

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] LVM2 on a USB-disk/ same VG name
  2006-03-09  8:59 [linux-lvm] LVM2 on a USB-disk/ same VG name Axel Braun
@ 2006-03-09  9:46 ` Heinz Mauelshagen
  2006-03-09 12:55   ` Axel Braun
  0 siblings, 1 reply; 6+ messages in thread
From: Heinz Mauelshagen @ 2006-03-09  9:46 UTC (permalink / raw)
  To: LVM general discussion and development


Hi Axel,

vgrename the active one and adjust /etc/fstab appropriately.
'vgscan;vgchange -ay' should gain you access to the USB one then.

Regards,
Heinz    -- The LVM Guy --


On Thu, Mar 09, 2006 at 09:59:22AM +0100, Axel Braun wrote:
> Hello experts,
> 
> I need your advice to save some data: My old laptop died, but I could make
> the HD work again via a USB-adapter. I attached it to the new Laptop (as
> well running SuSE 10.0 / lvm2), and the lvm on the USB-Disk is not
> displayed.
> 
> The lvm on the installed system is active:
> z60m:~ # pvdisplay /dev/sda8
>   --- Physical volume ---
>   PV Name               /dev/sda8
>   VG Name               system
>   PV Size               28.75 GB / not usable 0
>   Allocatable           yes
>   PE Size (KByte)       4096
>   Total PE              7359
>   Free PE               11
>   Allocated PE          7348
>   PV UUID               ZdwaLr-anXc-Z7ck-cGI0-oFoW-UluI-F7SZ18
> 
> This group is also active:
> z60m:~ # lvscan
>   ACTIVE            '/dev/system/daten' [12.70 GB] inherit
>   ACTIVE            '/dev/system/home' [8.00 GB] inherit
>   ACTIVE            '/dev/system/root' [8.00 GB] inherit
> 
> Now, on the USB-disk is a LVM as well:
> z60m:~ # pvdisplay /dev/sdb8
>   --- Physical volume ---
>   PV Name               /dev/sdb8
>   VG Name               system
>   PV Size               17.48 GB / not usable 0
>   Allocatable           yes
>   PE Size (KByte)       4096
>   Total PE              4475
>   Free PE               9
>   Allocated PE          4466
>   PV UUID               P8KDPg-QbME-4Hzc-lw8G-ntOA-1dIv-1DeXmR
> 
> vgscan does not activate the group on the USB - due to the same name?
> z60m:~ #  vgchange -a y
>   3 logical volume(s) in volume group "system" now active
> z60m:~ # pvscan
>   PV /dev/sda8   VG system   lvm2 [28.75 GB / 44.00 MB free]
>   Total: 1 [28.75 GB] / in use: 1 [28.75 GB] / in no VG: 0 [0   ]
> z60m:~ # lvscan
>   ACTIVE            '/dev/system/daten' [12.70 GB] inherit
>   ACTIVE            '/dev/system/home' [8.00 GB] inherit
>   ACTIVE            '/dev/system/root' [8.00 GB] inherit
> 
> What is your proposal to activate the USB-lvm group - best without loosing
> data.....
> 
> TIA
> Axel
> 
> -- 
> "Feel free" mit GMX FreeMail!
> Monat f?r Monat 10 FreeSMS inklusive! http://www.gmx.net
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

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

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

Heinz Mauelshagen                                 Red Hat GmbH
Consulting Development Engineer                   Am Sonnenhang 11
Cluster and Storage Development                   56242 Marienrachdorf
                                                  Germany
Mauelshagen@RedHat.com                            +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] LVM2 on a USB-disk/ same VG name
  2006-03-09  9:46 ` Heinz Mauelshagen
@ 2006-03-09 12:55   ` Axel Braun
  2006-03-09 13:31     ` Heinz Mauelshagen
  0 siblings, 1 reply; 6+ messages in thread
From: Axel Braun @ 2006-03-09 12:55 UTC (permalink / raw)
  To: mauelshagen, LVM general discussion and development

Hello Heinz,

> vgrename the active one and adjust /etc/fstab appropriately.
> 'vgscan;vgchange -ay' should gain you access to the USB one then.

After deactivation I could change the name, but after the reboot the
dm-mapper was still looking for the old volume group 'system'. I tried to
boot the rescue system, maybe the inittab needed a refresh - but that did
not work.
unfortunately Suse's system repair cant deal with LVM, so my best idea was
to  change everything back. 

Cheers
Axel

-- 
Echte DSL-Flatrate dauerhaft f�r 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] LVM2 on a USB-disk/ same VG name
  2006-03-09 12:55   ` Axel Braun
@ 2006-03-09 13:31     ` Heinz Mauelshagen
  2006-03-09 13:40       ` Axel Braun
  2006-03-14  7:44       ` Solved: " Axel Braun
  0 siblings, 2 replies; 6+ messages in thread
From: Heinz Mauelshagen @ 2006-03-09 13:31 UTC (permalink / raw)
  To: Axel Braun; +Cc: LVM general discussion and development, mauelshagen

On Thu, Mar 09, 2006 at 01:55:36PM +0100, Axel Braun wrote:
> Hello Heinz,
> 
> > vgrename the active one and adjust /etc/fstab appropriately.
> > 'vgscan;vgchange -ay' should gain you access to the USB one then.
> 
> After deactivation I could change the name, but after the reboot the
> dm-mapper was still looking for the old volume group 'system'. I tried to
> boot the rescue system, maybe the inittab needed a refresh - but that did
> not work.

Did you change /etc/fstab ?

Heinz

> unfortunately Suse's system repair cant deal with LVM, so my best idea was
> to  change everything back. 
> 
> Cheers
> Axel
> 
> -- 
> Echte DSL-Flatrate dauerhaft f?r 0,- Euro*!
> "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl

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

Heinz Mauelshagen                                 Red Hat GmbH
Consulting Development Engineer                   Am Sonnenhang 11
Cluster and Storage Development                   56242 Marienrachdorf
                                                  Germany
Mauelshagen@RedHat.com                            +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] LVM2 on a USB-disk/ same VG name
  2006-03-09 13:31     ` Heinz Mauelshagen
@ 2006-03-09 13:40       ` Axel Braun
  2006-03-14  7:44       ` Solved: " Axel Braun
  1 sibling, 0 replies; 6+ messages in thread
From: Axel Braun @ 2006-03-09 13:40 UTC (permalink / raw)
  To: mauelshagen, LVM general discussion and development

Hallo Heinz,

> > > vgrename the active one and adjust /etc/fstab appropriately.
> > > 'vgscan;vgchange -ay' should gain you access to the USB one then.
> > 
> > After deactivation I could change the name, but after the reboot the
> > dm-mapper was still looking for the old volume group 'system'. I tried
> to
> > boot the rescue system, maybe the inittab needed a refresh - but that
> did
> > not work.
> 
> Did you change /etc/fstab ?

yes, even before I changed the vgname

Ax

-- 
"Feel free" mit GMX FreeMail!
Monat f�r Monat 10 FreeSMS inklusive! http://www.gmx.net

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Solved: [linux-lvm] LVM2 on a USB-disk/ same VG name
  2006-03-09 13:31     ` Heinz Mauelshagen
  2006-03-09 13:40       ` Axel Braun
@ 2006-03-14  7:44       ` Axel Braun
  1 sibling, 0 replies; 6+ messages in thread
From: Axel Braun @ 2006-03-14  7:44 UTC (permalink / raw)
  To: mauelshagen, LVM general discussion and development

Hallo Heinz,

** Reply to message from Heinz Mauelshagen <mauelshagen@redhat.com> on Thu, 9
Mar 2006 14:31:01 +0100

> On Thu, Mar 09, 2006 at 01:55:36PM +0100, Axel Braun wrote:
> > Hello Heinz,
> > 
> > > vgrename the active one and adjust /etc/fstab appropriately.
> > > 'vgscan;vgchange -ay' should gain you access to the USB one then.
> > 
> > After deactivation I could change the name, but after the reboot the
> > dm-mapper was still looking for the old volume group 'system'. I tried to
> > boot the rescue system, maybe the inittab needed a refresh - but that did
> > not work.
> 
> Did you change /etc/fstab ?

The missing element was: Change settings for bootloader (/boot/grub/menu.lst)

The way it worked for me:
- change settings in /etc/fstab and /boot/grub/menu.lst
- boot the rescue system from CD (otherwise the volume groups are still active)
- do a vgrename / vgsan
- reboot

Cheers
Axel

-- 
Dr.-Ing. Axel K. Braun
Mobile: +49.173.7003.154
VoIP/Skype: axxite
 
To lead the people, walk behind them.
(Lao Tse)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-03-14  9:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-09  8:59 [linux-lvm] LVM2 on a USB-disk/ same VG name Axel Braun
2006-03-09  9:46 ` Heinz Mauelshagen
2006-03-09 12:55   ` Axel Braun
2006-03-09 13:31     ` Heinz Mauelshagen
2006-03-09 13:40       ` Axel Braun
2006-03-14  7:44       ` Solved: " Axel Braun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.