Operating System - HP-UX
1830898 Members
3309 Online
110017 Solutions
New Discussion

Could not delete Logical Volumes

 
Sunil Rahate_1
Advisor

Could not delete Logical Volumes

Hello All,

When i issue the lvremove command get the following error.

#lvremove -f /dev/vg08/lvol1
lvremove: Couldn't delete logical volume "/dev/vg08/lvol1":
No such device or address
vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c1t2d0

Regards
6 REPLIES 6
Ninad_1
Honored Contributor

Re: Could not delete Logical Volumes

Hi,

Please can you post the following outputs as well.

vgdisplay /dev/vg08
lvdisplay -v /dev/vg08/lvol1 | head -30
ll /dev/vg08/lvol1

Regards,
Ninad

Johnson Punniyalingam
Honored Contributor

Re: Could not delete Logical Volumes

Hi Sunul,

vgdisplay -v /dev/vg08 --> can please check /dev/vg08/lvol8 does present ..?

or if vgdisplay doesn't show up any thing , we can try to activate the vg08

vgchange -a y /dev/vg08

vgdisplay -v /dev/vg08 |more again look for lovl8 present.?

Thanks,
Johnson

Problems are common to all, but attitude makes the difference
Sunil Rahate_1
Advisor

Re: Could not delete Logical Volumes

Hi,

Below are the outputs

# vgdisplay /dev/vg08
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg08".

# cd /dev/vg08
# ls -lt
total 0
brw-r----- 1 root sys 64 0x080001 Oct 28 15:49 lvol1
crw-r----- 1 root sys 64 0x080001 Oct 28 15:49 rlvol1
crw-r--r-- 1 root sys 64 0x080000 Oct 28 15:46 group

# lvdisplay /dev/vg08/lvol1
lvdisplay: Couldn't query logical volume "/dev/vg08/lvol1":
Volume group not activated.

lvdisplay: Cannot display logical volume "/dev/vg08/lvol1".

Regards
Torsten.
Acclaimed Contributor

Re: Could not delete Logical Volumes

Hi,

the VG must be activated first:

# vgchange -a y vg08

If LVOL1 is the only LVOL in this group and you want to get rid of the whole VG, consider to use vgexport and export the vg08.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Johnson Punniyalingam
Honored Contributor

Re: Could not delete Logical Volumes

>># vgdisplay /dev/vg08
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg08".<<<

the above output show "vg08 not activated"

vgchange -a y /dev/vg08 --> activate the vg08 and post the output, after that lvdisplay /dev/vg08/lvol1 -> output,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Ninad_1
Honored Contributor

Re: Could not delete Logical Volumes

Hi,

You VG is not activated, hence any action related to lvol removal wont be allowed.
If you want to delete the lvol1, then please activate the vg08 first and then lvremove the lvol1.

As Torsten suggested - if you want to remove the whole vg, then you need not activate the vg, you can simply export it by vgexport /dev/vg08 .

Regards,
Ninad