- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to mirror multiple disks.
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
09-14-2007 06:03 AM
09-14-2007 06:03 AM
Im planing to mirror 4 new disks to remaining 4 disks.( new volume group ).
For example :
I have 8 HDDS( c1t1d1, c1t1d2, c1t1d3 ... c1t1d8 ) with 9GB size of each disk.
I will create logical volume lvol88 with 36gb( c1t1d1, c1t1d2,c1t1d3,c1t1d4).
Now i want to mirror 36gb with remianing 4 disk ( c1t1d5, c1t1d6, c1t1d7, c1t1d8).
I know following things
1. mkdir /dev/vg99
2. mknod /dev/vg88/group c 64 0x880000
3. vgcreate /dev/vg88 /dev/dsk/c1t1d1 /dev/dsk/c1t1d2 /dev/dsk/c1t1d3 /dev/dsk/c1t1d4
4. lvcreate -L 36gb -n lvol88 vg88 ( is this command correct )
Now i shall add reaming to 4 disks to vg88
For mirror i shall do following thing.
5. lvextend –m 1 /dev/vg88/lvol88 /dev/dsk/c1t1d5 /dev/dsk/c1t1t6 /dev/dsk/c1t1t7 /dev/dsk/c1t1d8 ( is this command correct )
Please guide me.
Regards,
Viswa.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2007 06:18 AM
09-14-2007 06:18 AM
SolutionHope 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
09-14-2007 06:41 AM
09-14-2007 06:41 AM
Re: How to mirror multiple disks.
then your lvextend step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2007 06:46 AM
09-14-2007 06:46 AM
Re: How to mirror multiple disks.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1160878
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2007 06:53 AM
09-14-2007 06:53 AM
Re: How to mirror multiple disks.
U meen to say that the following commands are correct ?
# lvcreate -L 36gb -n lvol88 vg88 ( is this command correct )
or
# lvcreate -L 36gb -i 4 -n lvol88 vg88 ( is this command correct )
# pvcreate /dev/rdsk/c1t1d5 .. /dev/rdsk/c1t1d8
# vgextend vg88 /dev/dsk/c1t1d5 .. /dev/dsk/c1t1d8
# lvextend -m 1 /dev/vg88/lvol88 /dev/dsk/c1t1d5 .. /dev/dsk/c1t1d8
Regards,
Viswa.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2007 07:06 AM
09-14-2007 07:06 AM
Re: How to mirror multiple disks.
http://docs.hp.com/en/B2355-60105/lvcreate.1M.html
the section named
"Distributed Allocation Policy"
This will give you the best result.
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
09-14-2007 07:25 AM
09-14-2007 07:25 AM
Re: How to mirror multiple disks.
As first you should "initialize" the physical volumes (c1t1d1 ... c1t1d8).
As I assume from your VG name "vg88" the new VG will not be your Boot-VG (usually this is vg00).
1) Initialize the all new disks:
pvcreate /dev/rdsk/c1t1d1
pvcreate /dev/rdsk/c1t1d2
pvcreate /dev/rdsk/c1t1d3
pvcreate /dev/rdsk/c1t1d4
pvcreate /dev/rdsk/c1t1d5
pvcreate /dev/rdsk/c1t1d6
pvcreate /dev/rdsk/c1t1d7
pvcreate /dev/rdsk/c1t1d8
Hmm... This looks like as if all your disks are on the same controller / array.
Usually for availability aspects this it not a very good idea, but for testing / learning issues this is ok.
2) Create the new VolumeGroup vg88:
a.) mkdir /dev/vg88
b.) mknod /dev/vg88/group c 64 0x880000
c.) vgcreate -l 32 -s 64 -p 32 -g mirror0 /dev/vg88 /dev/dsk/c1t1d1 /dev/dsk/c1t1d2 /dev/dsk/c1t1d3 /dev/dsk/c1t1d4
=> these disks are "oraganized" in PhysicalDiskGroup with the name "mirror0"
-l 32 : maximum of 32 Volumes in your vg88 should be sufficient
-s 64 : PhysicalExtend (PE) Size = 64 MB, i.e. when you grow your Volume this would be in 64MB-steps.
-p 32 : max of 32 physical volumes (disks cXtYdZ) can be configured into your vg88 (default if parameter is not set: 16 phys. volumes... and you have already 8)
-> All the VG Parameters cannot be changed once the VG is created.
Add the new ("mirror") disks to your vg88:
d.) vgextend -g mirror1 vg00 /dev/dsk/c1t1d5 /dev/dsk/c1t1d6 /dev/dsk/c1t1d7 /dev/dsk/c1t1d8
=> these disks are "oraganized" in PhysicalDiskGroup with the name "mirror1"
3) Create the mirrored Volume lvol88 :
as you have many disks, make sure "strict" policy for your Volume is used, so that the mirror is really on different disks.
For this reason we have created the PVGs (PhysicalDiskGroups) before :-)
lvcreate -D y -s g -m 1 -L 36864 -n lvol88 /dev/vg88
-D y : the allocation policy is distributed, so on PVG "mirror0", the 1st PE is allocated from c1t1d1, the 2nd PE is allocated from c1t1d2, the 3rd PE is allocated from c1t1d3, the 4th PE is allocated from c1t1d4, the 5th PE is allocated again from c1t1d1 and so forth.
Then the Mirror is created (option "-m 1") on PVG "mirror1" (due to strict allocation policy option "-s g") in the analogous manner as the "mirror0".
You are done.
I hope I could help you and give you.
Regards,
Carsten
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2007 07:26 AM
09-14-2007 07:26 AM
Re: How to mirror multiple disks.
Sorry for trouble.
I got one idea that,
I have existing volume group vg05(c0t12d0 - 18gb, c1t1d0-18gb) with lvol05 with 8gb, and lvol06 with 10gb.
I want to increase the size of lvol05 more 9gb( 8gb+9gb)
Now I do following things
# pvcreate /dev/rdsk/c2t1d0
# vgextend vg05 /dev/dsk/c2t1d0
# umount /u05
# lvreduce -m 0 /dev/vg05/lvol05 /dev/dsk/c1t1d0 ( is this imp ? )
# lvextend -L 9gb /dev/vg05/lvol05 /dev/dsk/c2t1d0
# extendfs /dev/vg05/lvol05
# lvextend -m 1 /dev/vg05/lvol05 /dev/dsk/c1t1d0 /dev/vg05/c2t1d0
The above commands works for me ?
Regards,
Viswa.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2007 08:20 AM
09-14-2007 08:20 AM
Re: How to mirror multiple disks.
Temporarily it's postponed to next week.
Thanks to all.
Regards,
Viswa.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2007 08:34 AM
09-14-2007 08:34 AM
Re: How to mirror multiple disks.
no, you must extend with 2 disks to get a mirrored volume.
You need not to reduce the volume to "unmirrored" ( -m 0 ) first.
I want to increase the size of lvol05 more 9gb( 8gb+9gb)
You need to do:
# pvcreate /dev/rdsk/c2t1d0
# pvcreate /dev/rdsk/c3t1d0 (if this exists)
# vgextend vg05 /dev/dsk/c2t1d0 /dev/dsk/c3t1d0
# umount /u05
lvextend:
-L new_total_size_in_MegaByte
# lvextend -L 17gb /dev/vg05/lvol05 /dev/dsk/c2t1d0 /dev/dsk/c3t1d0
# extendfs /dev/vg05/lvol05
Regards,
Carsten