[Sunhelp] Configuring Networking

Dennis L. Lund dllund at hermes.nextel.com
Mon May 1 16:43:31 CDT 2000


----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 22

If memory servers me, you need at lease three metadb's to begin with.
That is Create three replica state databases.

Example metadb:
/usr/opt/SUNWmd/sbin/metadb -a -f /dev/dsk/c2t3d0s3

I usually partition disks so that slice 3 is about 70MB (which is really
big for a replica).

Attached is a md.tab file I used some time ago.  It will show you how
metadevices are created.  At the top is a tipical disk partition that
I use for an 8.43GB (9.0) disk.

The correct file permissions on the md.tab file are 775.

Hope this helps.

Dennis L. Lund
Sun System Administrator
Nextel, Host Systems Technical Support
(678)291-3519  i(678)300-6071 p(888)640-8265
e-mail: dllund at hermes.nextel.com
----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: ODS-4.0
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 89

#
# Each disk in  the storage array (SSA) is a 9GB drive.  The are all partitioned
# as follows:
#
Current partition table (original):
Total disk cylinders available: 4924 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0 - 1168        2.00GB    (1169/0/0)  4197879
  1 unassigned    wm    1169 - 2337        2.00GB    (1169/0/0)  4197879
  2     backup    wu       0 - 4923        8.43GB    (4924/0/0) 17682084
  3 unassigned    wm    2338 - 2377       70.14MB    (40/0/0)     143640
  4 unassigned    wm    2378 - 3546        2.00GB    (1169/0/0)  4197879
  5 unassigned    wm    3547 - 4131        1.00GB    (585/0/0)   2100735
  6 unassigned    wm    4132 - 4716        1.00GB    (585/0/0)   2100735
  7 unassigned    wm    4717 - 4923      362.96MB    (207/0/0)    743337

#
# Creating the replica state database
# This command creates the base state database
#
/usr/opt/SUNWmd/sbin/metadb -a -f /dev/dsk/c2t3d0s3

#
# Add the following lines to the /etc/opt/SUNWmd/md.tab file
# These will be used to create replicas 1-3
#
mddb01 /dev/dsk/c2t3d1s3
mddb02 /dev/dsk/c2t4d0s3
mddb03 /dev/dsk/c2t4d1s3

#
# Then run the following command for each mddb in the md.tab file
#
/usr/opt/SUNWmd/sbin/metadb -a mddb0# (where # is the number of the replica)

#
# Create entries in the /etc/opt/SUNWmd/md.tab file.
# Current metadevices are setup as follows in /etc/opt/SUNWmd/md.tab:
#
d0 -m /dev/md/dsk/d10 # apps directories
d10 1 4 /dev/dsk/c2t3d0s0 /dev/dsk/c2t3d1s0 /dev/dsk/c2t4d0s0 /dev/dsk/c2t4d1s0 -i 32k
d20 1 4 /dev/dsk/c2t0d0s0 /dev/dsk/c2t0d1s0 /dev/dsk/c2t1d1s0 /dev/dsk/c2t1d1s0 -i 32k

d1 -m /dev/md/dsk/d11 # home directories
d11 1 2 /dev/dsk/c2t3d0s1 /dev/dsk/c2t3d1s1 -i 32k
d21 1 2 /dev/dsk/c2t0d0s1 /dev/dsk/c2t0d1s1 -i 32k

# slice 3 contains replica's

d4 -m /dev/md/dsk/d14 # proj directroy
d14 1 2 /dev/dsk/c2t3d0s4 /dev/dsk/c2t3d1s4 -i 32k
d24 1 2 /dev/dsk/c2t0d0s4 /dev/dsk/c2t0d1s4 -i 32k

d5 -m /dev/md/dsk/d15 # data directory
d15 1 2 /dev/dsk/c2t3d0s5 /dev/dsk/c2t3d1s5 -i 32k
d25 1 2 /dev/dsk/c2t0d0s5 /dev/dsk/c2t0d1s5 -i 32k

# slice 6 logging and replica's

d7 -m /dev/md/dsk/d27 # share direcroty
d27 1 1 /dev/dsk/c2d3d1s7
d17 1 1 /dev/dsk/c2t0d1s7
#
d8 -m /dev/md/dsk/d18 # home1 directory
d18 1 2 /dev/dsk/c2t1d0s1 /dev/dsk/c2t1d1s1 -i 32k
d28 1 2 /dev/dsk/c2t2d0s1 /dev/dsk/c2t2d1s1
#
d9 -m /dev/md/dsk/d19 # home2 directory
d19 1 2 /dev/dsk/c2t1d0s4 /dev/dsk/c2t1d1s4
d29 1 2 /dev/dsk/c2t4d0s4 /dev/dsk/c2t4d1s4
#
d30 -m /dev/md/dsk/d46 # lmc-R41 directory
d46 1 1 /dev/dsk/c2t3d0s6
d56 1 1 /dev/dsk/c2t3d1s6
#
# To Add metadevices place an entry in md.tab and then perform metainit on
# the metadevice as follows:
#
/usr/opt/SUNWmd/sbin/metainit d##		(first metadevice)
/usr/opt/SUNWmd/sbin/metainit d# -m d##		(creates first half of mirror)
/usr/opt/SUNWmd/sbin/metainit d##		(second metadevice)
/usr/opt/SUNWmd/sbin/metattach d# d##		(attaches second half of mirror)

###############################################################################

/dev/dsk/c2t4d0s1  is being used for the BackEx db and log files.
	This device is automount at /export/BackEx and is a
	2GB partition.





More information about the SunHELP mailing list