12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

System Configuration—DisksRAID-GEOM FrameworkGEOM is an abstraction framework in FreeBSD that provides the infrastructurerequired to perform transformation on disk I/O operations. Major RAID controlutilities in FreeBSD use this framework for configuration.This section does not provide in-depth information about RAID and GEOM, but onlydiscusses RAID configuration and manipulation using GEOM.Currently GEOM supports RAID0 (Striped Set without parity) and RAID1 (MirroredSet without parity) through geom(8) facility.RAID0—StripingStriping disks is a method to combine multiple physical hard disks into one biglogical volume. This is done mostly using relevant hardware RAID controllers, whileGEOM provides software support for RAID0 stripe sets.RAID0 offers improved disk I/O performance, by splitting data into multiple blocksand performing simultaneous disk writes on multiple physical disks, but offers nofault tolerance for hard disk errors. Any disk failure could destroy the array, which ismore likely to happen when you have many disks in your set.Appropriate kernel module should be loaded before creating a RAID0 volume usingthe following command:# kldload geom_stripeThis can also be done through the /boot/loader.conf file, to automatically load themodule during system boot up, by adding this line:geom_stripe_load="YES"Normally, you will not need to load any GEOM module manually. GEOM related utilitiesautomatically detect all modules that are required to be loaded, and will load it manually.The gstripe(8) utility has everything you need to control your RAID0 volume.Using this utility you can create, remove, and query the status of your RAID0 volume.There are two different methods to create a RAID0 volume using gstripe—manualand automatic. In the manual method, the create parameter is used, and volumescreated using this method do not persist during reboots. The volumes should becreated at boot time, if persistence is required:# gstripe create stripe1 /dev/da1 /dev/da2# newfs /dev/stripe/stripe1[ 24 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!