GEOM's RAID level support
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Oct 6 13:41:00 PDT 2005
On Thu, Oct 06, 2005 at 01:27:00PM -0700, Danny Howard wrote:
+> On Thu, Oct 06, 2005 at 10:16:16PM +0200, Pawel Jakub Dawidek wrote:
+> > On Thu, Oct 06, 2005 at 01:08:02PM -0700, Danny Howard wrote:
+>
+> > +> Has anyone a recipe for a RAID1,0 bootstrap? :)
+> >
+> > Forget it. Everything which splits the data across disks will not work.
+> > With software RAID you can operate on disks, slices, partitions, etc.
+> > no limits here. I'd suggest creating small RAID1 on top of small
+> > partitions for the root file system (or at least for /boot/ directory,
+> > which is minimum).
+>
+> Well, I have RAID1 systems ...
+>
+> It seems reasonable to conclude that one could set up / as a RAID1 on
+> the first pair of disks, and bootstrap far enough to include swap, /var,
+> and /usr from a RAID10 stretched across a full-disk set. It just sounds
+> somewhat tricky to set it all up, is all, so if someone has grokked out
+> a recipe ... :)
This is one of mine setups (5 SATA disks):
beast:root:~# df -h -t ufs
Filesystem Size Used Avail Capacity Mounted on
/dev/mirror/root 1.9G 228M 1.6G 13% /
/dev/raid3/usr 3.9G 1.9G 1.7G 53% /usr
/dev/raid3/data 570G 99G 425G 19% /usr/home
beast:root:~# graid3 status
Name Status Components
raid3/data COMPLETE ad0s1d
ad1s1d
ad2s1d
ad3s1d
ad4s1d
raid3/usr COMPLETE ad1s1a
ad3s1a
ad4s1a
beast:root:~# gmirror status
Name Status Components
mirror/root COMPLETE ad0s1a
ad2s1a
Next one (RAID1 on three components for root):
puppet:root:~# df -h -t ufs
Filesystem Size Used Avail Capacity Mounted on
/dev/mirror/root 989M 77M 833M 9% /
/dev/raid3/usr 3.9G 1.5G 2.0G 43% /usr
/dev/raid3/home 56G 1.6G 50G 3% /usr/home
puppet:root:~# gmirror status
Name Status Components
mirror/root COMPLETE da0s1a
da1s1a
da2s1a
puppet:root:~# graid3 status
Name Status Components
raid3/usr COMPLETE da0s1d
da1s1d
da2s1d
raid3/home COMPLETE da0s1e
da1s1e
da2s1e
But on most of my systems, I've simple RAID1 (this time on whole disks):
whiplash:root:~# df -h -t ufs
Filesystem Size Used Avail Capacity Mounted on
/dev/mirror/COREs1a 989M 53M 857M 6% /
/dev/mirror/COREs1d 15G 1.8G 12G 12% /usr
whiplash:root:~# gmirror status
Name Status Components
mirror/CORE COMPLETE da0
da1
My home machine is most interesting (RAID3 is configured on top of two
slices and one disk):
slayer:root:~# egrep '^ad[0-9]+' /var/run/dmesg.boot
ad0: 152627MB <WDC WD1600JB-00GVA0 08.02D08> at ata0-master UDMA100
ad1: 76319MB <Seagate ST380021A 3.19> at ata1-master UDMA100
ad2: 114473MB <Seagate ST3120026A 3.01> at ata2-master UDMA100
ad3: 152627MB <WDC WD1600JB-00GVA0 08.02D08> at ata3-master UDMA100
slayer:root:~# df -h -t ufs
Filesystem Size Used Avail Capacity Mounted on
/dev/mirror/COREa 1.9G 687M 1.1G 38% /
/dev/mirror/COREd 33G 23G 7.7G 75% /usr
/dev/raid3/STUFF 217G 214G 626M 100% /var/ftp
slayer:root:~# gmirror status
Name Status Components
mirror/CORE COMPLETE ad0s1
ad3s1
slayer:root:~# graid3 status
Name Status Components
raid3/STUFF COMPLETE ad0s2
ad2
ad3s2
Just use your imagination:)
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20051006/2c876393/attachment.bin
More information about the freebsd-geom
mailing list