Re: How do I create a concat using Metadb?



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

.



Relevant Pages

  • Re: reinstall failes
    ... You're having some doubts about the condition of the disk media too? ... Microsoft does have a ... setup CD, the one with the hologram, says 2002 on the front. ... for all MVPs who may be listening: 1) what leads up to this Windows XP ...
    (microsoft.public.windowsxp.general)
  • Re: reinstall failes
    ... They come with an MSDN (Microsoft ... You're having some doubts about the condition of the disk media too? ... display the same ASMS error - as the OEM disk, ... setup CD, the one with the hologram, says 2002 on the front. ...
    (microsoft.public.windowsxp.general)
  • Re: reinstall failes
    ... but not, I think, for the fact that I get the ASMS error and you don't. ... The OEM disk I am using came with a Dell PC, not mine though, that was given ... "repair", also check Google. ... setup CD, the one with the hologram, says 2002 on the front. ...
    (microsoft.public.windowsxp.general)
  • Re: W2k boot failure after new RAM
    ... Setup CD or the Windows 2000 Setup floppy disks. ... Note If the registry is corrupted ... and fixmbr for limited disk repairs. ...
    (microsoft.public.win2000.hardware)
  • Re: Win2k Professional upgrade SP3 to SP4
    ... When I tried to boot from Win2k CD, Windows 2000 Setup screen came up and I ... "Setup did not find any hard disk drives installed in your computer. ... To start the Recovery Console, start the computer from the Windows 2000 ...
    (microsoft.public.win2000.general)