* [linux-lvm] duplicate volume group names
@ 2003-04-14 16:23 Michal Adamczak
2003-04-17 9:12 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 2+ messages in thread
From: Michal Adamczak @ 2003-04-14 16:23 UTC (permalink / raw)
To: linux-lvm
hi,
------------
# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "vg0"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
group
# vgchange -a y
vgchange -- volume group "vg0" already active
# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/ide/host2/bus0/target0/lun0/part3" of VG
"vg0" [55.71 GB / 14.14 GB free]
pvscan -- inactive PV "/dev/ide/host2/bus0/target1/lun0/part3" of VG
"vg0" [37.07 GB / 280 MB free]
pvscan -- total: 2 [92.79 GB] / in use: 2 [92.79 GB] / in no VG: 0 [0]
----------
and the question:
is it possible to get data from the second hdd if it has the same volume
name?
the second hardrive comes from a different computer and has nothing to
do with the 'vg0' of the first (system) hdd
do i need to change the name of the volume group name of the system disk
first?
regards
ps. plz respond to private email as i am not subscribed to the list
--
Michal Adamczak
pokryfka @ druid.if.uj.edu.pl
GS dpu C+++ UL+++++ L+++(++++) w--- !tv h*
I code AND I bathe. (seen on slashdot)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] duplicate volume group names
2003-04-14 16:23 [linux-lvm] duplicate volume group names Michal Adamczak
@ 2003-04-17 9:12 ` Heinz J . Mauelshagen
0 siblings, 0 replies; 2+ messages in thread
From: Heinz J . Mauelshagen @ 2003-04-17 9:12 UTC (permalink / raw)
To: linux-lvm
Michal,
detach the 2nd HDD, vgrename "vg0" to something, reattach the 2nd HDD,
run "vgscan;vgchange -ay" and you should be able to access both.
Keep necessary /etc/fstab changes in mind doing so.
Regular procedure for such VG moves from one computer to another is
"vgchange -an VG ; vgexport VG" on the 1st one, move PVs to the 2nd computer
and run "vgimport VG PVPath [PVPath...]" there.
Regards,
Heinz -- The LVM Guy --
On Mon, Apr 14, 2003 at 10:36:56PM +0200, MichalAdamczak wrote:
> hi,
>
> ------------
>
> # vgscan
> vgscan -- reading all physical volumes (this may take a while...)
> vgscan -- found active volume group "vg0"
> vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> vgscan -- WARNING: This program does not do a VGDA backup of your volume
> group
>
> # vgchange -a y
> vgchange -- volume group "vg0" already active
>
> # pvscan
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- ACTIVE PV "/dev/ide/host2/bus0/target0/lun0/part3" of VG
> "vg0" [55.71 GB / 14.14 GB free]
> pvscan -- inactive PV "/dev/ide/host2/bus0/target1/lun0/part3" of VG
> "vg0" [37.07 GB / 280 MB free]
> pvscan -- total: 2 [92.79 GB] / in use: 2 [92.79 GB] / in no VG: 0 [0]
>
> ----------
>
> and the question:
> is it possible to get data from the second hdd if it has the same volume
> name?
> the second hardrive comes from a different computer and has nothing to
> do with the 'vg0' of the first (system) hdd
>
> do i need to change the name of the volume group name of the system disk
> first?
>
> regards
>
> ps. plz respond to private email as i am not subscribed to the list
>
> --
> Michal Adamczak
> pokryfka @ druid.if.uj.edu.pl
> GS dpu C+++ UL+++++ L+++(++++) w--- !tv h*
> I code AND I bathe. (seen on slashdot)
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.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 Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-17 9:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-14 16:23 [linux-lvm] duplicate volume group names Michal Adamczak
2003-04-17 9:12 ` Heinz J . Mauelshagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox