- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Add new disk (mirror)
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
03-01-2010 09:56 PM
03-01-2010 09:56 PM
Add new disk (mirror)
OS:HP-UX 11.11
Server:rp5410
Iam bit new to this mirror disk concept need an expert view upon my below issue.
#This problem of up gradation related to DATA DISK only NOT boot disk's(vg00)
Planned to upgrade mirror data disk (ex 50GB) to new disk (ex 100GB).
Scenario 1:
How to restore old disk data on new disk, Is it possible to insert new disk one by one and later increase VG&LV's for more space requirement.
Scenarios 2:
Forget about restoring old data.
If i remove old disk and insert both new disk, how to MIRROR those disk and rest process will be to make VG & LV as per client requirements.
I appreciate all who contribute a worth info.
Have a nice day :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 10:14 PM
03-01-2010 10:14 PM
Re: Add new disk (mirror)
both of you scenarios are posible to do :
1, just simple reduce 1 mirror copy and replace the disk to bigger size, and them if its mirrored, them replace with the same procedure the second disk, of course at the end you can increase the LVOLS/fs size.
offline = extendfs
online = fsadm
2, backup your system via ignite (tape/server),
restore the system to the new disk ( in advanced type of restoration/installation you will be able change the size of LVOLs, and them mirror it together.
i'm using this commands in simple shell script :
#primary disk : c2t0d0 / hwpath : 0/1/1/0.0.0
#for mirroring disk : c2t1d0 / hwpath : 0/1/1/0.1.0
set -x
pvcreate -B -f /dev/rdsk/c2t1d0
mkboot /dev/rdsk/c2t1d0
mkboot -a "hpux -lq" /dev/rdsk/c2t0d0
mkboot -a "hpux -lq" /dev/rdsk/c2t1d0
vgextend /dev/vg00 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t1d0
.....
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t1d0
lvlnboot -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot -a 0/1/1/0.1.0
setboot
Best regards.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 10:19 PM
03-01-2010 10:19 PM
Re: Add new disk (mirror)
and i forgot to say :
in the second option, if you do not need the OLD data, just remove the LVOLS, from the vg, and them remove the PVs from VG, remove vg , pvcreate on the new disks, ( pvcreate -f /dev/rdsk/diskx )
create a new VG with all PVs, and them create lvol(s) and mirror it ( maybe you will do PVG groups ).
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 10:22 PM
03-01-2010 10:22 PM
Re: Add new disk (mirror)
The problem is if you use a new bigger disk. Most of the times the current configuration does not allow the bigger disk (check vgdisplay -v -> max_PE and PE size).
In such case backup data, re-create the vg, create and mirror the LVOL and restore data.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 11:20 PM
03-01-2010 11:20 PM
Re: Add new disk (mirror)
I appreciate your quick response.
I will try to replace the new disk one by one if succeed nothing to worry about data and mirroring,
In case any failure if i opt scenario 2 on normal data disk NOT boot disk (vg00). let sat vgoracle.
to create mirror on two new data disk can i follow below steps.
2, backup your system via ignite (tape/server),
#NO tape drive attach backup not possible.
i'm using this commands in simple shell script :
#primary disk : c2t0d0 / hwpath : 0/1/1/0.0.0
#for mirroring disk : c2t1d0 / hwpath : 0/1/1/0.1.0
set -x
pvcreate -B -f /dev/rdsk/c2t1d0
mkboot /dev/rdsk/c2t1d0
mkboot -a "hpux -lq" /dev/rdsk/c2t0d0 (4 normal disk mkboot ok/not)
mkboot -a "hpux -lq" /dev/rdsk/c2t1d0
vgextend /dev/vgoracle /dev/dsk/c2t1d0
lvextend -m 1 /dev/vgoracle/lvol1 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vgoracle/lvol2 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vgoracle/lvol3 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vgoracle/lvol4 /dev/dsk/c2t1d0
.....
lvextend -m 1 /dev/vgoracle/lvol8 /dev/dsk/c2t1d0
lvlnboot -r /dev/vgoracle/lvol3
lvlnboot -s /dev/vgoracle/lvol2
lvlnboot -d /dev/vgoracle/lvol2
lvlnboot -b /dev/vgoracle/lvol1
lvlnboot -R
lvlnboot -v
setboot -a 0/1/1/0.1.0
Rgd's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 04:54 AM
03-02-2010 04:54 AM
Re: Add new disk (mirror)
#vgcfgrestore -n vg00 /dev/rdsk/c1tXdX
#Vgchange -a y vg00
# vgsync vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2010 10:42 PM
03-05-2010 10:42 PM
Re: Add new disk (mirror)
#vgcfgrestore -n /dev/vg03 /dev/rdsk/c2t0d0
#vgchange -n y /dev/vg03
#vgsync vg03
After successful migration of mirror disk from 73GB to 146GB still the FREE PE 0 , how to recover the space to extend LV's.
#vgdisplay vg03
--- Volume groups ---
VG Name /dev/vg03
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 17502
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 8748
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Rgd's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2010 10:24 PM
03-07-2010 10:24 PM
Re: Add new disk (mirror)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2010 10:32 PM
03-07-2010 10:32 PM
Re: Add new disk (mirror)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2010 11:59 PM
03-08-2010 11:59 PM
Re: Add new disk (mirror)
You replaced the disk with a larger disk and used vgcfgrestore?
#Yes i used #vgcfgrestore #
vgchange -a y vgxx
#vgsync vgxx
Kindly provide me the steps after this to claim new disk space.
Regard's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 12:18 AM
03-09-2010 12:18 AM
Re: Add new disk (mirror)
Since new disk is higher size you need to run pvcreate on 146GB disk you can follow following steps
PHASE 1
Its suggestable to take backup of all mount ponts which are fall in vg03
******************************************************************************************
PHASE 2(reduce the disk 146 from mirror)
1)lvredeuce -m 0 /dev/vg03/lvolxx /dev/dsk/c2t0d0 (c2t0d0 as you mentioned)
-----reduce all lv from the 146gb disk /dev/dsk/c2t0d0--
2)vgreduce /dev/vg03 /dev/dsk/c2t0d0
*********************************************************************************************
PHASE 3(adding 146gb /dev/dsk/c2t0d0 disk to vg03)
1)pvcreate /dev/rdsk/c2t0d0 ---(no need to make bootable since you mentioned this is only data volume)
2)vgextend /dev/vg03 /dev/dsk/c2t0d0
3)vgdisplay ---conform vg03 have two disks
4)unmount all mount points which belogns to vg03
5)pvmove /dev/dsk/cxtxdx /dev/dsk/c2t0d0 -----(cxtxdx is yours 50gb old disk)
6)lvdisplay -v /dev/vg03/lvolxx ---conform each lv that lvs moved to c2t0d0
7)mont all mount points and conform data avialable
8)vgreduce /dev/dsk/vg03 /dev/dsk/cxtxdx (cxtxdx will be old 50Gb disk)
9)vgdidplay ---conform only one 146gb c0t2d0 now exists in vg03)
Here vgdisplay will show free PE also you can extnd each lv acconrding to your requirement.
this can done using lvextend and extndfs command
Need to Umount mount points
lvextend -l no of les /dev/dsk/c2t0d0
extendfs -F vxfs /dev/vg03/lvolx
if u have online jfs
No need to umount mount points
lvextnd -l no of les /dev/dsk/c2t0d0
fsadm -F vxfs -o largefils /mountpoint
**************************************************************************************************
PHASE4(mirrorig 146gb disk with new 146gb disk)
1)insert new disk
2)ioscan -fnC disk
3)pvcreate /dev/dsk/cytydy----(not need to make cytydy bootable since you mentioned vg03 only data voume.cytydy is new 146 gb as example)
4)vgextend vg03 /dev/dsk/cytydy
5)lvextnd -m 1 /dev/vg03/lvolxx /dev/dsk/cytydy----(mirror all lvs)
*****************************************END********************************************************
Regards,
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 03:53 AM
03-09-2010 03:53 AM
Re: Add new disk (mirror)
Thanks Chandra for your valuable input's ,
I will follow your guide and let u know, Kindly provide the steps to mirror LV's after replacing disk (146GB) one by one.
To be more clear:
#Mirror disk 50GB (vg03) replace by 146GB , But vgdisplay FREEPE 0 value .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 05:41 AM
03-09-2010 05:41 AM
Re: Add new disk (mirror)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 06:06 AM
03-09-2010 06:06 AM
Re: Add new disk (mirror)
Provide vgdisplay -v vg03 output i can help for mirroring 146gb disk
Note:if you do pvmove(as explained earlier post) you can find free pe s on vg03.
Regards,
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010 10:33 PM
03-09-2010 10:33 PM
Re: Add new disk (mirror)
Thanks for all whose contribution solve my issue.
ra/>vgdisplay -v vg03
--- Volume groups ---
VG Name /dev/vg03
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 17502
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 8748
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg03/lvol1
LV Status available/syncd
LV Size (Mbytes) 18000
Current LE 1125
Allocated PE 2250
Used PV 1
LV Name /dev/vg03/lvol2
LV Status available/syncd
LV Size (Mbytes) 18000
Current LE 1125
Allocated PE 2250
Used PV 1
LV Name /dev/vg03/lvol3
LV Status available/syncd
LV Size (Mbytes) 18000
Current LE 1125
Allocated PE 2250
Used PV 1
LV Name /dev/vg03/lvol4
LV Status available/syncd
LV Size (Mbytes) 15984
Current LE 999
Allocated PE 1998
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c1t0d0
PV Status available
Total PE 4374
Free PE 0
Autoswitch On
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 0
Autoswitch On
Regard's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 04:17 AM
03-10-2010 04:17 AM
Re: Add new disk (mirror)
Solution given below:
i Will take new 146gb disk device file as "cytydy"
pvcreate /dev/rdsk/cytydy
vgextend /dev/vg03 /dev/dsk/cytydy
lvextend -m 1 /dev/vg03/lvol1 /dev/dsk/cytydy
lvextend -m 1 /dev/vg03/lvol2 /dev/dsk/cytydy
lvextend -m 1 /dev/vg03/lvol3 /dev/dsk/cytydy
lvextend -m 1 /dev/vg03/lvol4 /dev/dsk/cytydy
vgdisplay -v vg03 --conform the vg03 have both disk.
Regards,
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2010 01:29 PM
03-12-2010 01:29 PM
Re: Add new disk (mirror)
Look like the above post answers your question. Here is a good document on how to mirror disk and recover from failed disk.
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2010 10:25 PM
03-15-2010 10:25 PM
Re: Add new disk (mirror)
Have a charming day everyday