Sponsored Content
Full Discussion: RAID 1 + 0 with LVM
Operating Systems Solaris RAID 1 + 0 with LVM Post 93663 by pressy on Wednesday 21st of December 2005 07:08:26 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
All times are GMT -4. The time now is 06:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy