- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cluster Question
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
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО06-22-2009 11:45 AM
тАО06-22-2009 11:45 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 12:02 PM
тАО06-22-2009 12:02 PM
SolutionThe answer is it depends.
Adding a logical volume to a volume group on shared storage alone does not require package shutdown.
lvextend an existing logical volume to a new physical volume in the volume group also does not require a package shutdown.
extendfs, which extends a filesystem to a new physical disk requires umount and would require a package shut down. OnlineJFS would avoid this problem if installed.
To read your question literally. To add a new logical volume to a volume group that is activated by a SG/Cluster package does not require package shut down.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 12:13 PM
тАО06-22-2009 12:13 PM
Re: Cluster Question
Here are the steps for adding a logical volume to a package. I got these from HP SG guide. Can you make some amendments in it to make this plan perfect so that we just not need to shutdown the application or halt the package.
On the primary:
# cmhaltpkg -v package_name
# vgchange -a e vg02
# lvcreate -L size -n lvol_name /dev/vg02
# newfs -F vxfs /dev/vg02/rlvol_name
# mkdir /new_mount_point
# vgexport -v -s -p -m /etc/lvmconf/vg02.map vg02
(this will create a new map file that now includes new logical volume)
# vgchange -a n vg02
├в ┬в On the adoptive:
# cd /etc/lvmconf
# rcp
# mkdir /new_mount_point (needed on both systems)
# vgexport -v /dev/vg02
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x020000
# vgimport -v -s -m /etc/lvmconf/vg02.map vg02
# vgchange ├в a r vg02
# vgcfgbackup vg02
# vgchange ├в a n vg02
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 05:21 PM
тАО06-22-2009 05:21 PM
Re: Cluster Question
One caveat:
There is a missing point in it. If you edit the package control script, you will see lines looking like :
LV[1]=/dev/vg01/lvol2; FS[1]=/pkg01b; FS_MOUNT_OPT[1]="-o rw"
you need to add another one of these into the package control script, of course using the index of the last similar line +1.
Then it should be fine
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 07:37 PM
тАО06-22-2009 07:37 PM
Re: Cluster Question
>>is it possible to do this without halting the package <<
step1 :- vgextend /dev/vgxx
step2:- lvcreate -L
fsadm -F vxfs -o largefiles /dev/vgxx/lvolxx
step3 :- vgexport -pvs -m
step3:- Copy the mapfile to the other node
step4 :- Activate in share mode
vgchange -a s /dev/vgxx
On the other node:
1. Export the VG
>>>vgexport /dev/vgxx
2. Recreate the directory
>>>>mkdir -p /dev/vgxx
3. Recreate the VG group file
>>>mknod /dev/vgxx/group c 64 0xMM0000
where MM is a unique identifier (ex 01 for vg01)
4. Preview the vgimport to check for any possible error
>>>>vgimport -pvs -m
where mapfile is the one copied from the first node
5. If no error, remove the preview mode
>>>>vgimport -vs -m
6. Activate in share mode
>>>>vgchange -a s /dev/vgxx
<
need add entry to pkg.ctnl.file on the both nodes (if you mount the file system by package)
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2009 07:07 AM
тАО06-23-2009 07:07 AM
Re: Cluster Question
Lets say on the primary node if the pkg is up:
1- Can we switch the modes of VG (vgchange) while the package is up or do we need to halt the pkg?
2- Do we need to switch to shared mode with -s switch if we want to add some LV or file system to the pkg?
3- While transferring the changes to the adoptive node, while we activate the VG there with -s, Do we need to deactivate it on the primary node first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2009 08:17 AM
тАО06-23-2009 08:17 AM
Re: Cluster Question
exclusive activation, as far as I know is only for cluster controlled volume groups. Once activated in this mode, the volume group can not be simultaneously activated on another node sharing the same storage but when the exclusivity lock gets removed, i.e. package goes down on the original node, it can be activated on one other place. It actually is a flag that tells peple who want to activate this volume group with straight activation as in
vgchange -a y vgname
that volume group is under cluster control and should not be treated as a regular vg. Wheras shared activation, i.e.
vgchange -a s vgname
can be activated on multiple nodes at the same time. At this point, it is upto the application to track the sanity of data by employing file locking and what not. Again, as far as I know, LVM does not provide any file locking for shared activated vg's.
Hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 08:17 AM
тАО06-24-2009 08:17 AM
Re: Cluster Question
1) create the lv.
2) put in the package control file its entry.
3) RCP it to the other nodes control file.
Ofcourse do an insf -e disk on the other node as well because incase the packsge fails over the other node should have the device files for the disks on which the new lv was made.
You never really shutdown a package but u move it around different cluster nodes if u need to do maintainance on one node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 07:07 PM
тАО06-24-2009 07:07 PM
Re: Cluster Question
Check the following link for more info:
http://www.cs.bgu.ac.il/~arik/usail/man/hpux/vgchange.1.html
Rgds-kranti