[linux-lvm] Disk crash - can't remove...

Heinz J . Mauelshagen mauelshagen at sistina.com
Fri Sep 26 05:02:02 UTC 2003


Kjetil,

the PVs must be initialized before you can use them in some other VG.

Run "pvcreate -ff on /dev/hd[abe-h]" on them.

Regards,
Heinz    -- The LVM Guy --


On Thu, Sep 25, 2003 at 10:14:08PM +0200, Kjetil H. Paulsen wrote:
> Hi
> 
> One of the disks in my volume was destroyed, I really don't care about
> the data but now I can't remove my volume group.
> And I can't add the disks to other volumes either. Tried the UUID fixer,
> but no luck :(
> Any help appreciated... (using RH9 and LVM 1.0.3)
> 
> Pvscan:
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- inactive PV "/dev/hdg"  is associated to unknown VG
> "stuff_group" (run vgscan)
> pvscan -- inactive PV "/dev/hdh" is in no VG  [114.50 GB]
> pvscan -- inactive PV "/dev/hde"  is associated to unknown VG
> "stuff_group" (run vgscan)
> pvscan -- inactive PV "/dev/hdf"  is associated to unknown VG
> "stuff_group" (run vgscan)
> pvscan -- inactive PV "/dev/hda"  is associated to unknown VG
> "stuff_group" (run vgscan)
> pvscan -- inactive PV "/dev/hdb"  is associated to unknown VG
> "stuff_group" (run vgscan)
> pvscan -- total: 6 [296.77 GB] / in use: 5 [182.27 GB] / in no VG: 1
> [114.50 GB]
> 
> Vgscan:
> vgscan -- reading all physical volumes (this may take a while...)
> vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of
> volume group "stuff_group" from physical volume(s)
> vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> vgscan -- WARNING: This program does not do a VGDA backup of your volume
> group
> 
> [root at theone root]# vgchange -a n stuff_group
> vgchange -- couldn't  open volume group "stuff_group" group special file
> vgchange -- try vgmknodes
> 
> [root at theone root]# vgmnodes
> -bash: vgmnodes: command not found
> [root at theone root]# vgmknodes
> vgmknodes -- no volume groups found to create nodes for
> 
> [root at theone root]# vgmknodes stuff_group
> vgmknodes -- volume group "stuff_group" doesn't exist
> 
> [root at theone root]# vgremove stuff_group 
> vgremove -- volume group "stuff_group" doesn't exist
> 
> 
> /kjetilhp
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at 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 at Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




More information about the linux-lvm mailing list