SUMMARY: Configuring D1000 from command line

From: Chris Hoogendyk <>
Date: Mon Apr 14 2003 - 15:55:51 EDT

Thanks to:
    Eric Ray <>
    Darrn Dunham <>
    Sean Berry <>
    David Harrington <>
    John Tackman <>

As John said,  "It's actually quite simple once you 'get it' "

It was the sum of all five that gave me confidence and comfort, but I 
ended up following Eric's instructions that were taylored to my 

All the physical setup was done and working. So, I was just sitting in 
my terminal session back at my desk doing software stuff.

Eric had recommended labeling one disk with 20Mb for slice 7 (for 
metadbs, just in case), then the rest for slice 0.


    prtvtoc /dev/rdsk/c3t0d0s0 | fmthard -s - /dev/rdsk/c3t1d0s0 

and etc through all disks on the D1000 to obtain identical labels.

The off-the-shelf configuration appeared useable and similar, so I went 
with that. It had 80Mb for 0 and 1 with the remainder (about 33Gb) for 
slice 6. I used


to get a slightly more readable view for myself than the prtvtoc output. 
then I decided to go with that.

I used

    metastat d0

etc to get a view of what the existing setup was. the root disk was 
mirrored and there is an older external array that is raided. there were 
adequate replicas of the state database already. I'll straighten it out 
to be more optimal later.

I chose d20 for the mirror and d21 and d22 for the stripes that would 
make the mirror.


    metainit d21 1 6 c2t0d0s6 c2t1d0s6 c2t2d0s6 c2t3d0s6 c2t4d0s6 
c2t5d0s6 -i 32k

(I got the -i 32k from the link that Darren sent for a page in the 
Solstice DiskSuite User's Guide at   my application is for 
scanned image storage, so the larger size seemed better.)

    metainit d22 1 6 c3t0d0s6 c3t1d0s6 c3t2d0s6 c3t3d0s6 c3t4d0s6 
c3t5d0s6 -i 32k
    metainit d20 -m d21
    metattach d20 d22

which completed the DiskSuite process. then

    newfs /dev/md/rdsk/d20

which took a couple of hours. then

    cd /
    mkdir array2
    mount /dev/md/rdsk/d20 /array2

then vi /etc/vfstab
since I already had a line for an array1 that had been created using the 
graphical DiskSuite tool, I just did a yy and p to copy that line. then 
changed the 1's to 2's. so, it's like this:

/dev/md/dsk/d10 /dev/md/rdsk/d10        /array1 ufs     3       yes     -
/dev/md/dsk/d20 /dev/md/rdsk/d20        /array2 ufs     3       yes     -

Finally, since I'm dealing with windows users and samba, go into samba 
and set up a new mount point. Also adjust permissions for /array to give 
proper access for the group that bought it.


Thank you very much.


Chris Hoogendyk

   O__  ---- Network Specialist & Unix Systems Administrator
  c/ /'_ --- Library Information Systems & Technology Services
 (*) \(*) -- W.E.B. Du Bois Library
~~~~~~~~~~ - University of Massachusetts, Amherst 



-----Original Message-----
From: Chris Hoogendyk []
Sent: Sunday, April 13, 2003 18:15
To: Sun Managers
Subject: configuring D1000 from command line

I feel a bit foolish asking for help, but I'm under a very tight
deadline. I'm working on a system that I really should rebuild, but I
cannot take the time now, so I have to work with it as is. It is an E250
running Solaris 7. It was configured almost 5 years ago with inadequate
/var space, and some things have gotten broken. In particular, I can't
use the graphical disksuite tool, so I'm stuck back at the command line.

I installed a new dual channel differential ultra SCSI PCI card and
hooked it up to a new D1000 filled with twelve 36G drives. I put the
card in the top PCI slot which has a different PCI bus, so it should
give me the best throughput. I used both SCSI channels, hooking up the
D1000 as though it were two hosts each taking half of the D1000. Both
halves terminated.

I did a "boot -r".

If I look at /dev/rdsk now, I have six targets (0-5) on c2 each d0 with
s0 through s7. I also have six targets (0-5) on c3 each d0 with s0
through s7. Seems to have worked just fine.

I want to do raid 10. In other words create 6 mirrors, strip them, and
then mount all that as a single directory.

I already have a mirrored root disk, two other internal disks and a
6x18G external array done as a raid 5, all using the graphical disksuite
tool several years ago. There are probably several disksuite database
files distributed through those.

What I need is a real succinct step by step for command line configuration.

   format drives first? how to partition for this situation?

   metadb ...

   metattach several times

   metainit ...

   newfs ...

   mount ...

   configure so it will come up at reboot

I have found the disksuite documenation online at, but it
is a lot of reading and I have to have this running tomorrow morning. I
am going through it, and I will use it for backup and filling in.



Chris Hoogendyk

   O__  ---- Network Specialist & Unix Systems Administrator
  c/ /'_ --- Library Information Systems & Technology Services
 (*) \(*) -- W.E.B. Du Bois Library
~~~~~~~~~~ - University of Massachusetts, Amherst


sunmanagers mailing list
sunmanagers mailing list
Received on Mon Apr 14 15:59:37 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:09 EST