Skip to contentSkip to conversation

Importing Problems

linux-lvm Emiliano Ariel Lesende 2 participants 2 messages Jan 24, 2002

lore
Share & tools
lore
#0 lore raw

Hello everyone. I'm new to the list but I'm an old LVM user. Lately I decided to change distro so I did an export of my LVM volumes. Replace the whole distro, and import them
back again. This works like a charm. The LVM system mounts perfectly without a problem, but I do have an issue... My storage is running out of disk space so I bought a new hard disk, I connected it and tried to extend the volume but I got a VERY strange behavior. Look at this output:

------------------------- TERMINAL -----------------------------------------------------

root@brokenworld:/# uname -a
Linux brokenworld 2.4.17 #1 Wed Jan 23 08:00:20 ART 2002 i686 unknown
root@brokenworld:/# vgchange --version
vgchange: Logical Volume Manager 1.0.1
Heinz Mauelshagen, Sistina Software  26/11/2001 (IOP 10)
root@brokenworld:/# vgchange -ay system
vgchange -- volume group "system" already active
root@brokenworld:/# vgextend system /dev/ide/host0/bus1/target1/lun0/part1
vgextend -- ERROR: volume group "system" must be active for extension
root@brokenworld:/# vgscan                                                  
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "system"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group
root@brokenworld:/# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/ide/host0/bus1/target0/lun0/part1" of VG "system" [27.96 GB / 80.00 MB free]
pvscan -- inactive PV "/dev/ide/host0/bus0/target0/lun0/part4" of VG "system" [24.67 GB / 0 free]
pvscan -- inactive PV "/dev/ide/host0/bus0/target1/lun0/part1" of VG "system" [27.95 GB / 0 free]
pvscan -- total: 3 [80.59 GB] / in use: 3 [80.59 GB] / in no VG: 0 [0]

------------------------- TERMINAL -----------------------------------------------------

Look at the vgextend command... it says that my volume is not active, but when I do a vgchange -ay I tells me that it is already activated. Other thing I don't understand is why my physical volumes are all inactive the the system is mounted?

Did I do something wrong? Can I correct this?

Any help is appreciated, thanks in advance.
Emiliano Lesende

#1 lore raw
Quoted 10 lines · Emiliano Ariel Lesende

------------------------- TERMINAL -----------------------------------------------------

Look at the vgextend command... it says that my volume is not active, but when I do a vgchange -ay I tells me that it is already activated. Other thing I don't understand is why my physical volumes are all inactive the the system is mounted?

Did I do something wrong? Can I correct this?

Any help is appreciated, thanks in advance.
Emiliano Lesende

Did you add disk from a machine with a volume group already called system?

You should have done a vgexport first if you did, if you don;t you get two possible problems a name clash, Active groups have a number starting with the first oen you created and that can clash too... Don't look like that in your case, in both cases you can avoid it with vgexport/vgimport

You could ty renaming your volume group, that should allow the shadow "system" group to show,

vgrename /dev/system /dev/system2

then do a vgmerge of system and system2 into system

James