1843342 Members
3463 Online
110214 Solutions
New Discussion

remove volume group

 
SOLVED
Go to solution
Paul Cadieux
Occasional Advisor

remove volume group

Hi,

I have a volume group (vg03) that was moved to a SAN as vg15. We run a backup of the volume group configuration nightly and always receive the following cron message:

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


*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:

/usr/local/etc/vgbk.sh 2 >/dev/null

******************************

I want to remove any record of vg03 so that I no longer recieve this cron message. Some pertanent info follows.

When I run vgdisplay /dev/vg03 I recieve the following:

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


The /etc/lvmtab file has the following pertaining to vg03:

/dev/vg03
ze6x&y
/dev/dsk/c8t3d0

The /etc/fstab file has no entries pertaining to vg03. I have run "vgremove /dev/vg03" and receive the following message:

vgremove: Volume group not activated.

There are no logical volumes within vg03 as shown when I do an ls -l on /dev/vg03:

crw-r--r-- 1 root sys 64 0x030000 Mar 16 2002 group

The only file present is the group character file. What should I do to properly remove vg03 so that the backup no longer generates the above stated message?

Thanks

Paul.
5 REPLIES 5
Ken Hubnik_2
Honored Contributor

Re: remove volume group

Have you tried vgexport on vg03??



This should remove any entries from the lvmtab for vg03.
Jeff Schussele
Honored Contributor
Solution

Re: remove volume group

Hi Paul,

You need to run

vgexport /dev/vg03

That'll remove the lvmtab entries as well as the /dev/vg03 dir structure.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Pete Randall
Outstanding Contributor

Re: remove volume group

Paul,

Just use /usr/sbin/vgexport vg_name. Normally you would have to de-activate it first but that doesn't seem to apply in your case.

Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: remove volume group

Hi Paul:

# vgexport /dev/vg03

Regards!

...JRF...
Paul Sperry
Honored Contributor

Re: remove volume group

/usr/sbin/vgexport /dev/vg03