Page 14
Introduction to Disk Mirroring | CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems |
How CMS implements disk mirroring | 8 |
| |
Mirror layout on a Sun On a Sun Enterprise 3500 platform, the mirror layout must always be
Enterprise 3500 | based upon the bays in which the disks are installed. Submirrors 11, 15, |
computer | | and 19 are the disks in the lower bay (targets 0 through 3 on controller 0); |
| | | | | submirrors 12,16, and 20 are the disks in the upper bay (targets 4 |
| | | | | through 7 on controller 1). The table below shows the mirror layout. |
| | | | | | | | | | | | |
| | | | mirror d13 | | mirror d21 | | mirror d17 | |
| | | | | | swap partition | |
| | | | / (root) filesystem | | /cms filesystem | | |
| | | | | | (CMS r3v8) | |
| | | | | | | | | | |
| | | | | | | | | | | | |
| | No. | submirror | submirror | | submirror | submirror | | submirror | submirror | |
| | Disks | d11 | d12 | | d19 | d20 | | d15 | d16 | |
| | | | | | | | | | | | |
| | | | | | | | | | | | |
| | 2 | | c0t0d0s0 | c1t4d0s0 | | c0t0d0s3 | c1t4d0s3 | | c0t0d0s4 | c1t4d0s4 | |
| | | | | | | | | | | | |
| | 4 | | c0t0d0s0 | c1t4d0s0 | | c0t0d0s3 | c1t4d0s3 | | c0t0d0s4 | c1t4d0s4 | |
| | | | c0t1d0s1 | c1t5d0s1 | | |
| | | | | | | | | | |
| | | | | | | | | | | | |
| | | | | | | c0t0d0s3 | c1t4d0s3 | | | | |
| | 6 | | c0t0d0s0 | c1t4d0s0 | | c0t1d0s1 | c1t5d0s1 | | c0t0d0s4 | c1t4d0s4 | |
| | | | | | | c0t2d0s1 | c1t6d0s1 | | | | |
| | | | | | | | | | | | |
| | | | | | | c0t0d0s3 | c1t4d0s3 | | | | |
| | 8 | | c0t0d0s0 | c1t4d0s0 | | c0t1d0s1 | c1t5d0s1 | | c0t0d0s4 | c1t4d0s4 | |
| | | | c0t2d0s1 | c1t6d0s1 | | |
| | | | | | | | | | |
| | | | | | | c0t3d0s1 | c1t7d0s1 | | | | |
| | | | | | | | | | | | |
| | | | | | | | | | | | |
Required hardware In order for your CMS system to be mirrored, it must have the following hardware installed in addition to the hardware already installed:
●For a Sun Enterprise 3500 system, two GigaByte Interface Converter (GBIC) modules. One will be installed into the UA slot on the FC-AL Interface board, and the other will be installed into GBIC Port 1 on the Sbus I/O board (see the illustration on page 15).
●For a Sun Enterprise 3500 system, a fiber cable to connect the UA port GBIC to GBIC Port 1 on the I/O board.
●Twice the number of disk drives needed for an unmirrored system. All the disks must be the same size.
Contents
CentreVu Call Management System
Comments
Table of Contents
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Index
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems Iii
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Backed up just as often as unmirrored systems
Disk mirroring defined
Metadevices
Concatenated
Mirrors
State databases
Solstice DiskSuite
D21 D20
How CMS implements disk mirroring
D19
D15
D11
D13 D12
D17 D16
Root filesystem Cms filesystem
Mirror layouts
Mirror d13 Mirror d21 Mirror d17
Submirror Disks
Enterprise
Required software
Additional references
How CMS implements disk mirroring
How to upgrade an Enterprise platform to disk mirroring
Disk drive slots
Increasing system capacity
Identify mirror devices
Device Names
Submirror d15 Submirror d16
# ls -l /dev/dsk/c1t6d0s0
System
Do this step only if you have an Enterprise 3500 system
How to upgrade an Enterprise platform to disk mirroring
Do this step only if you have an Enterprise 3000 system
Ok boot -r
# ls -l /dev/dsk/c2t6d0s0
Enter format partition
Flag
3500
Disk Part
Starting
# metadb -a -c3 -f /dev/rdsk/device
Enter partition q
# export PATH=$PATH/usr/opt/SUNWmd/sbin/olds
# metadb
Dx y 1 device
# metainit -f d13 D13 Concat/stripe is set up
Set up the mirrors for the root file system
# metainit -f d11 D11 Concat/stripe is set up
# metainit -f d12 D12 Concat/stripe is set up
# /usr/sbin/shutdown -i6 -g0 -y
Password password
# metaroot d13
# metainit d17 D17 Concat/stripe is set up
Set up the mirrors for the swap space
# metainit -f d15 D15 Concat/stripe is set up
# metainit d16 D16 Concat/stripe is set up
# swap -a /dev/md/dsk/d17
Set up the /cms mirror
Verify disk space
Disk Space Verification
Create an alternate boot device
# ls -l /dev/rdsk/newbootdev
# /usr/sbin/shutdown -y -i0 -g0
Ok nvalias bootdevice2 device
Ok boot bootdevice2
Sbus@3,0/SUNW,fas@3,8800000/sd@2,0
Factory installation procedures for disk mirroring
Install the hardware
Install the application software
3500 Disk Part
Check the disk.type file
# stty erase Ctrl-H # ksh -o
# olds -mirrored -mkfiles
Run the setup scripts
Ok boot -r Hostname console login root Password password
14376992 14446400
14171072 14205776
14309888
14550512
Disk Space Verification
Install the CMS software
Enter the following command ok devalias
# chmod +x /olds/chkDisks
Factory installation procedures for disk mirroring
Using the alternate boot device
Ok setenv boot-device disk # eeprom boot-device=disk
Activating chkDisks Verifying chkDisks
Canceling chkDisks
Maintaining the chkDisks crontab
# crontab -l
Print the vfstab file
Doing a Cmsadm backup on a mirrored system
Run the backup
# lp /etc/vfstab
Label and store the tapes
Restoring from a Cmsadm Backup
# cpio -icmudv -C 10240 -I device
Restoring from a Cmsadm Backup
# umount /cms
Repairing or rebuilding the /cms file system
Repairing /cms
If you did not alter the vfstab file, do the following
Rebuilding /cms
If you altered the vfstab file earlier , do the following
# metadetach d21 d20 D21 submirror d20 is detached
# metainit d19 D19 Concat/Stripe is set up
# metainit d21 mirror is set up
# metaclear d20 D20 Concat/Stripe is cleared
14724032 14793440
# newfs Dev/md/rdsk/d21
14585216 14654624
Restoring a mirrored system from a Cmsadm backup
Power off the system
Select Language
Ok boot cdrom
Task Action Result
Confirm Information
Identify the system
Continue
Click Continue
Set the Name Service options
255.255.255.0 is
Geographic Region
Installation Initial
Set the date and time
Region
Allocate Client
Installation screen is
Services? screen is
Select Languages
Select the hard disks
GB Disk
Slice Name
Click Continue Mount Remote File
Click Begin Installation Reboot/No Reboot
Click Reboot
Complete the OS installation
# /olds/olds -cleanup
Reestablish the disk mirrors
# olds -mirrored -checkdisk Success, checking md.tab.new
# PATH=$PATH/usr/opt/SUNWmd/sbin/olds # export Path
# olds mirrored -mkfiles Success, creating md.tab.new
Hostname login root Password root password
Restoring specific files from a Cmsadm backup
Adding new disks to a standard mirrored system
# /usr/opt/SUNWmd/sbin/metastat
# olds -mirrored -mkfiles c0t10d0 c0t11d0
# olds -mirrored -setup newdisk1 newdisk2
Adding new disks to a nonstandard mirrored system
# df -k /cms
# metattach d19 newdisk1 # metattach d20 newdisk2
# metattach d19 c0t10d0s1 # metattach d20 c0t11d0s1
# growfs -M /cms /dev/md/rdsk/d21
# metastat
# ls -l /dev/dsk/c Lrwxrwxrwx 1 root Root
Replacing a faulty disk
Identify the faulty disk
Dbase State Hot Spare C0t2d0s1 Okay Stripe Device
Identify the submirrors
Size 14960160 blocks Stripe Device
Dbase State Hot Spare C0t4d0s3 Okay
Detach the submirrors
Metadetach metamirror submirror
Remove state database replicas boot disks only
Replace the faulty disk drive
Recreate the state database replicas
# metainit d20
Reboot the system boot disks only
You may delay this step until a more convenient time
# metattach d21 d20
# metadb -d -f /dev/dsk/c0t0d0s1
Setting up replicas Replacing replicas
State Database Replicas
# metadb -d -c4 -f /dev/dsk/c0t0d0s1
FC-AL E
Partitioning disks with the format command
Enter # format
Enter partition q
How to tell whether your mirrored system is standard
Root Metadevice Device Names
Valid vfstab file for a non mirrored R3V8 CMS system
Examples of valid system files
Valid vfstab files
Valid vstab file for an R3V8 CMS system with mirrored disks
Valid md.tab file for a 4 disk mirrored R3V8 CMS system
Valid md.tab files
Valid md.tab file for a 3 disk non mirrored R3V8 CMS system
Enter mount /cms Remounts /cms
Excessively long resync
Unmount /cms umount /cms
System fails to recognize all disk drives
If you receive a This command may hang the system
Enter setenv auto-boot? false
Toshiba XMS5701TASUN12XCD099704/09/97
Ok setenv auto-boot? true
Ok boot -r Console login root Password
Fixing needs maintenance messages
C0t0d0s0 Okay
Ok setenv boot-device bootdevice2
Boot problems
Primary boot device is not available
Excessive reboot time
Touch /etc/notrouter
# ls /olds/chkDisks
Log files
File Name Description
# /olds/chkDisks
Message Explanation Response
Error messages
Error Messages Explanation Response
# metareplace -e d13 c0t0d0s0
Device devicename will not be used
Device devicename cannot be setup or does Not exist
Disk diskname already setup, exiting
Message Explanation
Message Response
Metadb hostname cxtyd0sz has a Metadevice database replica
No disks found! Internal error
Command not found
Metadetach systemname d21 resync Progress
Message
Error Messages Response
Disk is not recognized by cms
DiskSuite Software must be installed To run this script
File filename could not be restored
/cms filesystem needs to be mounted
Touch /cms/db/unixstart cannot create
Enter reset-all
Unbalanced configurations not supported
Usage olds -mirrored -checkdisks
Configuration, configure manually
You must be root in order to run this command
Symbols
Index
Needs maintenance messages
How Are We Doing?