RAID 1 + 0 with LVM


 
Thread Tools Search this Thread
Operating Systems Solaris RAID 1 + 0 with LVM
# 1  
Old 12-19-2005
RAID 1 + 0 with LVM

Hi,

I am on Solaris 9. I have 4 disks that I want to mount in RAID 1+0 with LVM
First I initialize the devices ; for example :

metainit d102 c1t2d0s6
metainit d103 c1t3d0s6
metainit d104 c1t4d0s6
metainit d105 c1t5d0s6

then I make the mirrors :

metainit d120 -m d102
metattach d120 d104
metainit d121 -m d103
metattach d121 d105

and least, I want to make the stripe with :

metainit d130 1 2 d120 d121 -i 64k

and the system answers : d120 is a metadevice. metainit seems to want only a physical component !

Is it impossible to implement this solution with LVM ?

Thanks if somebody could help me.
# 2  
Old 12-19-2005
See Sun Docs - DiskSuite user guide creating a stripe metadevice. After you create the stripe sets, then you mirror.
# 3  
Old 12-19-2005
Yes.
I see what you mean. But by this way I do RAID 0 + 1, not RAID 1 + 0 which give a better security.
# 4  
Old 12-21-2005
Error for your info

To create a RAID 0+1 metadevice, one creates two striped metadevices and then one creates a mirror of these metadevices; this is standard practice with DiskSuite.
Creating a RAID 1+0 device requires creating multiple mirrors of disk partition pairs, then striping together the mirror metadevices. The problem is that DiskSuite does not allow the striping of metadevices. Members of a striped metadevice must be physical disk slices, hence RAID 1+0 appears not to be possible with DiskSuite.
However, things are not always as they appear.

If the RAID 0+1 metadevice is created such that the number of columns in each of the mirrored stripes is the same, and the sizes of the physical disk slices in each column is the same, DiskSuite will internally convert that metadevice to a RAID 1+0 device. However, no difference in its outward appearance (for example, using the metastat command) will occur.

As an example, give you what looks to be a RAID 0+1 metadevice:
Code:
  d0: Mirror
       Submirror 0: d10
         State: Okay         
       Submirror 1: d20
         State: Okay         
       Pass: 1
       Read option: roundrobin (default)
       Write option: parallel (default)
       Size: 7058880 blocks

   d10: Submirror of d0
       State: Okay         
       Size: 7058880 blocks
       Stripe 0: (interlace: 32 blocks)
           Device     Start Block  Dbase        State Reloc Hot Spare
           c1t0d0s0          0     No            Okay   Yes 
           c1t1d0s0          0     No            Okay   Yes 
           c1t2d0s0          0     No            Okay   Yes 

   d20: Submirror of d0
       State: Okay         
       Size: 7058880 blocks
       Stripe 0: (interlace: 32 blocks)
           Device     Start Block  Dbase        State Reloc Hot Spare
           c2t0d0s0          0     No            Okay   Yes 
           c2t1d0s0          0     No            Okay   Yes 
           c2t2d0s0          0     No            Okay   Yes

However, since DiskSuite treats this device as a RAID 1+0, non-corresponding disks in each submirror CAN fail without any resulting data loss. To illustrate this point, if the disks c1t0d0, c2t1d0, and c1t2d0 were all to fail, the data would still be accessible, despite the fact that all the metadevices are in a "Needs maintenance" state:
Code:
  d0: Mirror
Submirror 0: d10
         State: Needs maintenance
       Submirror 1: d20
         State: Needs maintenance
       Pass: 1
       Read option: roundrobin (default)
       Write option: parallel (default)
       Size: 7058880 blocks

   d10: Submirror of d0
       State: Needs maintenance
       Size: 7058880 blocks
       Stripe 0: (interlace: 32 blocks)
           Device     Start Block  Dbase        State Reloc Hot Spare
           c1t0d0s0          0     No     Maintenance   Yes 
           c1t1d0s0          0     No            Okay   Yes 
           c1t2d0s0          0     No     Maintenance   Yes 

   d20: Submirror of d0
       State: Needs maintenance
       Size: 7058880 blocks
       Stripe 0: (interlace: 32 blocks)
           Device     Start Block  Dbase        State Reloc Hot Spare
           c2t0d0s0          0     No            Okay   Yes 
           c2t1d0s0          0     No     Maintenance   Yes 
           c2t2d0s0          0     No            Okay   Yes

When replacing these disks, only the disk being replaced will need to be re-synchronized. Again, that is because this metadevice is being treated by DiskSuite as a RAID 1+0 device.

If corresponding disks in each submirror were to fail (such as c1t0d0s0 and c2t0d0s0), data loss would occur. as usual on a raid 1+0, it's not really saver, but it should be faster.... when you think about it, you are just working with luck, based on the probabilistic theory. the idea is that it is not presumably to lose 2 disks of the same pair, in theory. at the end of the day, only one disk should/may fail to provide a redundant lun, everything else is just a game, but think about Murphy's law:
Quote:
* If there's more than one way to do a job, and one of those ways will result in disaster, then somebody will do it that way
* Anything that can go wrong will go wrong
so it's a great idea to improve the performance, but not to increase the availability Smilie

greetings PRESSY
# 5  
Old 12-21-2005
Hi Pressy,
Thanks for your answer which is very clear as usual.
Just a precision : the solution I wanted to take for RAID 1+0 has been given by SUN support !! Problem ?
# 6  
Old 12-21-2005
Java

what type of storage are you using? if sun recommend you to use it, it will have a reason, what did you ask them?

a raid 1+0 is for sure the best way to build a high availability "disk" and the fastest, but to be honest with you, the most of my costumers don't use it, because it is the most expansive way, too. it costs exactly the double money of your space.... you lose 50% of your disks.... with 4 disks it doesn't matter, but think about 2TB luns Smilie so if you make a raid 5 with 10 disks, you would only lose 1 (10%), 20 disks 1 (5%), and so on and so on...
at the end of the day, it's a performance question, if you have to handle a raid 5 without a HW-controller and without HW-cache the performance is extremely bad and it costs CPU power...

i would also recommend you to use a 1+0, but it belongs to you. do you want to spend more money, speed it up and get a better availability... or save money and get more space on performance costs...

regards PRESSY
# 7  
Old 12-22-2005
MySQL

It's quite a long story.
My server has 6 disks 150 GB each but only one controller.
The first operation I did was to mount 3 disks in RAID 5 but the performances were awfull.
That's why SUN recommend me to mount the disks in RAID 0+1 or best in RAID 1+0 with the commands that I posted in my first post. The problem is that RAID 1+0 doesn't work with SVM : the last command metainit d130 1 2 d120 d121 -i 64k fails because it needs physical devices and not logical devices.
Anyway I choosed the solution RAID 0+1 and now it's fine, except that I will need a second controller to improve the performances Smilie .
Thanks again
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Centos 7.2 Convert single LVM to RAID Mirror Reinstall BootLoader

Hello, I am trying to convert a single-drive Centos 7.2 installation with LVM into a two-disk mdadm mirror with mrrored LVM. I was able to follow the excellent instructions at: http://www.dgoradia.com/creating-a-raid1-mirrored-on-an-existing-centos-on-lvm/and did create a two-disk mirror... (1 Reply)
Discussion started by: Clovis_Sangrail
1 Replies

2. Red Hat

RAID Configuration for IBM Serveraid-7k SCSI RAID Controller

Hello, I want to delete a RAID configuration an old server has. Since i haven't the chance to work with the specific raid controller in the past can you please help me how to perform the configuraiton? I downloaded IBM ServeRAID Support CD but i wasn't able to configure the video card so i... (0 Replies)
Discussion started by: @dagio
0 Replies

3. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

4. AIX

SCSI PCI - X RAID Controller card RAID 5 AIX Disks disappeared

Hello, I have a scsi pci x raid controller card on which I had created a disk array of 3 disks when I type lspv ; I used to see 3 physical disks ( two local disks and one raid 5 disk ) suddenly the raid 5 disk array disappeared ; so the hardware engineer thought the problem was with SCSI... (0 Replies)
Discussion started by: filosophizer
0 Replies

5. Solaris

Solaris LVM Raid 0+1

Hi, I tried to setup a Riad 0+1 but I found no step by step manual to follow so I tried on my own ;) I'd already configured a mirror for the OS on my Solaris machines so I had an idea where to start. I have 9 drives in the server. 1. I configured the first two as a mirror for the OS. 2. I... (1 Reply)
Discussion started by: RoiDanton
1 Replies

6. Filesystems, Disks and Memory

Partition management: lvm? fdisk? parted? (on RAID)

Hello, I have a RHEL system with two 500GB hard drives in RAID 1 (I think hardware, but not 100% certain - any way to tell?). It looks like it was just set up in default configuration with a small boot partition and one huge partition for the rest, which composes a LVM volume. I want... (1 Reply)
Discussion started by: builder88
1 Replies

7. HP-UX

How to reduce LVM to create another LVM

Hi, I'm new to HP-UX. I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3 Thanks (4 Replies)
Discussion started by: lamoul
4 Replies

8. UNIX for Advanced & Expert Users

Is there a tutorial on how to create RAID 1 on top of lvm?

Hi, there are tons of RAID1 tutorials, but none of them deal with lvm. The problem is that I want to expand my current lvm partition over RAID1 rather than creating a new lvm partition after RAID1 is created. My master harddrive has lvm partition. I'm wondering how to create a RAID1 image of... (1 Reply)
Discussion started by: onthetopo
1 Replies

9. Solaris

raid 5 using solaris 9 LVM

if i want to create a raid 5 device on 3 disks I have, can I make multiple metadevices? all the example i see on the internet make use of the slice 2 placing the entire disk into the raid5 device. what if i make 3 identical slices on each disk, and make 3 raid 5 metadevices? will that work? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
Login or Register to Ask a Question