LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

I can not remove a volume group

 
SOLVED
Go to solution
Highlighted
rariasn
Honored Contributor

Re: I can not remove a volume group

Hi:

 

 

vgdisplay -v caprep

bdf | grep caprep

fuser /dev/caprep

 

Verify  for errors in /var/adm/syslog/syslog.log file

rgs

esmadscc01p
Occasional Advisor

Re: I can not remove a volume group

The only purpose to remove the volume group is to use the physical disk (140GB ) , exclusively dedicated to this vg, caprep,  composed of missing logical volumens.  The hardware path is 0/4/0/0.0.0  and the  device files are /dev/dsk/c11t0d0 and /dev/rdsk/c11t0d0.   

 

Is it possible to "initialze" it again? The "Unconfigure" action from teh graphic SAM administrator, can not be applied  because " The physycal Voleme PV cannot be removed since some of its physical extents are still in use".

 

I do not mind to perform any force action if  I can use again . I see it is impossible to clean the old lvols and vg data.

 

Highlighted
rariasn
Honored Contributor

Re: I can not remove a volume group

Hi:

 

Do reboot the server will release the affectedVG.

 

rariasn.

 

Highlighted
esmadscc01p
Occasional Advisor

Re: I can not remove a volume group

I can not test it until weekend, but I´ll make it.

I let you know.

Thank you very much for your help.

Highlighted
rariasn
Honored Contributor

Re: I can not remove a volume group

OK. Greetings

 

rariasn


Highlighted
Pete Randall
Outstanding Contributor

Re: I can not remove a volume group

You could try running pvcreate.  The -f option is available to force the initialization of a disk that already belongs to another VG.


Pete
Highlighted
esmadscc01p
Occasional Advisor

Re: I can not remove a volume group

Hi.

 

After reboot,  nothing changed.

To the 'pvcreate -f /dev/rds/c11t0d0' comand, I get:

 

pvcreate: The physical volume "/dev/dsk/c11t0d0" is already recorded in thr "/etc/lvmtab" file.

 

 

Highlighted
Hiren N Dave
Valued Contributor

Re: I can not remove a volume group

Try to boot into single user mode and then vgexport the volume group.

 

You can also try physically detaching the disk from the server and vgexport to remove perticular vg.

 

I am an HP Employee

Was this post useful? - You may click the KUDOS! star to say thank you.
Highlighted
esmadscc01p
Occasional Advisor
Solution

Re: I can not remove a volume group

Hello,

I have detached the physical disk ( out/put ) and finally it has been released. It has been a dirty operation, with a lot of information left in /etc/lvmconf , etc, and 1 missing volume group, I am trying to restore from backup. I think any information has been corrupted

 

Thank you for your valious help.