Operating System - HP-UX
1827286 Members
1666 Online
109717 Solutions
New Discussion

Re: Activating and deactivating a volume group

 
Sanjay Yugal Kishore Ha
Frequent Advisor

Activating and deactivating a volume group

Hi all,

I'm trying to understand the activation/deactivation of volume groups under LVM.

1. What does deactivating of a VG actually mean?
2. Is it necessary to unmount the filesystems and remove the LVs that were part of the VG? Why?
3. After a VG has been deactivated, can the disk(s) using which the VG was created, be reused for creating a new VG?

Any suitable documentation on the Sys Admin tasks related to VG administration would be appreciated. (Of course, I'm going through the vgchange and vgcreate man pages at the moment.)

Thanks in advance,
Sanjay
Dying is the last thing that I will do.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Activating and deactivating a volume group

Sanjay,

1. Activating/deactivating is simply the process of making the VG available to the system (you could think of it as "mounting" the VG, I guess).

2. Yes, you would want to umount the filesystems but no, you don't need to remove the lvols to deactivate.

3. In order to reuse the disk, you would first need to destroy the LVM information on them via lvremove/vgremove.


Pete

Pete
Thierry Poels_1
Honored Contributor

Re: Activating and deactivating a volume group

Hi,

1. deactivating (vgchange -a n) is used for disk which are share between several servers, especially in MC/ServiceGuard clusters.

2. all filesystems of the relevant VG have to be unmounted first, but they don't have to be deleted.

3. after a VG has been deactivated, you can activate it again on the same server, or another server. The disks can be reused to create a new VG, but this is not really the purpose of deactivating the VG.

regards,
Thierry.

All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Steven E. Protter
Exalted Contributor

Re: Activating and deactivating a volume group

1. Its like taking the volume group offline.
This allows you to export/import it into another machine if the disk is shared.

2. Depends on what you plan to do. If you are merely working on the volume group no. If you want to export the disk to another machine, yes, you should umount the filesystems.

3. The command vgreduce lets you takes disks out of a volume group. You'll need to lvremove the logical volumes first.

docs:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5187-0701/5187-0701_top.html&con=/hpux/onlinedocs/5187-0701/00/00/38-con.html&toc=/hpux/onlinedocs/5187-0701/00/00/38-toc.html&searchterms=LVM&queryid=20031110-094655




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
Michael Steele_2
Honored Contributor

Re: Activating and deactivating a volume group

There use to be very good courses but I see only this online LVM course now:

http://education.itresourcecenter.hp.com/TrainerII/en_US/catalog/catalogDetail.jsp?id=tprodid002681

Here's the list of courses:

http://www.hp.com/education/sections/hpux.html
Support Fatherhood - Stop Family Law
Hemanth Gurunath Basrur
Honored Contributor