Remove VOlume group that doesn't exist
Hello,
After my couple of disks died I have been left with one working volume group vg02 and
one non-existant volume group vg01 which I would like to remove.
Since /dev/sdd2 and /dev/sde2 no longer exist I am unable to remove the volume group with the usual method:
/sbin/vgremove vg01
VG data differs between PVs /dev/sdd2 and /dev/sde2 Volume group "vg01" doesn't exist
Actually /dev/sdd2 does still exist as a normal formatted linux partition so I don't want to damage that while trying to remove my volume group.
How do I tell lvm that vg01 no longer exists? It is not in lvmtab so I am unsure where it store this info.
Many Thanks,
melinda
Melinda,
Does pvscan show /dev/sdd2 as a Physical Volume ?
If so, there's still LVM metadata on /dev/sdd2 in the first sector. In case the partition is unused (no filesystem etc.), a
dd if=/dev/zero of=/dev/sdd2 bs=512
should remove the PV.
Quoted 31 lines · Melinda Taylor
Hello,
After my couple of disks died I have been left with one working volume group vg02 and
one non-existant volume group vg01 which I would like to remove. Since/dev/sdd2and/dev/sde2no longer exist I am unable to remove the volume group with the usual method:
/sbin/vgremovevg01
VG data differs between PVs/dev/sdd2and/dev/sde2Volume group "vg01" doesn't existActually
/dev/sdd2does still exist as a normal formatted linux partition so I don't want to damage that while trying to remove my volume group.How do I tell lvm that vg01 no longer exists? It is not in lvmtab so I am unsure where it store this info.
Many Thanks,
melinda
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Hi Heinz,
PVSCAN reveals:
[root@astro melinda]# /sbin/pvscan
VG data differs between PVs /dev/sdd2 and /dev/sde2 1 PV(s) found for VG vg01: expected 0
Out of memory. Requested 4006555252 bytes. Couldn't allocate logical volume maps.
PV /dev/sdd1 is in exported VG vg02 [9.85 GB / 0 free]
PV /dev/sde1 is in exported VG vg02 [19.54 GB / 0 free]
Total: 2 [0 ] / in use: 2 [0 ] / in no VG: 0 [0 ]
/dev/sdd2 and /dev/sde2 have both been reformatted as ext3 fs and their partition type was changed to linux fs using fdisk.
The memory error I haven't seen before (we have 3GB) but I installed a new kernel the other week maybe that is the cause /var/log/messages said:
Sep 8 16:17:15 astro kernel: ide-scsi: hda: unsupported command in request queue (0) Sep 8 16:17:15 astro kernel: end_request: I/O error, dev 03:1e (hda), sector 0 Sep 8 16:17:15 astro kernel: ide-scsi: hda: unsupported command in request queue (0) Sep 8 16:17:15 astro kernel: end_request: I/O error, dev 03:1f (hda), sector 0 Sep 8 16:17:16 astro kernel: ide-scsi: hda: unsupported command in request queue (0) Sep 8 16:17:16 astro kernel: end_request: I/O error, dev 03:20 (hda), sector 0
I don't want to do
dd if=/dev/zero of=/dev/sdd2 bs=512
as /dev/sdd2 now has data on it.
If I look at both drives in fdisk only the parition /dev/sdd1 and /dev/sde1 which make up VG02 are set to "Linux LVM".
Is there someway to rename VG02 as VG01 maybe? I am at a loss.
Many Thanks,
melinda
Quoted 47 lines · Heinz J . Mauelshagen
Melinda,
Does pvscan show
/dev/sdd2as a Physical Volume ?If so, there's still LVM metadata on
/dev/sdd2in the first sector. In case the partition is unused (no filesystem etc.), add if=/dev/zero of=/dev/sdd2 bs=512should remove the PV.
Quoted 30 lines · Melinda Taylor
Hello,
After my couple of disks died I have been left with one working volume group vg02 and
one non-existant volume group vg01 which I would like to remove.
Since/dev/sdd2and/dev/sde2no longer exist I am unable to remove the volume group with the usual method:
/sbin/vgremovevg01
VG data differs between PVs/dev/sdd2and/dev/sde2Volume group "vg01" doesn't existActually
/dev/sdd2does still exist as a normal formatted linux partition so I don't want to damage that while trying to remove my volume group.How do I tell lvm that vg01 no longer exists? It is not in lvmtab so I am unsure where it store this info.
Many Thanks,
melinda
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Quoted 1 line · Melinda Taylor
Hi Heinz,
Hi Melinda.
Quoted 12 lines
PVSCAN reveals:
[root@astro melinda]#
/sbin/pvscan
VG data differs between PVs/dev/sdd2and/dev/sde21 PV(s) found for VG vg01: expected 0
Out of memory. Requested 4006555252 bytes. Couldn't allocate logical volume maps.
PV/dev/sdd1is in exported VG vg02 [9.85 GB / 0 free]
PV/dev/sde1is in exported VG vg02 [19.54 GB / 0 free]
Total: 2 [0 ] / in use: 2 [0 ] / in no VG: 0 [0 ]
Quoted 2 lines
/dev/sdd2and/dev/sde2have both been reformatted as ext3 fs and their partition type was changed to linux fs using fdisk.
And those aren't listed above wich is good.
Quoted 3 lines
The memory error I haven't seen before (we have 3GB) but I installed a new kernel the other week maybe that is the cause
/var/log/messagessaid:
This is no memory error at all. Just some application sending an unsupported command through the ide-scsi driver (cd writer sw ?). Can be ignored safely.
Quoted 12 lines
Sep 8 16:17:15 astro kernel: ide-scsi: hda: unsupported command in request queue (0) Sep 8 16:17:15 astro kernel: end_request: I/O error, dev 03:1e (hda), sector 0 Sep 8 16:17:15 astro kernel: ide-scsi: hda: unsupported command in request queue (0) Sep 8 16:17:15 astro kernel: end_request: I/O error, dev 03:1f (hda), sector 0 Sep 8 16:17:16 astro kernel: ide-scsi: hda: unsupported command in request queue (0) Sep 8 16:17:16 astro kernel: end_request: I/O error, dev 03:20 (hda),
Quoted 5 lines
sector 0
I don't want to do
dd if=/dev/zero of=/dev/sdd2 bs=512
You shoudn't because it would overwrite filesystem metadata.
Quoted 4 lines
as
/dev/sdd2now has data on it.If I look at both drives in fdisk only the parition
/dev/sdd1and/dev/sde1which make up VG02 are set to "Linux LVM".
LVM still finds PV metadata for vg01 which is strange.
Could you send the 1st 4MB of you partitions sdd2 and sde2 to me in email for further analysis ?
If so please run:
# dd if=/dev/sdd2 of=sdd2.vgda bs=1k count=4k # dd if=/dev/sde2 of=sde2.vgda bs=1k count=4k # tar cf Melinda.vgda.tar sd[de]2.vgda # bzip2 Melinda.vgda.tar
and send the resulting Melinda.vgda.tar.bz2 file to me.
Regards,
Heinz -- The LVM Guy --
Quoted 65 lines
Is there someway to rename VG02 as VG01 maybe? I am at a loss.
Many Thanks,
melinda
Quoted 4 lines · Heinz J . Mauelshagen
Melinda,
Does pvscan show
/dev/sdd2as a Physical Volume ?Quoted 46 lines
If so, there's still LVM metadata on
/dev/sdd2in the first sector. In case the partition is unused (no filesystem etc.), add if=/dev/zero of=/dev/sdd2 bs=512should remove the PV.
Quoted 33 lines · Melinda Taylor
Hello,
After my couple of disks died I have been left with one working volume group vg02 and
one non-existant volume group vg01 which I would like to remove. Since/dev/sdd2and/dev/sde2no longer exist I am unable to remove the volume group with the usual method:
/sbin/vgremovevg01
VG data differs between PVs/dev/sdd2and/dev/sde2Volume group "vg01" doesn't existActually
/dev/sdd2does still exist as a normal formatted linux partition so I don't want to damage that while trying to remove my volume group.How do I tell lvm that vg01 no longer exists? It is not in lvmtab so I am unsure where it store this info.
Many Thanks,
melinda
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
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
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-