1833144 Members
3044 Online
110051 Solutions
New Discussion

vgchange command ...

 
SOLVED
Go to solution
Manuales
Super Advisor

vgchange command ...

when is used "vgchange" command?

Thanks, Manuales
2 REPLIES 2
Sanjay_6
Honored Contributor
Solution

Re: vgchange command ...

Hi,

command is used to activate / deactivate a volume group (VG)manually from the command line. The system executes these when a system is coming up.

Do man vgchange for more information.

Hope this helps.

regds
Raj D.
Honored Contributor

Re: vgchange command ...

Hi Manuales ,

When you need to activate or deactivate the volume group , at that time you need to use vgchange command.

After creation a new vg with vgcreate , need to activate , after doing vgimport you need to activate , or after adding failed disk , and doing vgcfgrestore you need to activate the vg. Else you cannot use the vg.

To activate :
# vgchange -a y /dev/vgname

To Deactivate :
# vgchange -a n /dev/vgname

use this command to check vginfo:
# cd /usr/sam/lbin/
# ./vginfo -d

When the vg is deactivated vgdisplay will not show anything for that vg.


Use #man vgchange , to see the details.

Hope this will help you,

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "