New RAID5 (lvm)
2007-12-25 5:41:00
I want to create a new RAID5-Volume on 4 new disks.
The Server is running with Solaris9 and all rec. Patches.
The Boot disk is setup as a Mirror without a second disk.
bash-2.05# metastat -p
d60 -m d61 1
d61 1 1 c0t0d0s6
d30 -m d31 1
d31 1 1 c0t0d0s3
d10 -m d11 1
d11 1 1 c0t0d0s1
d0 -m d1 1
d1 1 1 c0t0d0s0
bash-2.05# metadb
flags first blk block count
a m p luo 16 8192 /dev/dsk/c0t0d0s7
a p luo 8208 8192 /dev/dsk/c0t0d0s7
a p luo 16400 8192 /dev/dsk/c0t0d0s7
bash-2.05# more /etc/lvm/mddb.cf
#metadevice database location file do not hand edit
#driver minor_t daddr_t device id checksum
dad 7 16 id1,dad at AST320414A=3EC1942E/h -2212
dad 7 8208 id1,dad at AST320414A=3EC1942E/h -10404
dad 7 16400 id1,dad at AST320414A=3EC1942E/h -18596
bash-2.05# more /kernel/drv/md.conf
#
#pragma ident "@(#)md.conf 2.1 00/07/07 SMI"
#
# Copyright (c) 1992-1999 by Sun Microsystems, Inc.
# All rights reserved.
#
name="md" parent="pseudo" nmd=128 md_nsets=4;
# Begin MDD database info (do not edit)
mddb_bootlist1="dad:7:16:id1,dad at AST320414A=3EC1942E/h
dad:7:8208:id1,dad at AST320
414A=3EC1942E/h dad:7:16400:id1,dad at AST320414A=3EC1942E/h;
# End MDD database info (do not edit)
bash-2.05# grep md /etc/vfstab
/dev/md/dsk/d30 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/md/dsk/d10 /dev/md/rdsk/d10 /var ufs 1 no -
/dev/md/dsk/d60 /dev/md/rdsk/d60 /export/home ufs 2 yes -
everything is fine
But now:
All new disks have a Layout like:
* /dev/rdsk/c3t0d0s2 partition map
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
2 5 01 0 241246208 241246207
6 0 00 69632 241176576 241246207
7 0 00 0 69632 69631
If I want to create additional database replicas
the first is o.k.
bash-2.05# metadb -a -c 1 /dev/dsk/c3t2d0s7
# metadb
flags first blk block count
a m p luo 16 8192 /dev/dsk/c0t0d0s7
a p luo 8208 8192 /dev/dsk/c0t0d0s7
a p luo 16400 8192 /dev/dsk/c0t0d0s7
a u 16 8192 /dev/dsk/c3t2d0s7
but the second failed:
bash-2.05# metadb -a -c 1 /dev/dsk/c3t3d0s7
metadb: sun1: c3t3d0s7: overlaps with device in metadevice state database
or if I want to create the RAID-Volume:
bash-2.05# metainit d101 -r /dev/dsk/c3t0d0s6 /dev/dsk/c3t2d0s6
/dev/dsk/c3t3d0s6 /dev/dsk/c3t4d0s6
metainit: sun1: c3t2d0s6: overlaps with device in d101
But the disks are available, as single Volumes, without Problems!
Any hints?
TIA
Tobias
Comments
Got something to say?
You must be logged in to post a comment.

