<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in Solaris software RAID</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/solaris_software_raid_solaris_system_administration_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 29 Mar 2011 05:33:59 -0000</lastBuildDate><item><title>Re: Solaris software RAID</title><link>http://www.tech-recipes.com/rx/225/solaris-software-raid/#comment-173946888</link><description>&lt;p&gt;both are wrong u guys &lt;br&gt;call me if u hava any doubts +918088605383&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sekhar</dc:creator><pubDate>Tue, 29 Mar 2011 05:33:59 -0000</pubDate></item><item><title>Re: Solaris software RAID</title><link>http://www.tech-recipes.com/rx/225/solaris-software-raid/#comment-2767160</link><description>&lt;p&gt;The quick way of making a stripe:&lt;/p&gt;&lt;p&gt;partition each of your disks with a 10mb partition, (I use slice3) to hold your metadb's, assigning the rest of the space to slice 7&lt;/p&gt;&lt;p&gt;Create you metadb's&lt;br&gt;metadb -a -f -c 3 /dev/dsk/c1t1d0s3 /dev/dsk/c1t2d0s3 /dev/dsk/c1t3d0s3&lt;/p&gt;&lt;p&gt;At the following to /etc/lvm/&lt;a href="http://md.tab" rel="nofollow noopener" target="_blank" title="md.tab"&gt;md.tab&lt;/a&gt;&lt;/p&gt;&lt;p&gt;d0 3 1 dev/dsk/c1t1d0s7 1  /dev/dsk/c1t2d0s7 1  /dev/dsk/c1t3d0s7&lt;/p&gt;&lt;p&gt;Build the stripe:&lt;/p&gt;&lt;p&gt;metainit d0&lt;/p&gt;&lt;p&gt;create the file system:&lt;/p&gt;&lt;p&gt;newfs  /dev/md/rdsk/d0&lt;/p&gt;&lt;p&gt;mount the file system to check it works:&lt;/p&gt;&lt;p&gt;mount /dev/md/dsk/d0 /mnt&lt;/p&gt;&lt;p&gt;write to it, df it, fsck it, etc.&lt;/p&gt;&lt;p&gt;then edit /etc/vfstab&lt;/p&gt;&lt;p&gt;/dev/md/dsk/d0   /dev/md/rdsk/d0  /mnt  ufs  2  yes  quota&lt;/p&gt;&lt;p&gt;This means the file system is mounted on /mnt at reboot, and will not be mounted in single user mode, change the 2 for 1 if you want it mounted when the kernel comes up.&lt;/p&gt;&lt;p&gt;Note: it's usefull to keep the output from newfs somewhere, because if your disk ever dies, you need to know where your next super block is, (for use with fsck) and the output from newfs is the only way you have of knowing this.&lt;/p&gt;&lt;p&gt;Note also, that if you ever screw your metadevice you can still mount the individual disks manually:&lt;/p&gt;&lt;p&gt;mount /dev/dsk /dev/dsk/c1t1d0s7 /mnt&lt;/p&gt;&lt;p&gt;It is frequently quicker to do this, back up the data, then rebuild your metadevice from scratch, then restrore the data, than it is to try to recover the metadevice.&lt;/p&gt;&lt;p&gt;To build a mirror, same rules for partitions&lt;/p&gt;&lt;p&gt;Edit /etc/lvm/&lt;a href="http://md.tab" rel="nofollow noopener" target="_blank" title="md.tab"&gt;md.tab&lt;/a&gt;&lt;/p&gt;&lt;p&gt;d0 -m /dev/md/dsk/d1 /dev/md/dsk/d2&lt;br&gt;d1 1 1 /dev/dsk/c1t1d0s7&lt;br&gt;d2 1 1 /dev/dsk/c1t2d0s7&lt;/p&gt;&lt;p&gt;The rest is the same.&lt;/p&gt;&lt;p&gt;If ever a mirror disk goes bad, you can do a soft replace with the following command:&lt;/p&gt;&lt;p&gt;metareplace -e d0 c1t2d0s7&lt;/p&gt;&lt;p&gt;It will then try to resync the disk.&lt;/p&gt;&lt;p&gt;If a mirrored disk dies and has to be replaced use the following:&lt;/p&gt;&lt;p&gt;metadb -d /dev/dsk/c1t1d0s3 (to delete the state databases)&lt;br&gt;replace physical disk (c1t1)&lt;br&gt;prtvtoc /dev/rdsk/c1t2d0s2 | fmthard –s - /dev/rdsk/c1t1d0s2 (to mirror the partition table, working drive -&amp;gt; new drive)&lt;br&gt;metadb -a -c 3 /dev/dsk/c1t1d0s3 (to rebuild the state databases)&lt;br&gt;metareplace -e d0 c1t1d0s7 (to replace the failed mirror)&lt;/p&gt;&lt;p&gt;Note:&lt;br&gt;You can replace the disk on the fly, repartition and metareplace. *THEN* metadb -d &amp;amp; metadb -a -c 3 with the system up...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 21 Jun 2006 05:26:53 -0000</pubDate></item><item><title>Re: Solaris software RAID</title><link>http://www.tech-recipes.com/rx/225/solaris-software-raid/#comment-2767159</link><description>&lt;p&gt;why do you use 64mb? is it enough for every disk size? i want to build raid1 with two 400gb disks, can i still use 64mb?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 27 Mar 2006 04:08:01 -0000</pubDate></item><item><title>Re: Solaris software RAID</title><link>http://www.tech-recipes.com/rx/225/solaris-software-raid/#comment-2767158</link><description>&lt;p&gt;&amp;lt;ul id="quote"&amp;gt;&amp;lt;h6&amp;gt;Reg wrote:&amp;lt;/h6&amp;gt;&amp;lt;/ul&amp;gt;&amp;lt;ul id="quote"&amp;gt;&amp;lt;h6&amp;gt;Anonymous wrote:&amp;lt;/h6&amp;gt;on sol9:&lt;/p&gt;&lt;p&gt;bash-2.05# metainit -f d0 d10&lt;br&gt;metainit: srv-e4500: d0: "d10": syntax error&lt;/p&gt;&lt;p&gt;ideas?&amp;lt;/ul&amp;gt;&lt;/p&gt;&lt;p&gt;metainit d0 -m d10&lt;br&gt;metainit d0 -m d10&lt;/p&gt;&lt;p&gt;the metattach further down should be left without the -f switch since it doesnt exsist in metaattach command&lt;/p&gt;&lt;p&gt;should just be&lt;/p&gt;&lt;p&gt;metattach d0 d20&lt;br&gt;metattach d1 d21&lt;/p&gt;&lt;p&gt;not metattach -f d0 d20&lt;/p&gt;&lt;p&gt;otherwise it works like a charm  :wink:&lt;/p&gt;&lt;p&gt;sry  &lt;br&gt;metainit d0 -m d10&lt;br&gt;metainit d1 -m d11&lt;/p&gt;&lt;p&gt;thats it&lt;/p&gt;&lt;p&gt;reg&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reg</dc:creator><pubDate>Wed, 14 Dec 2005 00:44:58 -0000</pubDate></item><item><title>Re: Solaris software RAID</title><link>http://www.tech-recipes.com/rx/225/solaris-software-raid/#comment-2767157</link><description>&lt;p&gt;&amp;lt;ul id="quote"&amp;gt;&amp;lt;h6&amp;gt;Anonymous wrote:&amp;lt;/h6&amp;gt;on sol9:&lt;/p&gt;&lt;p&gt;bash-2.05# metainit -f d0 d10&lt;br&gt;metainit: srv-e4500: d0: "d10": syntax error&lt;/p&gt;&lt;p&gt;ideas?&amp;lt;/ul&amp;gt;&lt;/p&gt;&lt;p&gt;metainit d0 -m d10&lt;br&gt;metainit d0 -m d10&lt;/p&gt;&lt;p&gt;the metattach further down should be left without the -f switch since it doesnt exsist in metaattach command&lt;/p&gt;&lt;p&gt;should just be&lt;/p&gt;&lt;p&gt;metattach d0 d20&lt;br&gt;metattach d1 d21&lt;/p&gt;&lt;p&gt;not metattach -f d0 d20&lt;/p&gt;&lt;p&gt;otherwise it works like a charm  :wink:&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reg</dc:creator><pubDate>Wed, 14 Dec 2005 00:42:25 -0000</pubDate></item><item><title>Re: Solaris software RAID</title><link>http://www.tech-recipes.com/rx/225/solaris-software-raid/#comment-2767156</link><description>&lt;p&gt;&amp;lt;ul id="quote"&amp;gt;&amp;lt;h6&amp;gt;Anonymous wrote:&amp;lt;/h6&amp;gt;on sol9:&lt;/p&gt;&lt;p&gt;bash-2.05# metainit -f d0 d10&lt;br&gt;metainit: srv-e4500: d0: "d10": syntax error&lt;/p&gt;&lt;p&gt;ideas?&amp;lt;/ul&amp;gt;&lt;/p&gt;&lt;p&gt;from the metainit man page...&lt;/p&gt;&lt;p&gt;metainit d0 -r d10&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 22 Jun 2005 11:36:58 -0000</pubDate></item><item><title>Re: Solaris software RAID</title><link>http://www.tech-recipes.com/rx/225/solaris-software-raid/#comment-2767155</link><description>&lt;p&gt;on sol9:&lt;/p&gt;&lt;p&gt;bash-2.05# metainit -f d0 d10&lt;br&gt;metainit: srv-e4500: d0: "d10": syntax error&lt;/p&gt;&lt;p&gt;ideas?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 15 Apr 2005 03:50:00 -0000</pubDate></item><item><title>Re: Solaris software RAID</title><link>http://www.tech-recipes.com/rx/225/solaris-software-raid/#comment-2767154</link><description>&lt;p&gt;got me out of a hole.&lt;/p&gt;&lt;p&gt;Two comments&lt;br&gt;why do you not put the metadb across 2 physical disks?  Would that not be part of the ideal of mirroring?  Or do the -af -c 2 done twice actually give you a -af -c 4 ?&lt;/p&gt;&lt;p&gt;You say edit vfstab and turn on logging.  For a linux person on solaris I aint too sure about that.  Any clues?&lt;/p&gt;&lt;p&gt;I would appreciate 10 seconds on lockfs -fa  - why not just sync?&lt;/p&gt;&lt;p&gt;Again nice article -  it just works, thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jon malone</dc:creator><pubDate>Tue, 06 Jul 2004 20:59:52 -0000</pubDate></item><item><title>Re: Solaris software RAID</title><link>http://www.tech-recipes.com/rx/225/solaris-software-raid/#comment-2767153</link><description>&lt;p&gt;Great catch!  You are correct.  The recipe has been fixed.&lt;/p&gt;&lt;p&gt;Thank you for helping to make Tech-Recipes better!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">qmchenry</dc:creator><pubDate>Tue, 30 Mar 2004 14:58:39 -0000</pubDate></item><item><title>Re: Solaris software RAID</title><link>http://www.tech-recipes.com/rx/225/solaris-software-raid/#comment-2767152</link><description>&lt;p&gt;Shouldn't this:&lt;/p&gt;&lt;p&gt;metadb -af -c 2 /dev/dsk/c0t0d0s3 /dev/dsk/c0t0d0s4&lt;br&gt;metadb -af -c 2 /dev/dsk/c0t1d0s3 /dev/dsk/c0t0d0s4&lt;/p&gt;&lt;p&gt;Be this:&lt;/p&gt;&lt;p&gt;metadb -af -c 2 /dev/dsk/c0t0d0s3 /dev/dsk/c0t0d0s4&lt;br&gt;metadb -af -c 2 /dev/dsk/c0t1d0s3 /dev/dsk/c0t1d0s4&lt;/p&gt;&lt;p&gt;bubba AT &lt;a href="http://bubba.org" rel="nofollow noopener" target="_blank" title="bubba.org"&gt;bubba.org&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 30 Mar 2004 14:35:55 -0000</pubDate></item></channel></rss>