DevOps

Thursday, 7 October 2010

LVM and Metadb Help

bash-3.00# cd /etc/lvm
bash-3.00# ls
devpath lock md.cf md.ctlrmap md.tab mddb.cf runtime.cf
bash-3.00# ls-l
bash: ls-l: command not found
bash-3.00# ls -l
total 16
-rw-r--r-- 1 root sys 146 Jan 22 2005 devpath
-rw-r--r-- 1 root sys 154 Jan 22 2005 lock
-rw-r--r-- 1 root sys 112 Sep 29 01:50 md.cf
-rw-r--r-- 1 root sys 643 Jan 22 2005 md.ctlrmap
-rw-r--r-- 1 root sys 1452 Jan 22 2005 md.tab
-rw-r--r-- 1 root sys 458 Oct 7 22:50 mddb.cf
-rw-r--r-- 1 root sys 418 Jan 22 2005 runtime.cf
bash-3.00# file *
devpath: ascii text
lock: ascii text
md.cf: ascii text
md.ctlrmap: c program text
md.tab: ascii text
mddb.cf: ascii text
runtime.cf: ascii text
bash-3.00# cat md.cf
# metadevice configuration file
# do not hand edit
d2 -m d0 d1 1
d0 2 1 c2t1d0s0 \
1 c2t1d0s1
d1 1 1 c2t2d0s0
bash-3.00# cat mddb.cf
#metadevice database location file do not hand edit
#driver minor_t daddr_t device id checksum
sd 135 16 id1,sd@n6000c29568abb20c33cca12b18605990/h -3235
sd 135 8208 id1,sd@n6000c29568abb20c33cca12b18605990/h -11427
sd 199 16 id1,sd@n6000c2930551ceee94598dc0624fcc83/h -3371
sd 199 8208 id1,sd@n6000c2930551ceee94598dc0624fcc83/h -11563
sd 263 16 id1,sd@n6000c29bf672ff7e35722fcb2d7c88c8/h -3542
sd 263 8208 id1,sd@n6000c29bf672ff7e35722fcb2d7c88c8/h -11734
bash-3.00# metadb --help
metadb: illegal option -- help
metadb: unknown command
usage: metadb [-s setname] -a [options] mddbnnn
metadb [-s setname] -a [options] device ...
metadb [-s setname] -d [options] mddbnnn
metadb [-s setname] -d [options] device ...
metadb [-s setname] -i
metadb -p [options] [ mddb.cf-file ]
options:
-c count number of replicas (for use with -a only)
-f force adding or deleting of replicas
-k filename alternate /etc/system file
-l length specify size of replica (for use with -a only

No comments:

Post a Comment