SUMMARY: Configuring D1000 from command line
2007-12-25 1:03:00
Thanks to:
Eric Ray <Eric.Ray at Sun.com>
Darrn Dunham <ddunham at taos.com>
Sean Berry <berry at housebsd.org>
David Harrington <david.harrington at dla.mil>
John Tackman <john.tackman at hex.fi>
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
circumstances.
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.
Use
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
format
partition
print
to get a slightly more readable view for myself than the prtvtoc output.
then I decided to go with that.
I used
metastat
metastat d0
metadb
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.
then
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 docs.sun.com. 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.
Done!!
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
<choogend at library.umass.edu>
---------------
-----Original Message-----
From: Chris Hoogendyk [mailto:choogend at library.umass.edu]
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 docs.sun.com, 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.
TIA
---------------
Chris Hoogendyk
--
O__ ---- Network Specialist & Unix Systems Administrator
c/ /'_ --- Library Information Systems & Technology Services
(*) \(*) -- W.E.B. Du Bois Library
~~~~~~~~~~ - University of Massachusetts, Amherst
<choogend at library.umass.edu>
---------------
_______________________________________________
codeprof mailing list
codeprof at codeprof.com
http://www.codeprof.com/execute/ask/?codeinfoid=22212
Comments
Got something to say?
You must be logged in to post a comment.

