- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cluster - Add/Change Logical Volume
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
Discussions
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
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
02-17-2006 04:27 AM
02-17-2006 04:27 AM
Our production systems are running in a cluster environment.
Primary System name: Orion (Pkg is up& running)
Fail-Over system name: europa
We have a volume group: vgdb6 and it has 2 logical volumes. Both the logical vomues are full.
I still have free space in the volume group.
In a Cluster environment:--------
1. Can increase the existing logical volume sizes?
If so, do I have do make any changes on both the servers?
2. If the above case not possible, can I create a new logical volume in the volume group?
If so, do I have do make any changes on both the servers?
Here is the VG info:
--- Volume groups ---
VG Name /dev/vgdb6
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 2
Open LV 2
Max PV 255
Cur PV 1
Act PV 1
Max PE per PV 15000
VGDA 2
PE Size (Mbytes) 128
Total PE 703
Alloc PE 270
Free PE 433
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vgdb6/data67
LV Status available/syncd
LV Size (Mbytes) 17280
Current LE 135
Allocated PE 135
Used PV 1
LV Name /dev/vgdb6/data68
LV Status available/syncd
LV Size (Mbytes) 17280
Current LE 135
Allocated PE 135
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c15t0d2
PV Status available
Total PE 703
Free PE 433
Autoswitch On
Thank you,
Nikee
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 04:29 AM
02-17-2006 04:29 AM
Re: Cluster - Add/Change Logical Volume
Here is the LV info:
--- Logical volumes ---
LV Name /dev/vgdb6/data67
VG Name /dev/vgdb6
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 17280
Current LE 135
Allocated PE 135
Stripes 0
Stripe Size (Kbytes) 0
Bad block NONE
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c15t0d2 135 135
--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c15t0d2 00000 current
00001 /dev/dsk/c15t0d2 00001 current
00002 /dev/dsk/c15t0d2 00002 current
00003 /dev/dsk/c15t0d2 00003 current
00004 /dev/dsk/c15t0d2 00004 current
Thank you,
Nikee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 04:31 AM
02-17-2006 04:31 AM
SolutionNo need to answer question 2 since question 1 is "yes".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 04:31 AM
02-17-2006 04:31 AM
Re: Cluster - Add/Change Logical Volume
Yes, you can increase ('lvextend') the logical volumes and the filesystems they contain on one node and do nothing on the other.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 04:39 AM
02-17-2006 04:39 AM
Re: Cluster - Add/Change Logical Volume
Can you please let me know the command to extend the logical volumes?
Thank you,
Nikee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 04:44 AM
02-17-2006 04:44 AM
Re: Cluster - Add/Change Logical Volume
The command to extend a logical volume is 'lvextend'.
See the manpages for more information.
Since you ask that, however, I suspect that it would be safer for use to use SAM to enlarge the logical volume and the filesystem that resides in it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 07:04 AM
02-17-2006 07:04 AM
Re: Cluster - Add/Change Logical Volume
Hopefully, this link will give you some useful information...
http://www.olearycomputers.com/ll/mcsg/mcsg_export.html
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2006 07:14 AM
02-17-2006 07:14 AM
Re: Cluster - Add/Change Logical Volume
If its a Online JFS command is "fsadm".
See man fsadm for more details.
In case if it is not an Online JFS then you will have to unmount the filesystem first.
# umount
# lvextend -L
Cross check the options again by:
# lvextend -h
Then you can simply remount it and check the extended size by "bdf".
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2006 11:22 PM
02-19-2006 11:22 PM
Re: Cluster - Add/Change Logical Volume
Adding or removing an logical volume (lvol) or file system to/from a cluster VG - The device special files of new lvols need to be created on all other cluster nodes,those of removed lvols need to be deleted. This may be done with mknod/rmsf,however it is recommended to perform the Re-Import VG Procedure below.Additionally the package control scripts need to be adapted on all nodes to reflect the new configuration. Mount points need to be created for new file systems.
The Re-Import VG Procedure
We assume that a cluster volume group /dev/vg01 with VG group special file minor number 0x010000 needs to be re-imported.
Steps for the node that has the VG active:
1. Create a mapfile:
node1# vgexport â v â p â s â m /tmp/vg01.map vg01
Warning messages indicating that the VG is active should be ignored.
2. Copy mapfile to each of the other cluster nodes (using for example rcp, ftp, etc.)
node1# rcp /tmp/vg01.map node2:/tmp/vg01.map
...
Steps to be performed on each of the other nodes:
3. Note VG minor number and permissions/ownership:
node2# ll /dev/vg01
total 12
drwxr-xr-x 2 root root 1024 Apr 16 12:04 ./
dr-xr-xr-x 19 bin bin 5120 Jun 20 06:44 ../
crw-r----- 1 root sys 64 0x010000 Apr 4 13:32 group
brw-r----- 1 root sys 64 0x010001 Apr 4 13:32 lvol1
crw-r----- 1 root sys 64 0x010001 Apr 4 13:32 rlvol1
4. Export the VG:
node2# vgexport vg01
5. Re-create VG directory:
node2# mkdir /dev/vg01
6. Re-create VG group special file, use minor number noted above.
node2# mknod /dev/vg01/group c 64 0x010000
7. Run vgimport using the copied mapfile:
node2# vgimport â v â s â m /tmp/vg01.map vg01
-Amit