From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: - Newsgroups: gmane.os.tru64.managers Subject: summary: LSM RAID5 question Date: Sun, 27 Feb 2005 14:02:00 -0500 Message-ID: References: <5F7F0592BBC6724FBC59D177A6FECA74C207F2@broexc03.emea.cpqcorp.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109530753 12541 80.91.229.2 (27 Feb 2005 18:59:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Feb 2005 18:59:13 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Sun Feb 27 19:59:13 2005 Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1D5Tcr-0003R0-Kf for gotm-tru64-unix-managers@gmane.org; Sun, 27 Feb 2005 19:58:46 +0100 Original-Received: (qmail 22198 invoked by uid 5); 27 Feb 2005 19:02:34 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 22183 invoked by uid 49501); 27 Feb 2005 19:02:34 -0000 Original-Received: from ldg@ulysium.net by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 0.897333 secs); 27 Feb 2005 19:02:34 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 27 Feb 2005 19:02:33 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0ICL00L783K6CT@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sun, 27 Feb 2005 14:02:31 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0ICL002023JE3L@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sun, 27 Feb 2005 14:02:11 -0500 (EST) Original-Received: from pop-a065d19.pas.sa.earthlink.net (pop-a065d19.pas.sa.earthlink.net [207.217.121.253]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0ICL000AO3JD7V@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sun, 27 Feb 2005 14:02:02 -0500 (EST) Original-Received: from user-0c6tm4r.cable.mindspring.com ([24.110.216.155]) by pop-a065d19.pas.sa.earthlink.net with esmtp (Exim 3.33 #1) id 1D5Tg1-0005oh-00 for tru64-unix-managers@ornl.gov; Sun, 27 Feb 2005 11:02:02 -0800 In-reply-to: <5F7F0592BBC6724FBC59D177A6FECA74C207F2@broexc03.emea.cpqcorp.net> Original-To: Tru64 Unix managers User-Agent: Microsoft-Entourage/10.0.0.1309 X-Envelope-From: X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on emroute2.cind.ornl.gov X-Spam-Level: X-MailScanner-To: gotm-tru64-unix-managers@gmane.org Xref: main.gmane.org gmane.os.tru64.managers:8076 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8076 This might help a few lost souls that end up with the same questions. I tried creating a raid5 set with 4 disks on a new system and was having trouble understanding what was actually happening, as the end result was a raid5 set with 3 disks plus the 4th disk as a concatenated disk in that raid5 volume. So my original question was about lsm being able to create raid5 sets with more than the minimum 3 disks and how could a 4th drive showing up as concatenated be of any use for redundancy if it's just concatenated? I got several responses, mostly pointing to some books, which I do have and aren't specific enough. For example the file system admin book from steven hancock, which does show how to make raid5 sets, but not detailed enough for me to realize exactly how it really works. I found a pdf manual on lsm on the hp site, which does go deeper in details and does explain more fully how the raid5 is handled, especially for more than 3 disk sets. I couldn't test this on that new system any more, but I had a spare system, for which I gathered a few old drives and I did some experimenting. Basically what was happening originally, was that when using the lsm gui to set up the raid5 set, far too much was being done by default, which was giving a result that wasn't exactly what was expected. That set of 4 disks I was trying to make, was really being created as a 3 disk set plus a log plex on the 4th drive, which is what I saw as the concatenated disk, but it wasn't a data disk concatenated with the other set of 3, it was actually the log plex. When I couldn't obtain my expected results with the gui, I went to the cli and tried it with volassist and ended up with the same result. So now that I did some experimenting on that test bed, I think I understand what was going on and how lsm actually handles raid5. LSM actually can make raid5 sets with up to 8 columns, not just the 3 minimum, and it places a log plex on a separate disk unless we tell it not to. However I found out one important detail about how volassist does things: In the manual, it says that the order in which we list the disks to use on the command line will be respected and the last one listed would get the log plex, for example: volassist make test 100000 layout=raid5 ncolumn=4 dsk2 dsk3 dsk4 dsk5 dsk1 Which should make the 4 disks raid5 set with the disks 2,3,4 and 5 then placing the log plex on dsk1. But what actually happens, is dsk1,2,3,4 get the raid5 set and the log plex is put on dsk5. Why??? Go figure! If someone can explain the reasons for this, I'd like to know.. In any case, I was able to create that 4 disks raid5 set on my test bed system, with a 5th disk holding the log plex. Although it's not doing it exacty as it should, it does work. I guess the best way to do it exactly as you want is not to use volassist but rather using the bottom-up method of creating everything manually one by one using volmake and explicitly specify each disk in the set then place the log plex separately where you want it. One thing I find wasteful and not very efficient is the log plex, which is rather small and is placed on a disk by itself, using so much space. Since it's not a good thing to place a log plex on the same disks as the ones holding the raid5 data, I fail to see any good other use to make of the unused space on the disk holding the log plex. So much wasted space... -- Didier Godefroy mailto:dg@ulysium.net