Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5592830
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类:

2005-11-28 10:27:35

1,isainfo -v:to check your component working on 32bit or 64bit
2,metaset -s diskset-name -a disk-name
# metaset -s red -a /dev/did/dsk/d13
3,metadb -a -c number -l length-of-replica -f ctds-of-slice:create the state database
4,metadb -i:check the status of the state database
5,metadb -d -f ctds-of-slice:delete the state database
6,metainit volume-name number-of-stripes components-per-strip component-names -i interlace
7,metattach volume-name component-names
8,create a one-way mirror:
# metainit volume-name -m submirror-name
to add the second submirror:
# metattach volume-name submirror-name
(generally it is not adviced to create the two-way mirror way, it's easy to cause the data's destroy)
# metainit d50 -m d51 d52
9,metadetach volume-name submirror-name
10,metaoffline mirror submirror
11,how to enable a slice in a submirror:
# metareplace -e mirror failed-slice
12,how to change RAID-1 volume option:
# metaparam [mirror option] mirror
# metaparam -r geometric d30
# metaparam d30
13,how to expand a RAID-1 volume:
# metattach submirror slice
14,how to replace a failed slice in a mirror:
# metareplace d6 c0t2d0s2 c0t2d2s2    *changed the old c0t2d0s2 to new c0t2d2s2
15,how to replace a submirror:
# metadetach -f mirror-name submirror
# metaclear -f submirror
16,how to create a soft partition:
# metainit [-s diskset] soft-partition -p [-e(the whole disk will be reformatted)] component size
17,how to expand a soft partition:
# metattach [-s diskset] soft-partition size
18,how to remove a soft partition:
# metaclear [-s diskset] component
# metaclear [-s diskset] -r soft-partition
# metaclear [-s diskset] -p component
19,how to create a RAID-5 volume:
# metainit volume-name -r component component component -i interlace-value
20,how to create a hot spare pool:
# metainit hot-spare-pool-name ctds-for-slice
# metainit hsp001 c2t2d0s2 c3t2d0s2
21,how to add additional slices to a hot spare pool:
# metahs -a hot-spare-pool-name slice-to-add
# metahs -a -all hot-spare-pool-name slice-to-add
22,how to associate a hot spare pool with a volume:
# metaparam -h hot-spare-pool component
# metaparam -h hsp100 d10
# metaparam -h hsp100 d11
# metastat d0
23,how to change the associated hot spare pool:
# metaparam -h hot-spare-pool-name RAID5-volume-or-submirror-name
# metastat d4
d4: RAID
State: Okay
Hot spare pool: hsp001
...
# metaparam -h hsp002 d4
# metastat d4
d4: RAID
State: Okay
Hot spare pool: hsp002
24,removing a volume's hot spare pool association:
# metastat d4
# metaparam -h none d4
# metastat d4
25,how to delete a hot spare from a hot spare pool:
# metahs -d hot-spare-pool-name current-hot-spare
26,how to create a disk set:
# metaset -s diskset-name -a -h -M hostname
# metaset -s blue -a -h host1
Set name = blue, Set number  = 1
Host            Owner
 host1
27,how to add disks to a disk set:
# metaset -s diskset-name -a disk-name
# metaset -s blue -a c1t6d0
# metaset
Set name = blue, Set number = 1
Host Owner
host1 Yes
Drive Dbase
c1t6d0 Yes
28,how to add another host to a disk set:
# metaset -s diskset-name -a -h hostname
# metaset -s blue -a -h host2
# metaset
Set name = blue, Set number = 1
Host Owner
host1 Yes
host2
Drive Dbase
c1t6d0 Yes
c2t6d0 Yes
29,how to create solaris volume manager components in a disk set:
# command -s disk-set
# metainit -s blue d11 1 1 c1t6d0s0
# metainit -s blue d12 1 1 c2t6d0s0
# metainit -s blue d10 -m d11
# metattach -s blue d10 d12
30,how to check the status of a disk set:
# metaset -s diskset-name
31,how to delete disks from a disk set:
# metaset -s diskset-name -d disk-name
32,how to delete a host or disk set:
# metaset -s diskset-name -d -h hostname
33,how to print a report on disk sets available for import:
# metaimport -r -v
# metaimport -r -v c1t2d0
34,how to import a disk set from one system to another system:
# metaimport -s diskset-name disk-name
# metaimport -s red c1t2d0
35,how to rename a volume:
# umount /home
# metarename d10 d100
# mount /home
36,how to expand a file system:
# growfs -M /mount-point /dev/md/rdsk/volume-name
37,three important files:
/etc/lvm/mddb.cf:the /etc/lvm/mddb.cf file records the locations of state database replicas
/etc/lvm/md.cf:the /etc/lvm/md.cf file contains automatically generated configuration information for the default disk set
/kernel/drv/md.conf:the md.conf configuration file is read by solaris volume manager at startup time. it contains the state database replica configuration information
38,how to create RAID-1 volumes using the metassist command:
# metassist create -s diskset-name -f -r redundancy -a device1,device2.. -S size -v verbosity
# metassist create -s myset -f -r 2 -S 10mb
# metassist create -s myset -f -r 2 -S 10mb -v 0
39,saving a command file using the metassist command:
# metassist create -s myset -f -r 2 -S 10mb -c > /tmp/metassist-shell-script.sh
40,executing a saved metassist command shell script:
# sh ./tmp/metassist-shell-script.sh
41,how to create a volume configuration file using the metassist command:
# metassist create -s diskset-name -f -r redundancy -a device1,cevice2... -S size -v verbosity [-d]
42,saving a volume configuration file using the metassist command:
# metassist create -s myset -f -r 2 -S 10mb -d > /tmp/metassist-volume-config.xml

阅读(3668) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~