Operating System - HP-UX
1836987 Members
2205 Online
110111 Solutions
New Discussion

Re: Volume group not activated.

 
SOLVED
Go to solution
Has
Occasional Advisor

Volume group not activated.

Hi ,
I have old volume group which is not used, and it keep giving the "Volume group not activated." message whenever i run vgdisplay .
How can I remove it safely from the system.

Thanx
AbuAli
5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: Volume group not activated.

Hi,

to remove the VG from the system and keeping the data on the disk use vgexport.

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!   
Rasheed Tamton
Honored Contributor
Solution

Re: Volume group not activated.

Hi,

Just that as mentioned above.

vgexport /dev/vgname

(Vgexport command can be used to remove a volume group from the system.The volume group will be removed without modifying the logical volume
information found on the physical volumes).

Regards,
Rasheed Tamton.
Steven E. Protter
Exalted Contributor

Re: Volume group not activated.

Shalom AbuAli,

Perhaps the volume group is still marked in /etc/lvmrc for activation, take a quick look there.

Normally vgexport modifies this file.

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
Has
Occasional Advisor

Re: Volume group not activated.

/etc/lvmrc
contains the following :

#----------------------
AUTO_VG_ACTIVATE=1
RESYNC="SERIAL"
custom_vg_activation()
return 0
parallel_vg_sync()
for VG in $*
if /sbin/vgsync $VG > /dev/null
then
echo "Resynchronized volume group $VG"
fi
} &
done
#----------------------
James George_1
Trusted Contributor

Re: Volume group not activated.


Hi

The best way is to export the voulume group as everyone have pointed out. I would say, keep a map file before you export ..

# vgexport -p -s -v -m vg_name.map /dev/vg_name

# vgexport /dev/vg_name

Rgds / James
forum is for techies .....heaven is for those who are born again !!