Re: How do I create a concat using Metadb?
- From: dpatterson1976@xxxxxxxxx
- Date: 11 Oct 2006 19:05:07 -0700
Sorry.... Didnt know that my documentation had gotten that long....
Here is a shortened version.
Once the disk have been formatted you will need to setup the
metadevices
# metainit -a -f -c 2 c3t0d0s4 c3t4d0s4
# metadb
flags first blk block count
a u 16 1034
/dev/dsk/c3t4d0s4
a u 1050 1034
/dev/dsk/c3t4d0s4
a u 16 1034
/dev/dsk/c3t0d0s4
a u 1050 1034
/dev/dsk/c3t0d0s4
Next you need to create the logical volume by executing the following
command. The 2 represents the number of slices that you are adding.
In my case I am using 2 then adding additional space later using the
metattach command.
# metainit -f d8 2 1 c3t0d0s0 1 c3t2d0s0
d0: Concat/Stripe is setup
# metastat
d8: Concat/Stripe
Size: 83522880 blocks
Stripe 0:
Device Start Block Dbase
c3t4d0s0 0 No
Stripe 1:
Device Start Block Dbase
c3t0d0s0 1008 No
Once the Concatenation is setup you will need to modify the /etc/vfstab
file
# vi /etc/vfstab
/dev/dsk/c3t4d0s0 /dev/rdsk/c3t4d0s0 /u01 ufs - yes
-
TO
/dev/md/dsk/d8 /dev/md/rdsk/d8 /u01 ufs - yes -
# df -k /u01
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c3t4d0s0 41098241 9 40892416 1% /u01
# umount /u01
# mount /u01
# df -k /u01
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d8 30839956 9 30634131 1% /u01
Now you can grow the filesystem to include both of the volumes you
previously setup
# growfs -M /u01 /dev/md/rdsk/d8
# df -k /u01
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d8 30839956 9 30634131 1% /u01
kaka.hui@xxxxxxxxx wrote:
I would like to use metadb and metainit to concat the disk 2, 3, 4 from
below. Could someone please point to the correct approach? Thanks!
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@1c,600000/scsi@2/sd@1,0
2. c2t10d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/pci@1c,600000/scsi@2,1/sd@a,0
3. c2t11d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/pci@1c,600000/scsi@2,1/sd@b,0
4. c2t12d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/pci@1c,600000/scsi@2,1/sd@c,0
.
- References:
- How do I create a concat using Metadb?
- From: kaka.hui@xxxxxxxxx
- How do I create a concat using Metadb?
- Prev by Date: Re: How do I create a concat using Metadb?
- Next by Date: L25 Sun Library
- Previous by thread: Re: How do I create a concat using Metadb?
- Next by thread: L25 Sun Library
- Index(es):
Relevant Pages
|