- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: VG activation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:00 AM
12-09-2003 02:00 AM
When a VG is created, the following are done
- The directory is created below /dev for the VG
- /etc/lvmtab file is modified to include the VG info with PV's
Is there anything else done during VG creation?
What is actually happening during the VG activation and how system knows the specified VG is activated or not?
Thanks
John Jayaseelan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:05 AM
12-09-2003 02:05 AM
Solution/etc/lvmpvg might be updated if you are using physical volume groups.
I have no idea exactly what happens in activation but my guess is a kernel table is updated to reflect that the volume group is active on this machine and that this fact is also written to every physical volume in the volume group.
Just a guess mind.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:05 AM
12-09-2003 02:05 AM
Re: VG activation
To have the volume groups activated, check the
/etc/lvmrc file for the parameter AUTO_VG_ACTIVATE.
Setting AUTO_VG_ACTIVATE to 1 the volume groups will be activated.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:06 AM
12-09-2003 02:06 AM
Re: VG activation
you must create, manually, the directory /dev/vgNAME and the group file under it, with an appropritate minor number .
SAM will do this for you, nonethesame...
When you create e vg, the creation data is written on each the disk and in the /etc/lvmtab.
The normal activation is a flag in memory, AFAIK, while the cluster flag is on disk.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:06 AM
12-09-2003 02:06 AM
Re: VG activation
When you want to create a VG, you have to create the subdirectory under /dev and you also have to create the group node file prior to doing the vgcreate command.
Once you have done the vgcreate command, you have included one disk in your VG and this one disk is tagged with the VGID. It is also activated at that time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:06 AM
12-09-2003 02:06 AM
Re: VG activation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:09 AM
12-09-2003 02:09 AM
Re: VG activation
Is not 'vgcreate' should create the directories and group files?
Please tell what is happening in the system during VG activation, Is there any files are changed so that system knows the particular VG is active or not?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:12 AM
12-09-2003 02:12 AM
Re: VG activation
once you create VG you have to create Logical volumes with desired size and then each logical volumes needed to mount on specific file system depends on HFS or VXFS ( Online JFS)
There are lots of documents available on ITRC and docs.hp.com site.
-USA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:14 AM
12-09-2003 02:14 AM
Re: VG activation
I think you get quite a complete picture from the above posts from my incomprehensible rambled guesswork throught to Shiju's extremely complete and interesting post.
Basically, if you are doing a "vgcreate" you must create the /dev and the group file yourself. It's not just a good idea, it's the law!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:17 AM
12-09-2003 02:17 AM
Re: VG activation
Thanks to all for theLoads of useful info within minutes.
The situation is all the PV's are removed from a deactivated VG physically wihtout 'vgremove' and the directory is removed from /dev. What else needs to be done to complete the VG remove.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:18 AM
12-09-2003 02:18 AM
Re: VG activation
like mkdir /dev/vgname and mknod /dev/vgname/group c 64 0x080000 (this should be a unique number)
vgcreate command creates a volume group
man vgcreate for more.
vgchange -a y /dev/vgname will activate volume group and it gets activated soon you create it
vgchange -a n /dev/vgname deactivates it.
When you run vgdisplay /dev//vgname if it does not display anything and errors out then that VG is not activated.
strings /etc/lvmtab shows the list of VGs,lvols and PVs in the system
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:23 AM
12-09-2003 02:23 AM
Re: VG activation
Also, during vg creation, if you are creating a VG through SAM, you are right. The configuration files (/dev/vgxx and /etc/lvmtab) will get created or updated by SAM. But if you do 'vgcreate' command manually, you need to do everything by yourself. Read the man pages for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:24 AM
12-09-2003 02:24 AM
Re: VG activation
though I'm not sure I understand what you meant by the VG remove stuff, but here's the thing.
In order to completely remove a VG from a system, all you need to do is vgreduce all but one disk in the VG and then issue the vgremove command, and that will take care of removing the /dev/ VG directory. That's all you need to do to remove a VG from your system.
Now to know if your VG is activated, one quick way to do that is do a vgdisplay of your VG, if it returns any info about the VG, that means it is activated. If it gives you an error message saying it is not activated, then you know it's not activated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:26 AM
12-09-2003 02:26 AM
Re: VG activation
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066580919
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:37 AM
12-09-2003 02:37 AM
Re: VG activation
Getting 'could not login' for the link.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:41 AM
12-09-2003 02:41 AM