cd /usr/opt/SUNWmd/sbin for i in * ; do \ ln -s /usr/opt/SUNWmd/sbin/$i /opt/bin/$i ; done
prtvtoc /dev/rdsk/c0t0d0 | fmthard -s - /dev/rdsk/c0t8d0
c0t0d0s# c0t8d0s#
----------------------------------- -------------
s0 0 - 86 / unassigned
s1 87 - 505 /usr "
s2 0 - 7505 (backup/overlap) backup
s3 506 - 766 /opt unassigned
s4 767 - 1114 /var "
s5 1115 - 1549 swap swap
s6 1550 - 7392 unassigned* unassigned*
s7 7393 - 7505 unassigned "
*Because the format command only recognizes reserved partition
names, our /app partition must be created as 'unassigned' and
added to /etc/vfstab manually (don't forget to create a mount
point for it). Don't mount slice 7 (don't add it to vfstab),
because we are saving it for Disksuite's use.
# metadb -a -f -c 2 c0t0d0s7 c0t8d0s7
# metainit -f d11 1 1 c0t0d0s0 # Create submirror of original root d11: Concat/Stripe is setup # metainit d12 1 1 c0t8d0s0 # Create submirror for copy d12: Concat/Stripe is setup # metainit d10 -m d11 # Create mirror d10: Mirror is setup # metaroot d10 # Create pseudo root on mirror # lockfs -fa # lock filesystem to allow safe reboot # reboot ... # metattach d10 d12 # Attach submirror copy to main mirror d10: submirror d12 is attached
# metainit -f d21 1 1 c0t0d0s1 # metainit d22 1 1 c0t8d0s1 # metainit d20 -m d21/opt:
# metainit -f d31 1 1 c0t0d0s3 # metainit d32 1 1 c0t8d0s3 # metainit d30 -m d31/var:
# metainit -f d41 1 1 c0t0d0s4 # metainit d42 1 1 c0t8d0s4 # metainit d40 -m d41/app (rename to reflect the dedicated purpose of this machine)
# metainit -f d51 1 1 c0t0d0s6 # metainit d52 1 1 c0t8d0s6 # metainit d50 -m d51
# metainit -f d61 1 1 c0t0d0s5 # metainit d62 1 1 c0t8d0s5 # metainit d60 -m d61
/dev/md/dsk/d20 /dev/md/rdsk/d20 /usr ufs 1 yes - /dev/md/dsk/d30 /dev/md/rdsk/d30 /opt ufs 2 yes - /dev/md/dsk/d40 /dev/md/rdsk/d40 /var ufs 1 no - /dev/md/dsk/d50 /dev/md/rdsk/d50 /weblogic ufs 2 yes - /dev/md/dsk/d60 - - swap - no -
# reboot ... # metattach d20 d22 # metattach d30 d32 # metattach d40 d42 # metattach d50 d52 # metattach d60 d62
Wait for them all to resync and you're done (about 40 minutes for the really big slice, less for the others. You can monitor its progress using the GUI "metatool" -- that's about all it's good for).
If a search engine dropped you directly into this document, you should go to the index page to find out what you're reading. This document is a record of a project from 1999-2000 -- it is not a current guide to installing any software product.