Operating System - HP-UX
1831185 Members
2802 Online
110021 Solutions
New Discussion

Remove Volume Group after crash

 
Angel_15
Occasional Advisor

Remove Volume Group after crash

Hello
I have Volume Group vg0 with start disks and I have two data disks in mirror for vg01.One data disk crash and I remove this disk of the system.I start my system but I only see vg0. The other data disk is unused. I try to remove (whit vgremove) vg01 but is not active.
How I can remove vg01 and assign the data disk to a new Volume Group vg02?
Thanks.
angel0
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor

Re: Remove Volume Group after crash

Hi,

# vgexport /dev/vg01

Regards,

Robert-Jan.
Pete Randall
Outstanding Contributor

Re: Remove Volume Group after crash

You can try vgexport. "vgexport /dev/vg01"


Pete


Pete
Massimo Bianchi
Honored Contributor

Re: Remove Volume Group after crash

Hi,
use

vgexport vg01

pay attention, because this command works, regardless the content of the disks.


After that, you will have to issue a

pvcreate -f /dev/rdsk/cXtYdZ

on each of the disks that were previously used, to initialize the LVM structure.

Massimo