- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can i still use mirroring if I use striped LV's?
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
12-17-2003 03:04 AM
12-17-2003 03:04 AM
So I have a VG with say 10 disks in, the first 5 I want to set up as my primary disks, so the first question is can I specufy a list of PV's to stripe across something like:
lvcreate -i 5 -I 64 -L 200 /dev/vg01 /dev/dsk/c1t20 /dev/dsk/c2t2d0 etc etc
and then specify where I want them mirroed:
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c4t2d0 etc etc
Will that create a striped mirror?
Hope that makes sense.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 03:09 AM
12-17-2003 03:09 AM
Solution# lvcreate -D y -s g -m 1 -l 1200 /dev/vgXX
# man lvcreate (for more details)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 03:12 AM
12-17-2003 03:12 AM
Re: Can i still use mirroring if I use striped LV's?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 03:13 AM
12-17-2003 03:13 AM
Re: Can i still use mirroring if I use striped LV's?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 03:16 AM
12-17-2003 03:16 AM
Re: Can i still use mirroring if I use striped LV's?
Shiju gave you the command to do it. What he calls pseudo-stripping is distributing PEs across specified disks, ie on 3 disks to simplify :
PE 0 --> disk 0
PE 1 --> disk 1
PE 2 --> disk 2
PE 3 --> disk 0
PE 4 --> disk 1
PE 5 --> disk 3
So instead of 64K, strippe size is 1 PE. In this case you can mirror. You should also perhaps use lvm PVG.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 03:17 AM
12-17-2003 03:17 AM
Re: Can i still use mirroring if I use striped LV's?
LVM supports RAID 1 mirroring, single or doulb copy of the LVM.
The only way to get striping and mirroring is to do part of it on the hardware like an EMC disk array.
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
12-17-2003 03:24 AM
12-17-2003 03:24 AM
Re: Can i still use mirroring if I use striped LV's?
BLOCK striping means that you use the -i and -I options with lvcreate .
However, you can use LVM extent striping with LVM mirror.
Extent striping means that you used the -D option with lvcreate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 03:30 AM
12-17-2003 03:30 AM
Re: Can i still use mirroring if I use striped LV's?
Read the lvcreate man pages and check the -D option. Also, read about pseudo striping in docs.hp.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 03:31 AM
12-17-2003 03:31 AM
Re: Can i still use mirroring if I use striped LV's?
Or is it like the first reply where you have to specify the -m 1 option at the time of creating the LV with -D y? so you cant control where the mirror ends up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 03:44 AM
12-17-2003 03:44 AM
Re: Can i still use mirroring if I use striped LV's?
Create a distributed lvol with 5 PEs on you first pvg (containing 5 first disks) using lvcreate -l 5 -D y /dev/vgxx , then mirror it to the second pvg (containing 5 other disks) using lvextend -m 1 /dev/vgxx and finally lvextend it to the required size (lvextend -L xxx /dev/vgxxx). See man lvmpvg.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 03:48 AM
12-17-2003 03:48 AM
Re: Can i still use mirroring if I use striped LV's?
# man lvcreate has all details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 04:00 AM
12-17-2003 04:00 AM
Re: Can i still use mirroring if I use striped LV's?
important thing is that you specify "-s g" for lvcreate to make mirroring "PVG-strict".
and before you need to specify "vgcreate -s 1 ..." for 1MB extent size.
Regarding vgcreate the other thing to consider before you start is that with current disk sizes you are likely to hit the max. extents per VG.
If you create the vg with extent size 1MB you can e.g. mirror 3x18GB disks onto 3x18GB disks 3x18000=54000 (approximate calculation but you need to stay below 65000).
So with 6 disks of 36GB you would have to use 2MB extent size for distributed allocation policy, which in turn somewhat reduces the effect of "striping".
Regards,
Bernhard