The document provides steps for setting up and configuring DISKSuit 4.0 on a new machine. It describes initially partitioning the disks with separate partitions for root, var, backup, swap, mirror, usr, home. It also provides an example initial /etc/vfstab file. It then describes steps to mirror the root (/), opt, and var partitions using DISKSuit, which involves adding configuration to the md.tab file, creating a meta database on dedicated partitions using metadb, and encapsulating the root partitions.
1. DISKSuit 4.0 setup and configuration ( plus maintenance )
Steps to setup on a new machine :
• Consider your root disk partition as
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 570 1001.20MB (571/0/0) 2050461
1 var wm 571 - 1141 1001.20MB (571/0/0) 2050461
2 backup wm 0 - 4923 8.43GB (4924/0/0) 17682084
3 swap wu 1142 - 1434 513.75MB (293/0/0) 1052163
4 mirror wm 1435 - 1492 101.70MB (58/0/0) 208278
5 unassigned wm 1493 - 2633 1.95GB (1141/0/0) 4097331
6 usr wm 2634 - 3774 1.95GB (1141/0/0) 4097331
7 home wm 3775 - 4915 1.95GB (1141/0/0) 4097331
• Also consider the initial /etc/vfstab file will be something like
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s3 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /usr ufs 1 no -
/dev/dsk/c0t0d0s1 /dev/rdsk/c0t0d0s1 /var ufs 1 no -
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /opt ufs 2 yes -
/dev/dsk/c0t2d0s2 /dev/rdsk/c0t2d0s2 /disk1 ufs 2 yes -
swap - /tmp tmpfs - yes -
Now if you decided to make your / , /opt and /var to be mirrored….using disk suite…then
follow the below steps…
Note : All disk suite config files are in /etc/opt/SUNWmd/ and all executable tools for
disk suites are in /usr/opt/SUNWmd/sbin
1. Add meta database configuration to md.tab table
mddb01 /dev/dsk/c0t0d0s4
mddb02 /dev/dsk/c0t1d0s4
2. Create meta database using the following command
#/sbin/umount /mirror
Note : /mirror is the partitions with 100 mb on c0t0d0s4, which will be use by the
DiskSuite for the meta device database.
#/usr/opt/SUNWmd/sbin/metadb –a –f –c 3 mddb01
#/usr/opt/SUNWmd/sbin/metadb –a –f –c 3 mddb02
3. Encapsulating the root partions ( add below lines in md.tab file )
/dev/md/dsk/d0 -m /dev/md/dsk/d10
/dev/md/dsk/d10 1 1 /dev/dsk/c0t0d0s0
/dev/md/dsk/d20 1 1 /dev/dsk/c0t1d0s0