- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extend a vg on a cluster need help
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
08-18-2009 09:55 AM
08-18-2009 09:55 AM
Extend a vg on a cluster need help
The Storage Administrator just told me that he has provided us with a new LUN for our cluster (2 node cluster)
These are the special files I see:
/dev/[r]dsk/c8t2d5
/dev/[r]dsk/c11t2d5
This is the xpinfo output:
node1:
============================
Device File : /dev/rdsk/c8t2d5 Model : XP10000
Port : CL1A Serial # : 00042130
Host Target : 02 Code Rev : 5001
Array LUN : 15 Subsystem : 0004
CU:LDev : 00:03 CT Group : ---
Type : OPEN-E CA Volume : SMPL
Size : 13893 MB BC0 (MU#0) : SMPL
ALPA : b2 BC1 (MU#1) : SMPL
Loop Id : 20 BC2 (MU#2) : SMPL
SCSI Id : ---
RAID Level : RAID1 RAID Type : 2D+2D
RAID Group : 1-1 ACP Pair : 1
Disk Mechs : HDD0000 HDD0100 HDD0200 HDD0300
FC-LUN : 0000a49200000003 Port WWN : 50060e8004a49200
HBA Node WWN: --- HBA Port WWN: ---
Vol Group : --- Vol Manager : ---
Mount Points: ---
DMP Paths : ---
CLPR : ---
============================
Device File : /dev/rdsk/c11t2d5 Model : XP10000
Port : CL2A Serial # : 00042130
Host Target : 02 Code Rev : 5001
Array LUN : 15 Subsystem : 0004
CU:LDev : 00:03 CT Group : ---
Type : OPEN-E CA Volume : SMPL
Size : 13893 MB BC0 (MU#0) : SMPL
ALPA : 98 BC1 (MU#1) : SMPL
Loop Id : 30 BC2 (MU#2) : SMPL
SCSI Id : ---
RAID Level : RAID1 RAID Type : 2D+2D
RAID Group : 1-1 ACP Pair : 1
Disk Mechs : HDD0000 HDD0100 HDD0200 HDD0300
FC-LUN : 0000a49200000003 Port WWN : 50060e8004a49210
HBA Node WWN: --- HBA Port WWN: ---
Vol Group : --- Vol Manager : ---
Mount Points: ---
DMP Paths : ---
CLPR : ---
============================
node2:
=============================
Device File : /dev/rdsk/c8t2d5 Model : XP10000
Port : CL5A Serial # : 00042130
Host Target : 02 Code Rev : 5001
Array LUN : 15 Subsystem : 0004
CU:LDev : 00:03 CT Group : ---
Type : OPEN-E CA Volume : SMPL
Size : 13893 MB BC0 (MU#0) : SMPL
ALPA : ae BC1 (MU#1) : SMPL
Loop Id : 22 BC2 (MU#2) : SMPL
SCSI Id : ---
RAID Level : RAID1 RAID Type : ---
RAID Group : 1-1 ACP Pair : 1
Disk Mechs : HDD0000 HDD0100 HDD0200 HDD0300
FC-LUN : 0000a49200000003 Port WWN : 50060e8004a49240
HBA Node WWN: --- HBA Port WWN: ---
Vol Group : --- Vol Manager : ---
Mount Points: ---
DMP Paths : ---
CLPR : ---
===========================
Device File : /dev/rdsk/c11t2d5 Model : XP10000
Port : CL6A Serial # : 00042130
Host Target : 02 Code Rev : 5001
Array LUN : 15 Subsystem : 0004
CU:LDev : 00:03 CT Group : ---
Type : OPEN-E CA Volume : SMPL
Size : 13893 MB BC0 (MU#0) : SMPL
ALPA : 90 BC1 (MU#1) : SMPL
Loop Id : 32 BC2 (MU#2) : SMPL
SCSI Id : ---
RAID Level : RAID1 RAID Type : ---
RAID Group : 1-1 ACP Pair : 1
Disk Mechs : HDD0000 HDD0100 HDD0200 HDD0300
FC-LUN : 0000a49200000003 Port WWN : 50060e8004a49250
HBA Node WWN: --- HBA Port WWN: ---
Vol Group : --- Vol Manager : ---
Mount Points: ---
DMP Paths : ---
CLPR : ---
=============================
I would like to extend the size of the existing FS (see below)
/dev/vgdp/lvtest 14221312 12946708 1239830 91% /test
JFS is installed if needed
JFS B.11.11 The Base VxFS File System
OnlineJFS B.11.11.03.03 Online features of the VxFS File System
PHKL_24026 1.0 JFS Filesystem swap corruption
PHKL_28512 1.0 Fix for POSIX_AIO in JFS3.3
PHKL_29115 1.0 JFS Direct I/O cumulative patch
PHKL_30366 1.0 JFS3.3;ACL patch
PHKL_34805 1.0 JFS3.3 patch; mmap
I would like to extend it 13000Mb.
Thanks and a step-by-step guide would be truly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2009 10:23 AM
08-18-2009 10:23 AM
Re: Extend a vg on a cluster need help
Filesystem kbytes used avail %used Mounted on
/dev/vgdp/lvtest 14221312 12947552 1239012 91% /test
root@host:/etc/cmcluster/TEST # vgdisplay vgdp |egrep -i "Free|PE"
Open LV 1
Max PE per PV 3473
PE Size (Mbytes) 4
Total PE 3472
Alloc PE 3472
Free PE 0
Maybe this helps you help me!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2009 11:01 AM
08-18-2009 11:01 AM
Re: Extend a vg on a cluster need help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2009 12:56 PM
08-18-2009 12:56 PM
Re: Extend a vg on a cluster need help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2009 02:43 PM
08-18-2009 02:43 PM
Re: Extend a vg on a cluster need help
1. extend VG on primary node and file systems
2. export vg map in preview mode at the fist node
3. export on the second node and import it with the map file from the first node.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2009 05:45 PM
08-18-2009 05:45 PM
Re: Extend a vg on a cluster need help
On primary node:
1.create phisical volume using pvcreate
#pvcreate /dev/rdsk/c8t2d5
2.extend the volume group using vgextend
#vgextend /dev/vgdp /dev/dsk/c8t2d5 /dev/dsk/c11t2d5
3.extend the logical volume using lvextend
#lvextend -L
5.extend the file system using fsadm
#fsadm -b
#export the vg in preview mode
#vgexport -p -s -m /tmp/vgdp.map vgdp
6.copy the map file to alternative node using scp/rcp
On alternative node
1.check and note the minor number in group file for vgdp
#ls -l /dev/vgdp/group
2.export the vg
#vgexport vgdp
3.create the directory for vgdp
#mkdir /dev/vgdp
4.create the group file vgdp
#mknod /dev/vgdp/group c 64
5.import the vg
#vgimport -s -m /tmp/vgdp.map vgdp
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2009 04:18 PM
08-19-2009 04:18 PM
Re: Extend a vg on a cluster need help
you just need the following procedure to do.
1. pvcreate the new disks
2. vgextend with the new disks
3. lvextend the LV with the new size followed by fsadm.
4. vgexport in preview mode to make a map file.
5. rcp that map file in your secondary node.
6. vgexport that VG in secondary node.
7. create the group file for that VG with the same minor no. which it was having before exporting.
8. vgimport that VG with the map file copied from the primary server.
There you go. All tasks done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2009 06:41 PM
08-19-2009 06:41 PM
Re: Extend a vg on a cluster need help
Given informations
=====================
New LUN size ==> 13893 MB
Device file ==> /dev/[r]dsk/c8t2d5
Alternate ==> /dev/[r]dsk/c11t2d5
LV to be extended ==> /dev/vgdp/lvtest mounted on /test
LV present size ==> 14221312
extend it to 13000Mb
Online JFS ==> Yes
Max PE/PV ==> 3473
PE Size ==> 4 MB
So, max PV Size ==> 3473 x 4 = 13892MB,so you can add this LUN.
2 Node Cluster.
Procedure to add
===================
For eg,
Node1 - Primary Node
Node2 - Alternate Node
On Node1 - Primary Node do the follwing,
===================================
#pvcreate -f /dev/rdsk/c8t2d5
#vgextend vgdb /dev/dsk/c8t2d5
#vgextend vgdb /dev/dsk/c11t2d5
#vgdisplay -v vgdb <<==verify
#lvextend -L 13000 /dev/vgdb/lvtest
#fsadm -F vxfs -b 13000M /test
#lvdisplay -v /dev/vgdb/lvtest <<==verify
#bdf /test <<==verfify
#vgexport -p -s -m /tmp/vgdb.map vgdb <<< -p means ***preview mode***
#scp /tmp/vgdb.map
On Node2 - Alternate Node do the following
======================================
#ll /dev/vgdb/group <
#mkdir /dev/vgdb
#mknod /dev/vgdb/group c 64
#vgimport -s -m /tmp/vgdb.map vgdb
#strings /etc/lvmtab <
Regards,
LIJEESH N G