Operating System - HP-UX
1758024 Members
1849 Online
108866 Solutions
New Discussion юеВ

check volume group active,

 
mukkala
Advisor

check volume group active,

how to check volume grou active

if it is not active how to active the volume group,

give the details how to deactive the volume group
8 REPLIES 8
Joseph Loo
Honored Contributor

Re: check volume group active,

hi,

to turn the volume group inactive, all file system must be unmounted first.

to activate:

# vgchange -a y


also, please assign points:

http://forums1.itrc.hp.com/service/forums/pageList.do?userId=BR892123&listType=unassigned&forumId=1

regards.
what you do not see does not mean you should not believe
Adisuria Wangsadinata_1
Honored Contributor

Re: check volume group active,

Hi,

To check whether the volume group is active or not, use 'vgdisplay ' :

# vgdisplay /dev/vgXX

If the vg is not active, the output will show to you that the vg is not active.

To activate / de-activate, use 'vgchange' command.

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

To de-activate :
# vgchange -a n /dev/vgXX

For more detail, check manpage of vgchange :
# man vgchange

Hope this information can help you.

Cheers,
AW



now working, next not working ... that's unix
Mel Burslan
Honored Contributor

Re: check volume group active,

vgdisplay vg_name_here

if it is active, you will see the details of the volume group. if it is not active, you will see the message sayin that vg was not activated yet.

to activate a volume group, there are different options for different types of vg's

if vg belongs to a single system (most common)

vgchange -a y vg_name_here

activates the volume group


if this was a volume group used and controlled by a cluster, activation must be done in exclusive mode if it needs to be done outside the cluster control, as follows:

vgchange -a e vg_name_here


if this is a shared volume group but not belonging to a cluster (I don't know any examples why it gets configured that way) it gets activated as follows:

vgchange -a s vg_name_here


To deactivate a volume group, regardles of how it got activated (any of the above)

vgchange -a n vg_name_here


Last but not the least, you have not assigned any points to any of the 15+ answers you have received so far. Please take few minutes to read this page
http://forums1.itrc.hp.com/service/forums/helptips.do?#28

and find your topics with unassigned points here
http://forums1.itrc.hp.com/service/forums/pageList.do?userId=BR892123&listType=unassigned&forumId=1

and assign points to them.

________________________________
UNIX because I majored in cryptology...
Adisuria Wangsadinata_1
Honored Contributor

Re: check volume group active,

Hi Mel,

You're awesome :-) :

"to 366 of 365 responses"

Hi Mukkala,

You need to follow Mel, to make everybody happy plus encourage the people who spend their time to help you.

Cheers,
AW
now working, next not working ... that's unix
Hanwant Verma_1
Regular Advisor

Re: check volume group active,

Check this link will help you.

http://docs.hp.com/en/B5158-90001/ch05s08.html

Hanwant
Muthukumar_5
Honored Contributor

Re: check volume group active,

To check status of VG then,

# vgdisplay /dev/vgxx | grep -i status

To activate then,

# vgchange -a /dev/vgxx

See vgchange man page and examples available there.

-Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: check volume group active,

mukkala,

You did not try to assign points to single thread?? see FAQ section to assign points. It will give a squad in ITRC to help you promptly.

P.S: Assing 0 points (Asking to assign points to the only response(s) which gave solution :) )

best wishes.
Easy to suggest when don't know about the problem!
Borislav Perkov
Respected Contributor

Re: check volume group active,

Hi mukkala,

the answer is

vgdisplay vg_name

command and in the status you can see is it active or not.

Try also this link
http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Regards,
Borislav