Solstice Disksuite
Location of components
----------------------command line utilities in /usr/opt/SUNWmd/sbin driver modules in /kernel/drv and /kernel/misc daemons in /usr/opt/SUNWmd/sbin administrative files in /etc/opt/SUNWmd
metadevices are named /dev/md//dn, with n from 0 to 127 by default
the packages are SUNWmd and SUNWmdg (the GUI)
Solstice Disksuite
Location of components
----------------------command line utilities in /usr/opt/SUNWmd/sbin driver modules in /kernel/drv and /kernel/misc daemons in /usr/opt/SUNWmd/sbin administrative files in /etc/opt/SUNWmd
metadevices are named /dev/md//dn, with n from 0 to 127 by default
the packages are SUNWmd and SUNWmdg (the GUI)
Useful options
--------------The -f option can be used with most commands to force the operation. This is needed when doing an operation on a mounted filesystem.
md.tab file
-----------The /etc/opt/SUNWmd/md.tab file can be used to configure ODS automatically.
# metastat -p > This will output your configuration in md.tab format
# metainit -a
This command reads the md.tab file and sets up the configuration accordingly
Creating replicas
-----------------
# metadb -a -f c0t3d0s7
Before you can use Disksuite software, you must create the metadevice state database. The replica can exist on a dedicated disk partition or within a concat, stripe, or logging metadevice.
There MUST be 3 replicas or Disksuite S/W cannot be used correctly.
Se Documentation for more info on replicas.
it modifies /etc/system, /etc/opt/SUNWmd/mddb.cf
you can also modify the md.tab file to create a configuration
Concatenation
-------------
# metainit d1 3 1 c0t1d0s2 1 c1t1d0s2 1 c2t1d0s2
where d1 is the metadevice, 3 is the number of components to concatenate and 1 is the number of components per device
Simple Stripe
-------------
# metainit d2 1 3 c0t1d0s2 c1t1d0s2 c2t1d0s2 -i 16k
where d2 is the metadevice, 1 is the number of components to concatenate and 3 is the number of slices to stripe across -i 16k indicates the amount of data to write to each disk in stripe before moving to next one
Concat/Stripe
-------------
# metainit d3 3 3 c0t1d0s2 c1t1d0s2 c2t1d0s2 -i 16k 3 c3t1d0s2 c4t1d0s2 c5t1d0s2 -i 16k 3 c6t1d0s2 c7t1d0s2 c8t1d0s2 -i 16k
Here there are three stripes concatenated together. d3 is the metadevice.
The first 3 is the number of components to concatenate.
The second and subsequent 3's indicate the number of slices to
stripe across. The options there are as in the simple stripe.
Extending a metadevice
----------------------
# metattach d1 c3t1d0s2
extends a metadevice by concatenating a slice to the end. It does not add a filesystem.
# growfs /dev/md/rdsk/d1
If the metadevice is not mounted, the above command extends the filesystem to include the added section. You cannot shrink this filesystem later.
# growfs -M /export/home /dev/md/rdsk/d1
If the metadevice is mounted, the above command will extend the filesystem to include the concatenated section. Again, you cannot shrink the filesystem later.
Removing a metadevice
---------------------
# metaclear d3
d3 is the metadevice.
# metaclear -a -f
clears all metadevices. Don't do this unless you want to blow away your entire configuration.
The devices cannot be open for use.., i.e. mounted
Viewing your configuration and status
-------------------------------------
# metastat
shows the configuration and status of all metadevices
# metastat d3
will tell the configuration and status of just metadevice d3
# metadb
tells the location and status of locally configured replicas
Hot Spare pools
---------------
# metainit hsp001
sets up a pool called hsp001. It contains no disks yet.
# metahs -a hsp001 c0t1d0s4
adds a slice to the hot spare pool.
NOTE: it is advisable to add disks/slices to the pool in order of smallest to largest.
This way the smallest hotspare capable of replacing a disk will kick in.
# metahs -s all c1t1d0s4
adds a slice to all pools
# metaparam -h hsp001 d1
makes a hot spare pool available to the metadevice d1 {submirror or RAID5}
# metahs -e c1t1d0s4
reenables a a hot spare that was previously unavailable
# metahs -r hsp001 c1t1d0s4 c2t1d0s4
replaces the first disk listed with the second
# metahs -d all c1t1d0s4
removes a disk from all hot spare pools
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




