DiskSuite mirror swap & create more replicas

From: Ellen Davis (ellen.davis@uc.edu)
Date: Thu Jan 23 2003 - 11:12:18 EST


I have a SunFire 280R running Solaris 8.

The system has 2 disk drives. They were both partitioned like this.

Part Tag Flag Cylinders Size Blocks
   0 root wm 104 - 14084 67.84GB (13981/0/0) 142270656
   1 swap wu 0 - 103 516.75MB (104/0/0) 1058304
   2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
   3 unassigned wm 0 0 (0/0/0) 0
   4 unassigned wm 0 0 (0/0/0) 0
   5 unassigned wm 0 0 (0/0/0) 0
   6 unassigned wm 0 0 (0/0/0) 0
   7 unassigned wm 14085 - 14086 9.94MB (2/0/0) 20352

The root slice has been mirrored using DiskSuite tools. One metadb replica
was setup on each of the slice 7 of the two drives.
# metastat d2
d2: Mirror
     Submirror 0: d0
       State: Okay
     Submirror 1: d1
       State: Okay
     Pass: 1
     Read option: roundrobin (default)
     Write option: parallel (default)
     Size: 142270656 blocks

d0: Submirror of d2
     State: Okay
     Size: 142270656 blocks
     Stripe 0:
         Device Start Block Dbase State Hot Spare
         c1t0d0s0 0 No Okay

d1: Submirror of d2
     State: Okay
     Size: 142270656 blocks
     Stripe 0:
         Device Start Block Dbase State Hot Spare
         c1t1d0s0 0 No Okay

# metadb -i
         flags first blk block count
      a m p luo 16 1034 /dev/dsk/c1t0d0s7
      a p luo 16 1034 /dev/dsk/c1t1d0s7

After reading through the DiskSuite manual on docs.sun.com and other online
sources, I am thinking that I need to do two things:
         1 - mirror swap
         2 - create more replicas

I am new to Solaris and DiskSuite, so I want to double check my thinking
with this group. Will these commands work?

MIRROR SWAP

Create sub-mirrors d3 and d4.
# metainit -f d3 1 1 c1t0d0s1
# metainit d4 1 1 c1t1d0s1

Create on-way mirror d5, specifying sub-mirror d3 as initial metadevice
# metainit d5 -m d3

Edit /etc/vfstab:
/dev/md/dsk/d5 - - swap - no -

Reboot:
# lockfs -fa
# init 6

Attach 2nd sub-mirror d4 to mirror d5
# metattach d5 d4 (copies data)
# metastat (displays progress)

I'm assuming these commands must be done is single-user mode.
Does it matter what numbers are assigned (d3,d4,d5 in example)? Is there
some convention to follow?

CREATE MORE REPLICAS
# metadb -d c1t0d0s7
# metadb -a -c3 c1t0d0s7
# metadb -d c1t1d0s7
# metadb -a c3 c1t1d0s7

Should I use -l 8192 on the metadb -a command to be prepared for Solaris 9
Volume Manager?

Any other suggestions as to how to setup this system are welcomed. Now is
the time to do things, when users are not yet on the system.

  Ellen Davis
  Ellen.Davis@uc.edu
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:39 EDT