Operating System - HP-UX
1834751 Members
2990 Online
110070 Solutions
New Discussion

Re: vg removed ... files still there

 
SOLVED
Go to solution
Omar Alvi_1
Super Advisor

vg removed ... files still there

Hi,

I have a volume group which I removed using SAM. However the configuration files still exist. I mean /dev/vg#.

Can I simply manually remove these files?

Regards

-Alvi
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: vg removed ... files still there

LVM should not let you remove the volume group without destroying all logical volumes. Which would get the files.

Seems you had a few goodies hidden in the mount folder. Depending on what fs we're talking about its probably okay to rm the files.

Would be careful with /etc /usr /var things like that.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
steven Burgess_2
Honored Contributor

Re: vg removed ... files still there

Hi

Have a look at

/var/sam/log/samlog

When you remove a volume group with sam, it will unmount the logical volume, remove it then vgremove the volume group. Following that it will remove the group file within dir /dev/vg# and then the corresponding directory

Your answer is yes, as this is what sam actually does

HTH

Steve

take your time and think things through
Sridhar Bhaskarla
Honored Contributor

Re: vg removed ... files still there

Hi Alvi,

If you are sure that your VG is not there anymore (by doing vgdisplay vgxx and 'strings /etc/lvmtab') then you can safely remove these files. I would suggest teh following steps to confirm the non-existence of the VG by

#vgchange -a y vgxx

You should get "
volume group does not exist" etc.,

If it is successful or gives some other error than the above, then your vgremove operation was not successful through SAM. IN this case, find all the logical volumes that are active and unmount them. If you are using raw devices, make sure they are not accessed by using "fuser -cu /dev/vgxx/rlvol*" command. Once it is done, then you can manually remove the vg by using 'vgremove vgxx' command.

-Sri


-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Lorenzo Facello
Valued Contributor
Solution

Re: vg removed ... files still there

Hi,
verify the status of vg
vgdisplay -v vgxx (
---
if you make a
vgexport vgxx
you delete the vg config.

Maybe you have in your dir /dev/vg00 "group" the node.
You should remove it, if you don't you use anymore the vg
rm -rf /dev/vgxx