®
CentreVu Call Management System
Release 3 Version 8
Disk-Mirrored Systems
585-210-940
Comcode 108502352
Issue 1
December, 1999
Download from Www.Somanuals.com. All Manuals Search And Download.
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
i
Required software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Additional references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9
9
Step 8: Install the CMS software. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 9: Create an alternate boot device. . . . . . . . . . . . . . . . . . . . . . . .
35
35
Download from Www.Somanuals.com. All Manuals Search And Download.
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
ii
Step 3: Label and store the tapes . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
Step 14: Reestablish the disk mirrors . . . . . . . . . . . . . . . . . . . . . . . . .
59
Restoring specific files from a CMSADM backup . . . . . . . . . . . . . . . . . . . . . . .
Adding new disks to a standard mirrored system . . . . . . . . . . . . . . . . . . . . . .
62
63
Setting up replicas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Replacing replicas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
75
75
Download from Www.Somanuals.com. All Manuals Search And Download.
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
iii
Partitioning disks with the format command . . . . . . . . . . . . . . . . . . . . . . . . .
76
Valid vfstab files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Valid md.tab files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
79
80
Excessively long resync . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
81
The system fails to recognize all disk drives . . . . . . . . . . . . . . . . . . . . . . . . .
82
Excessive reboot time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
86
Log files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Error messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
87
88
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
97
Download from Www.Somanuals.com. All Manuals Search And Download.
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
iv
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction to Disk Mirroring
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
1
Disk mirroring defined
1
Introduction to Disk Mirroring
1
This chapter introduces you to “disk mirroring,” an optional
feature of CentreVu Call Management System (CMS) that
provides you with a completely redundant set of data, helping
to ensure data security. To use disk mirroring, you must have a
*
*
Sun Enterprise 3000 or Sun Enterprise 3500 platform running
CMS r3v8.
Disk mirroring defined
1
*
“Mirrors” are a feature of the Solstice DiskSuite software package. They
allow you to build a hard disk system containing two—or even three—
complete sets of data. Having such data redundancy greatly reduces the
risk of data loss should a hard disk drive fail or your system crash. While
mirrors greatly reduce the risk of losing data, however, they are not
meant to be a substitute for regular backups. Mirrored systems must be
backed up just as often as unmirrored systems.
The Solstice DiskSuite software package allows multiple disk partitions to
be logically combined to create a single large partition. Using the Solstice
DiskSuite package allows CMS databases to span multiple disks, and so
grow quite large.
Metadevices
1
Solstice DiskSuite uses virtual disks to manage physical disks and their
associated data. In Solstice DiskSuite, a virtual disk is called a
metadevice. To a software application, a metadevice is identical to a
physical disk drive. Solstice DiskSuite handles all I/O requests directed at
a metadevice, converting them into I/O requests for the underlying disks.
Solstice DiskSuite metadevices are built from slices (disk partitions). A
system controlled by Solstice DiskSuite may contain any number of
metadevices, each of which may comprise any combination of disk
partitions.
Once a metadevice has been set up, the underlying disk partitions
can be accessed only through the metadevice.
*Sun, Enterprise, and Solstice DiskSuite are trademarks or registered trademarks of Sun Microsystems, Inc.
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction to Disk Mirroring
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
2
Disk mirroring defined
The illustration below shows a simple, two-slice metadevice.
Physical Disks A & B
Metadevice d0
c0t0d0s2
c0t0d0s2
c1t0d0s2
c1t0d0s2
A metadevice can be configured as any one of three basic types: striped,
concatenated, or concatenated stripes. The type used by CMS systems
is the concatenated metadevice. In a concatenated metadevice, data
blocks, or chunks, are written sequentially across the slices, beginning
with the first disk.
Concatenated
metadevices
1
Consider, for example, a concatenated metadevice with three slices (see
the illustration below.) In that scenario, disk A can be envisioned as
containing logical chunks 1 through 4, disk B as containing logical
chunks 5 through 8, and disk C as containing chunks 9 through 12.
Physical Disk A
Chunk 1
Chunk 2
Chunk 3
Metadevice d1
Chunk 4
Physical Disk B
Chunk 1
Chunk 5
Chunk 2
Chunk 6
. . .
. . .
. . .
Solstice DiskSuite
Chunk 7
Chunk 8
Physical Disk C
Chunk 12
Chunk 9
Chunk 10
Chunk 11
Chunk 12
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction to Disk Mirroring
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
3
Disk mirroring defined
The total capacity of this concatenated metadevice is the combined
capacities of the three drives. If each drive is 4 gigabytes, for example,
the metadevice has an overall capacity of 12 gigabytes.
The Solstice DiskSuite software tracks which disk partitions belong to
which metadevices with a state database. A state database stores
information on disk about the state of your Solstice DiskSuite
configuration.
State databases
1
The state database consists of multiple copies of the basic database. The
copies, referred to as state database replicas, ensure that the data in
the database is always valid. Having multiple copies protects against
data loss from single points-of-failure. The state database tracks the
location and status of all state database replicas. Solstice DiskSuite
cannot operate until you have created the state database and its replicas:
the software must have an operating state database.
A mirror is a metadevice that can copy data from one metadevice to
another. The metadevices containing the data are called submirrors.
The process of copying the data between submirrors is called mirroring.
Mirrors
1
Mirroring provides redundant copies of data. To a software application, a
mirror looks just like a physical disk. The mirror accepts I/O requests and
converts them into I/O requests for the submirrors. The submirrors in
turn—being metadevices themselves—convert I/O requests from the
mirror into I/O requests for the underlying physical disks.
A mirror can be two-way or three-way. A two-way mirror is a mirror with
two submirrors; a three-way mirror has three submirrors. CMS supports
only two-way mirrors. The illustration below shows a typical two-way
mirror, d21, consisting of the submirrors d19 and d20.
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction to Disk Mirroring
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
4
Disk mirroring defined
Metadevice d19
Chunk 1
Chunk 2
Chunk 3
Chunk 4
Metadevice d21
Chunk 1
Chunk 2
Chunk 3
Chunk 4
Solstice DiskSuite
Chunk 1
Chunk 2
Chunk 3
Chunk 4
Metadevice d20
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction to Disk Mirroring
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
5
How CMS implements disk mirroring
How CMS implements disk mirroring
1
A nonmirrored, CMS system with Solstice DiskSuite uses it to create a
single metadevice, named d19, containing all the disk partitions used to
store CMS data. For example:
/cms
. . .
d19
c0t1d0s1
c0t0d0s3
(disk n)
To implement disk mirroring, a metadevice d20 is created as a duplicate
of d19, and the two metadevices are configured as submirrors of d21, as
shown in the following example:
/cms
. . .
d19
d20
c0t2d0s1
c0t0d0s3
(disk n)
d21
. . .
c0t1d0s3
c0t3d0s1
(disk n)
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction to Disk Mirroring
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
6
How CMS implements disk mirroring
In a CMS computer system with /cms mirrored, root is also mirrored. The
root mirror is d13; its submirrors are d11 and d12. For example:
/ (root)
d11
c0t0d0s0
d13
d12
c0t1d0s0
If your computer system is running CMS r3v8, your swap partition is also
mirrored. The swap mirror is d17; its submirrors are d15 and d16. For
example:
swap
d15
c0t0d0s4
d17
d16
c1t4d0s4
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction to Disk Mirroring
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
7
How CMS implements disk mirroring
Mirror layouts on a factory-installed mirrored system differ depending
upon the platform. When a system is upgraded to mirroring in the field,
mirror layouts are essentially unpredictable, and depend on how many
disk drives are already installed, and what their target numbers are.
Mirror layouts
1
On a Sun Enterprise 3000 platform with factory-installed mirroring, the
mirror layout is the simple odd/even arrangement shown in the table
below. A system upgraded to mirroring in the field probably has a
different mirror layout.
Mirror layout on a Sun
Enterprise 3000
computer
1
mirror d17
(swap partition)
(CMS r3v8)
mirror d13
(/ (root) filesystem)
mirror d21
(/cms filesystem)
No.
Disks
submirror
d11
submirror
d12
submirror
d19
submirror
d20
submirror
submirror
d15
d16
2
4
c0t0d0s0
c0t0d0s0
c0t1d0s0
c0t1d0s0
c0t0d0s3
c0t1d0s3
c0t0d0s4
c0t1d0s4
c0t0d0s3
c0t2d0s1
c0t1d0s3
c0t3d0s1
c0t0d0s4
c0t0d0s4
c0t1d0s4
c0t1d0s4
6
8
c0t0d0s3
c0t2d0s1
c0t10d0s1
c0t1d0s3
c0t3d0s1
c0t11d0s1
c0t0d0s0
c0t0d0s0
c0t1d0s0
c0t1d0s0
c0t0d0s3
c0t2d0s1
c0t10d0s1
c0t12d0s1
c0t1d0s3
c0t3d0s1
c0t11d0s1
c0t13d0s1
c0t0d0s4
c0t0d0s4
c0t1d0s4
c0t1d0s4
10
c0t0d0s3
c0t2d0s1
c0t10d0s1
c0t12d0s1
c0t14d0s1
c0t1d0s3
c0t3d0s1
c0t11d0s1
c0t13d0s1
c0t15d0s1
c0t0d0s0
c0t1d0s0
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction to Disk Mirroring
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
8
How CMS implements disk mirroring
On a Sun Enterprise 3500 platform, the mirror layout must always be
based upon the bays in which the disks are installed. Submirrors 11, 15,
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 layout on a Sun
Enterprise 3500
computer
1
mirror d17
swap partition
(CMS r3v8)
mirror d13
/ (root) filesystem
mirror d21
/cms filesystem
No.
Disks
submirror
d11
submirror
d12
submirror
d19
submirror
d20
submirror
submirror
d16
d15
2
4
c0t0d0s0
c0t0d0s0
c1t4d0s0
c1t4d0s0
c0t0d0s3
c1t4d0s3
c0t0d0s4
c1t4d0s4
c1t4d0s4
c0t0d0s3
c0t1d0s1
c1t4d0s3
c1t5d0s1
c0t0d0s4
c0t0d0s4
c0t0d0s3
c0t1d0s1
c0t2d0s1
c1t4d0s3
c1t5d0s1
c1t6d0s1
6
8
c0t0d0s0
c0t0d0s0
c1t4d0s0
c1t4d0s0
c1t4d0s4
c1t4d0s4
c0t0d0s3
c0t1d0s1
c0t2d0s1
c0t3d0s1
c1t4d0s3
c1t5d0s1
c1t6d0s1
c1t7d0s1
c0t0d0s4
In order for your CMS system to be mirrored, it must have the following
hardware installed in addition to the hardware already installed:
Required hardware
1
●
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction to Disk Mirroring
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
9
How CMS implements disk mirroring
In order for your CMS system to be mirrored, it must be running the
following software:
Required software
1
CMS R3V8
Solaris 7 dated 3/99
Solstice DiskSuite 4.2
any CMS r3v8 load
For a list of other software required for your system, see the Lucent
Technologies Software Installation manual for your version of CMS.
*
Sun Microsystems documentation related to Solstice DiskSuite and disk
Additional
references
maintenance and configuration includes:
1
Solstice DiskSuite 4.2 Administration Guide
Solstice DiskSuite Tool 4.2 User‘s Guide
*Sun Microsystems is a registered trademark of Sun Microsystems, Inc.
Download from Www.Somanuals.com. All Manuals Search And Download.
Introduction to Disk Mirroring
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
10
How CMS implements disk mirroring
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
How to upgrade an Enterprise platform to disk mirroring
11
2
Installing Mirrored Systems
2
This chapter contains procedures for upgrading existing
computer systems to use disk mirroring and for installing a
mirrored system under factory conditions.
How to upgrade an Enterprise platform to disk mirroring
2
This section tells how to upgrade CentreVu Call Management System
(CMS) on a Sun Enterprise 3000 or 3500 computer from a nonmirrored
system to a mirrored system.
Before you begin, you must understand the drive slot arrangement in
your system.
Disk drive slots
2
In an Enterprise 3000 computer, there are 10 slots, allowing up to five
disks for each mirror. Each slot is labeled with a number 0 through 3 or 10
through 15; there are no slots numbered 4 through 9. All the drive slots
are on controller 0.
In an Enterprise 3500 computer, there are eight disk drive slots, four in
each of two bays. The slots in the lower bay are labeled 0 through 3 and
are on controller 0; the slots in the upper bay are numbered 4 through 7
and are on controller 1. In a mirrored system, slots 0 through 3 are
reserved for the original disks, and slots 4 through 7 are reserved for the
mirror disks.
The slot number is the drive’s target number, which becomes part of the
device name. A drive in slot 1, for example, has the device name c0t1d0.
The drive in slot 0 is always the primary boot disk.
In an Enterprise 3000 mirrored system, mirror disks are normally installed
in target number order, beginning with the first empty slot. That makes it
difficult to predict the mirror layout on an upgraded system. In an
Enterprise 3500 mirrored system, however, mirror disks always go in the
upper bay. If you are mirroring a two-disk system, for example, the two
original disks would already be installed in slots 0 and 1 in the lower bay,
and you would install the two new disks in slots 4 and 5 in the upper bay.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
12
How to upgrade an Enterprise platform to disk mirroring
If you intend to increase your system capacity as well as mirror your
system, first install the new disks needed to increase capacity. For
Increasing system
capacity
2
instructions, see the documentation that came with the new drives or the
appropriate Lucent Technologies installation documents. After the system
capacity has been increased, and it has been verified that the system
works correctly, you may then install disk mirroring. You must make
certain the basic system works before you try to mirror the disks.
1. Check the number of new disks to be installed as the mirror.
Step 1: Identify
mirror devices
2
There should be as many new disks to be installed as there are old
disks already on your system. That keeps the same system capacity
and makes the two submirrors the same size.
2. Next you must identify the device names for your mirrored system
and record them in the Device/Metadevice Names table on the next
page.
If you have an Enterprise 3500 system, the device names have
already been identified and recorded for you in the Enterprise 3500
table. Here’s how you identify the device names for an
Enterprise 3000 system:
a. Identify the secondary boot disk and record the device
names.
Find the first empty slot in your system. Whatever slot you find
will hold the secondary boot disk. Then record the following
device names for that disk:
●
Record the slice 0 device name as submirror 12.
●
Record the slice 3 device name as disk 1 of submirror 20.
●
If your system is running load r3v6aj.c or later of CMS—
you can find out by executing a pkginfo -x cms
command—record the slice 4 device as submirror 16.
Example: If the first empty drive slot in your system were
slot 2, you would record the following values in the table:
Submirror d12
Device Name
Submirror d20
Device Names
. . .
boot disk (2): c0t2d0s0
CMS disk 1: c0t2d0s3
Submirror d16 Device
(r3v6aj.c or later)
swap
c0t2d0s4
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
13
How to upgrade an Enterprise platform to disk mirroring
b. Record existing nonboot disks under submirror 19, and empty
slots for new nonboot disks under submirror 20.
Example: Imagine a system that already has two disk drives in
slots 0 and 1. In the previous step, you would have reserved
slot 2 for the second boot disk. The remaining new disk is a
nonboot disk and will be installed in slot 3. So you would record
the following values in the table:
Submirror d19
Device Names
Submirror d20
Device Names
CMS disk 1:
c0t0d0s3
CMS disk 1: c0t2d0s3
CMS disk 2:
CMS disk 3:
CMS disk 4:
CMS disk 5:
CMS disk 2:
CMS disk 3:
CMS Disk 4:
CMS disk 5:
c0t1d0s1
c0t3d0s1
Device/Metadevice Names for an Enterprise 3000 system
Submirror d11
Device Name
Submirror d12
Device Name
Submirror d19
Device Names
Submiror d20
Device Names
boot disk 1:
c0t0d0s0
boot disk 2:
s0
CMS disk 1:
c0t0d0s3
CMS disk 1:
s3
s1
s1
s1
s1
CMS disk 2:
CMS disk 3:
CMS disk 4:
s1 CMS disk 2:
s1 CMS disk 3:
s1 CMS Disk 4:
s1 CMS disk 5:
Submirror d15
Device Name
(r3v6aj.c and later)
Submirror d16
Device Name
(r3v6aj.c and later)
swap, disk 1:
c0t0d0s4
swap, disk 2
s4 CMS disk 5:
Device/Metadevice Names for an Enterprise 3500 system
Submirror d11
Device Name
Submirror d12
Device Name
Submirror d19
Device Names
Submiror d20
Device Names
boot disk 1:
boot disk 2:
CMS disk 1:
CMS disk 1:
c0t0d0s0
c1t4d0s0
c0t0d0s3
c0t1d0s1
c0t2d0s1
c0t3d0s1
c1t4d0s3
CMS disk 2:
CMS disk 3:
CMS disk 4:
CMS disk 3:
CMS Disk 4:
CMS disk 5:
c1t5d0s1
c1t6d0s1
c1t7d0s1
Submirror d15
Device Name
(r3v6aj.c and later)
Submirror d16
Device Name
(r3v6aj.c and later)
swap, disk 1:
swap, disk 2
c0t0d0s4
c1t4d0s4
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
How to upgrade an Enterprise platform to disk mirroring
14
Do this step only if you have an Enterprise 3500 system.
Step 2: Install the
mirror disks on an
Enterprise 3500
system
It is likely that your Enterprise 3500 system is currently using controller 1
(c1) for the internal CD-ROM drive. This step associates the CD-ROM
drive with controller 2 (c 2) so controller 1 will be free for the new disk
drives. In this step you also install some additional hardware for
controlling the new disks, and install the new disks themselves. You
should be logged in as root before beginning this step.
2
1. Enter the following command:
______________________________________________________
# ls -l /dev/dsk/c1t6d0s0
______________________________________________________
The system should respond with a line similar to the following:
______________________________________________________
lrwxrwxrwx 1 roor roor 50 Nov 16 08:58
/dev/dsk/c1t6d0s0 -> ../../devices/sbus@3,0
/SUNW,fas@3,8800000/sd@6,0:a
______________________________________________________
Notice that c1t6d0s0 is pointing to sd@6,0:a. That indicates that
controller 1 is being used by the CD-ROM drive. Remove that
association by entering the following commands:
______________________________________________________
# rm /dev/dsk/c1*
# rm /dev/rdsk/c1*
# touch /reconfigure
# /usr/sbin/shutdown -y -g0 -i0
______________________________________________________
2. Install new hardware components as follows:
●
Install a GigaByte Interface Converter (GBIC) into slot UA on
the Interface board.
●
Install another GBIC into port 1 on the SBus I/O board.
●
Install a fiber cable between the two newly installed GBICs.
The illustration below shows where the GBICs are installed. For
more detailed information, see CentreVu CMS Sun Enterprise 3500
System (connectivity diagram) (585-215-877), which was packed
with your system.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
15
How to upgrade an Enterprise platform to disk mirroring
3. Install the new disk drives in the upper drive bay. The illustration
below shows where to install the new drives.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
16
How to upgrade an Enterprise platform to disk mirroring
4. From the okprompt, do a reconfigure boot by entering the following
command:
______________________________________________________
ok boot -r
______________________________________________________
5. Log in as root.
6. Enter the following command:
______________________________________________________
# ls -l /dev/dsk/c2t6d0s0
______________________________________________________
The system should respond with a line similar to the following:
______________________________________________________
lrwxrwxrwx 1 roor roor 50 Nov 16 08:58
/dev/dsk/c2t6d0s0 -> ../../devices/sbus@3,0
/SUNW,fas@3,8800000/sd@6,0:a
______________________________________________________
Notice that c2t6d0s0 is pointing to sd@6,0:a, indicating that the CD-
ROM drive is now on controller 2.
Do this step only if you have an Enterprise 3000 system.
Step 3: Install the
mirror disks on an
Enterprise 3000
system
Install the new disk drives, which will form the mirror, into the empty slots
reserved in step 1. Follow the procedure in the “Add a Disk Drive”
subsection in the Lucent Technologies hardware installation or hardware
maintenance manual for your version of CMS. DO NOT PARTITION THE
DISKS JUST YET; that happens next.
2
Partition the newly installed disks using the formatcommand. If you
have an Enterprise 3500, make certain that the new drives are named
using “c1,” as c1t4d0 or c1t5d0.
Step 4: Partition the
mirror disks
2
The procedure is as follows:
1. Enter: # format
A menu of disks displays. You are asked to select one.
2. Enter the menu number of the new disk to be partitioned.
The format>prompt displays.
3. Enter: format> partition
The partition> prompt displays.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
17
How to upgrade an Enterprise platform to disk mirroring
4. Enter: partition> print
The partition table displays and the partition>prompt returns.
Compare the display to the Partitioning table below to see whether
you need to re-partition the disk. You probably will need to re-
partition.
5. Enter the number of the partition to be reconfigured.
The system begins a series of prompts for partitioning information.
Answer according to the CMS version and disk type you are
partitioning (see the Partitioning table below).
Repeat this task for each partition on the disk.
Partitioning (Note: Never change the default size of the overlap slice!)
CMS R3V8
CMS R3V8
4.2-GB Disk
9.1-GB Disk SCSI
(E3000) and FC-AL
(E 3500)
Disk
Type
Size Starting
(cyl.) Cylinder (cyl.)
Size
Starting
Cylinder
Part
Tag
Flag
Boot
0
boot disk 1: / or root
wm
1023
0
616
0
boot disk 2: unassigned
1
2
unassigned
overlap or backup
unassigned
swap
wm
wm
wm
wm
wm
wm
wm
wm
wm
7
3880
1879
971
0
1023
7
4924
3716
585
0
616
0
0
623
4339
0
3
1030
4
2109
5-7
0
unassigned
unassigned
unassigned
overlap or backup
unassigned
0
0
2
0
0
Nonboot
2
2
0
1
3878
3880
0
4922
4924
0
2
2
0
3-7
0
6. Enter: partition> print
The partition table displays and the partition>prompt returns.
Compare the display to the Partitioning table to make certain you
have repartitioned the disk properly. If not, repeat step 5.
7. Enter: partition> label
The system responds Ready to label disk, continue?
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
How to upgrade an Enterprise platform to disk mirroring
18
8. Enter: y
The partition>prompt returns.
9. Enter: partition> q
The format>prompt returns.
10. To select the next disk to be partitioned, enter: format> disk
and return to item 2.
If you have finished partitioning all the new disks, enter: format> q
and continue with the next step.
1. Alter your path by entering the following commands:
Step 5: Create the
state database
replicas
# export PATH=$PATH:/usr/opt/SUNWmd/sbin:/olds
2
2. Create two state database replicas on slice 1 of boot disk 2:
# metadb -a -c3 -f /dev/rdsk/<device>
(where <device>is the target number of boot disk 2)
3. Verify that the replicas were created by entering the following
command:
# metadb -i
The system lists the state database replicas currently on the system.
The following sample output shows two replicas on c0t2:
flags
first blk block count
a
u
16
1034
1034
/dev/dsk/c0t2d0s1
/dev/dsk/c0t2d0s1
a pc luo 16
Make sure the list includes the two replicas you just created.
1. Make copies of essential system files by entering these commands:
Step 6: Create the
md.tab table entries
2
# cp /etc/opt/SUNWmd/md.tab /etc/opt/SUNWmd/md.tab.orig
# cp /etc/vfstab /etc/vfstab.orig
# cp /etc/system /etc/system.orig
2. Edit /etc/opt/SUNWmd/md.tab and insert entries for the root and
/cms metadevices. If your system is running CMS load r3v6aj.c or
later, you must also create a section for the swap metadevice.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
19
How to upgrade an Enterprise platform to disk mirroring
The root metadevice definitions go into the #metaroot section,
which you must create for the occasion; d20 goes into the #/cms
section, which already exists in the file. The swap metadevice
definitions go into the #swap section which, like #metaroot, must
be created for the occasion.
The lines you add must be in the following general format:
d<x> <y> 1 <device>
d<x> is the metadevice name.
1 <device> indicates one disk with the device name <device>. You
should have recorded the device names on page 13.
The pattern 1 (space) <device> repeats until all disks in the
metadevice have been named. The d12 entry must specify one disk;
the d20 entry must specify the same number of disks as the existing
d19 entry. If your system has two disks in slots 0 and 1 and you are
adding a two-disk mirror in slots 2 and 3, for example, you would
add the md.tab lines shown in boldface in the following sample:
-------- /etc/opt/SUNWmd/md.tab - EXAMPLE ONLY --------------
.
.
.
#metaroot
d11 1 1 c0t0d0s0
d12 1 1 c0t2d0s0
d13 -m d11
#/cms
d19 2 1 /dev/rdsk/c0t0d0s3 1 /dev/rdsk/c0t1d0s1
d20 2 1 /dev/rdsk/c0t2d0s3 1 /dev/rdsk/c0t3d0s1
d21 -m d19
#metaswap
(for load r3v6aj.c or later)
d15 1 1 c0t0d0s4
d16 1 1 c0t2d0s4
d17 -m d15
-------------------------------------------------------------
3. Save the /etc/opt/SUNWmd/md.tab file and quit the editor.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
20
How to upgrade an Enterprise platform to disk mirroring
Set up the mirrors for the root file system with the following steps:
Step 7: Set up the
mirrors for the root
file system
1. Activate metadevice d11:
2
# metainit -f d11
d11: Concat/stripe is set up
#
2. Activate metadevice d13:
# metainit -f d13
d13: Concat/stripe is set up
#
3. Activate metadevice d12:
# metainit -f d12
d12: Concat/stripe is set up
#
4. Attach d12 to d13:
# metattach d13 d12
d13: submirror d12 is attached
#
5. Verify that root is set up and resynching:
# metastat d13
d13: Mirror
Submirror 0: d11
State: Okay
Submirror 1: d12
State: Resyncing
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 2209680 blocks
.
.
.
Check the State:lines in the output list. They should read either
Okayor Resyncing. If they do, then everything is fine. If they
indicate any other status, something has gone wrong with the setup:
discontinue the upgrade and telephone the Lucent National
Customer Care Center (1.800.242.2121) or contact your Lucent
representative or distributor.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
21
How to upgrade an Enterprise platform to disk mirroring
6. Set up d13 as the root mirror:
# metaroot d13
#
7. Reboot the system and log in as the root user:
# /usr/sbin/shutdown -i6 -g0 -y
. . .
<hostname> login: root
Password: <password>
#
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
22
How to upgrade an Enterprise platform to disk mirroring
Set up the mirrors for the swap space with the following steps:
Step 8: Set up the
mirrors for the
swap space
1. Activate metadevice d15:
2
# metainit -f d15
d15: Concat/stripe is set up
#
2. Activate metadevice d17:
# metainit d17
d17: Concat/stripe is set up
#
3. Activate metadevice d16:
# metainit d16
d16: Concat/stripe is set up
#
4. Attach d16 to d17:
# metattach d17 d16
d17: submirror d16 is attached
#
5. Verify that swap is set up and resynching:
# metastat d17
d17: Mirror
Submirror 0: d15
State: Okay
Submirror 1: d16
State: Resyncing
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 2209680 blocks
.
.
.
Check the State:lines in the output list. They should read either
Okayor Resyncing. If they do, then everything is fine. If they
indicate any other status, something has gone wrong with the setup:
discontinue the upgrade and telephone the Lucent National
Customer Care Center (1.800.242.2121) or contact your Lucent
representative or distributor.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
23
How to upgrade an Enterprise platform to disk mirroring
6. Edit /etc/vfstab. The relevant portion of the file looks like this:
----------------- /etc/vfstab ----------------
. . .
/dev/dsk/c0t0d0s4 - swap - no -
/dev/dsk/c0t2d0s4 - swap - no -
--------------------------------------------------
Do the following steps to modify the file:
a. Copy the c0t0d0s4 entry and insert the copy on the succeeding
line.
b. Comment out the original entry by inserting a pound sign at the
beginning of the line.
c. Alter the copy by:
1. replacing c0t0d0s4 with d17
2. adding md/ after the dev/
d. Immediately after the line just added should be a line naming
the secondary boot disk. Comment out that line by inserting a
pound sign at the beginning of the line.
When you have finished a through d, the relevant lines of the
file might look something like this:
----------------- /etc/vfstab ----------------
. . .
#/dev/dsk/c0t0d0s4 - swap - no -
/dev/md/dsk/d17
- swap - no -
#/dev/dsk/c0t2d0s4 - swap - no -
----------------------------------------------
e. Save the file and quit the editor.
7. Set up the swap space by entering the following command:
# swap -a /dev/md/dsk/d17
#
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
24
How to upgrade an Enterprise platform to disk mirroring
1. Edit /etc/vfstab. Copy the d19 entry to the succeeding line. Then
comment out the original and change “d19” to “d21”. For example:
Step 9: Set up the
/cms mirror
2
---------------- /etc/vfstab - EXAMPLE ONLY -----------------
. . .
#/dev/md/dsk/d19 /dev/md/rdsk/d19 /cms ufs 2 yes -
/dev/md/dsk/d21 /dev/md/rdsk/d21 /cms ufs 2 yes
-------------------------------------------------------------
2. Save the /etc/vfstab file and exit the editor.
3. Alter your path:
# export PATH=$PATH:/usr/opt/SUNWmd/sbin:/olds
4. Activate the new metadevice (d20):
# metainit d20
d20: Concat/stripe is set up
#
5. Verify that d20 is active:
# metastat d20
d20:Concat/Stripe
Size:14398560blocks
Stripe0:
Device
c0t1d0s3
Stripe1:
Device
Start Block Dbase State Hot Spare
No Okay
0
Start Block Dbase State Hot Spare
No Okay
c0t3d0s1
0
#
6. Initialize the newly created mirror (d21):
# metainit -f d21
d21: Concat/stripe is set up
#
7. Attach the new metadevice (d20) to the newly created mirror (d21):
# metattach d21 d20
d21: submirror d20 is attached
#
8. Reboot the system by entering the following command:
# /usr/sbin/shutdown -y -i6 -g0
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
25
How to upgrade an Enterprise platform to disk mirroring
1. Display available disk space by entering a df -kcommand. The
system responds with a file system table. For example:
Step 10: Verify disk
space
2
Filesystem
kbytes used
avail capacity Mounted on
/dev/md/dsk/d13 1039555 355366
580239
38%
0%
0%
1%
3%
/
/proc
fd
0
0
0
0
0
0
/proc
/dev/fd
/tmp
/cms
swap
1305272
344 1304928
/dev/md/dsk/d21 31956788 849300 31107488
The figures on the /dev/md/dsk/d21 line are critical. You will use
*
them to determine whether Solstice DiskSuite is administering all
your disks.
2. Complete the table below by filling in (1a) and (1b) as instructed.
Disk Space Verification
Total No.
of Disks
/cms size in MB /cms size in MB
(4-GB disks)
(9-GB disks)
Calculations:
2
4
6
3104
6208
(1a) Enter /cms
line’s ‘kbytes’ figure
divided by 1000
(move decimal
7137
14274
11170
22340
three places left):
(1a)
(1b)
8
15203
19236
30406
10
(1b) Enter “/cms
Size” (above left)
corresponding to
the number of hard
disks and disk size:
3. Compare the figures in (1a) and (1b) of the table. They should be
approximately equal. The two will not correspond exactly, but they
should be within about 10% of the /cms size figure. A major
discrepancy between the disk space you should have and the space
recognized by your Solstice DiskSuite software usually indicates a
connectivity problem. You can check connectivity by checking the
output of a metastatcommand to see that all the disks are
recognized. For example:
*Solstice DiskSuite is a trademark of Sun Microsystems, Inc.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
How to upgrade an Enterprise platform to disk mirroring
26
# metastat
. . .
d21: Mirror
Submirror 0: d19
State: Okay
Submirror 1: d20
State: Okay
. . .
d19: Submirror of d21
State: Okay
Size: 14398560 blocks
Stripe 0:
Device
Start Block Dbase State
No Okay
Hot Spare
c0t0d0s3
0
Stripe 1:
Device
c0t2d0s1
Start Block Dbase State
No Okay
Hot Spare
0
d20: Submirror of d21
State: Okay
Size: 14398560 blocks
Stripe 0:
Device Start Block Dbase State
Hot Spare
c0t1d0s3
Stripe 1:
Device Start Block Dbase State
c0t3d0s1
0
No
No
Okay
Hot Spare
0
Okay
If the stripes of d19 and d20 do not account for all the disk drives on your
system, check your disk drive connections. If discrepancies persist,
telephone the Lucent National Customer Care Center at 1.800.242.2121,
or contact your Lucent representative or distributor.
Set up an alternate boot device by doing the following procedure:
1. Enter the following command:
Step 11: Create an
alternate boot
device
2
# ls -l /dev/rdsk/<newbootdev>
where newbootdev is the device name of the disk chosen as boot
disk 2 (recorded as the d12 metadevice on page 13).
If your boot disk 2 were c0t2d0s0, for example, the system would
respond with something like this:
lrwxrwxrwx 1 root root 83 Jun 18 15:23 /dev/rdsk/c0t2d0s0 ->
../../devices/sbus@3,0/SUNW,fas@3,8800000 /sd@2,0:a,raw
2. Record the part of the line immediately following /devicesand
preceding :a.For the example above, you would record the part of
the line beginning /sbus@3,0 and ending sd@2,0.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
27
How to upgrade an Enterprise platform to disk mirroring
3. Reboot the system with the following command:
# /usr/sbin/shutdown -y -i0 -g0
The system displays the ok prompt.
4. Create a device alias for the new boot device by entering the
following command (for example):
ok nvalias bootdevice2 <device>
Replace <device> with what you recorded in item 2. For the
example shown, you would replace <device> with the following:
/sbus@3,0/SUNW,fas@3,8800000/sd@2,0
5. Test the alternate boot device name by entering the following
command:
ok boot bootdevice2
6. Reboot the system as usual and verify that everything is normal.
Ignore any warnings you may get about a “forceload” failing.
7. Enter the following command:
# crontab -e
The system starts the editor and loads the cronfile.
8. Find the line for /olds/chkDisks and take one of the following actions:
If the line is commented out, uncomment it by deleting the pound
sign at the beginning of the line.
If there is no line for /olds/chkDisks, add the following line to
the end of the file:
15 0 * * * /olds/chkDisks > /dev/null 2>&1
9. Save the file and exit the editor.
10. Enter the following command:
# chmod +x /olds/chkDisks
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Factory installation procedures for disk mirroring
28
Factory installation procedures for disk mirroring
2
This section describes how a mirrored system is installed on a new Sun
Enterprise 3xxx computer in the factory. You may use these instructions
in the field to bring an existing system up to factory specifications.
Install hardware components as required. For details and instructions,
see the appropriate Lucent hardware installation document and the Sun
Microsystems documents shipped with your machine.
Step 1: Install the
hardware
2
Install the Solaris operating system. Partitioning the disks will be part of
that process.
Step 2: Install the
operating system
2
To install the Solaris operating system, follow the instructions in the
CentreVu CMS R3V8 Software Installation and Setup (585-210-941)
document, with the following exception:
●
Use the Disks and Partitioning tables below to determine disk
partitioning details. Disks shows which disks are boot disks and
which are not; Partitioning shows partitioning details.
Disks
Enterprise 3000 Enterprise 3500
Disk
Device Names
Device Names
boot disk 1
boot disk 2
other disks
c0t0d0
c0t0d0
c1t4d0
a
c0t1d0
c0t2d0
c0t3d0
c0t1d0
c0t2d0
c0t3d0
c1t5d0
c1t6d0
c1d7d0
c0t10d0
c0t11d0
c0t12d0
c0t13d0
c0t14d0
c0t15d0
aTrue for factory-installed disk mirroring. Unlikely to be true
for systems upgraded to disk mirroring in the field.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Factory installation procedures for disk mirroring
29
.
Partitioning (Note: Never change the default size of the overlap slice!)
CMS R3V8
9.1-GB Disk SCSI
(E3000) and FC-AL
(E 3500)
CMS R3V8
4.2-GB Disk
Disk
Type
Size Starting
(cyl.) Cylinder (cyl.)
Size
Starting
Cylinder
Part
Tag
Flag
Boot
0
boot disk 1: / or root
wm
1023
0
616
0
boot disk 2: unassigned
1
2
unassigned
overlap or backup
unassigned
swap
wm
wm
wm
wm
wm
wm
wm
wm
wm
7
3880
1879
971
0
1023
7
4924
3716
585
0
616
0
0
623
4339
0
3
1030
4
2109
5-7
0
unassigned
unassigned
unassigned
overlap or backup
unassigned
0
0
2
0
0
Nonboot
2
2
0
1
3878
3880
0
4922
4924
0
2
2
0
3-7
0
Install application software as instructed in the CentreVu CMS R3V8
Software Installation and Setup (585-210-941) document. That will mean
installing the following packages in order:
Step 3: Install the
application
software
2
●
Common Desktop Environment (CDE)
SunLink HSI/S drivers (if using HSI/S ports)
*
●
●
●
●
●
●
●
●
●
NTS drivers (if using NTS ports)
X.25 (if using X.25 switch links)
†
INFORMIX SQL (optional)
INFORMIX SE
INFORMIX ESQL
INFORMIX ILS
Solstice DiskSuite
Sun Solaris patches
*SunLink is a trademark of Sun Microsystems, Inc.
†INFORMIX is a registered trademark of Informix Software, Inc.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Factory installation procedures for disk mirroring
30
The oldscommands, which you will be using to configure the Solstice
Step 4: Check the
disk.type file
DiskSuite software, obtain information about your disk configuration from
the /olds/disk.type file. If your boot disks are not as specified in the Disks
table in Step 2, check the disk.type file to verify that it names the proper
boot disks for your system.
2
The relevant portion of the disk.type file looks like this:
#arch config
bootdsk1 disk2
scsi control
#Enterprise 3000
sun4u notmirrored c0t0d0
sun4u mirrored c0t0d0
c0t1d0
c0t1d0
dontcare
controllers=0
The bootdisk1 column designates the first boot disk; the disk2 column
designates the second boot disk in a mirrored configuration. In order for
the olds commands to work, the disks.type file must match your physical
configuration: you must have disks in the locations specified in the file.
1. Set the environment to the Korn Shell by entering these commands:
Step 5: Set up the
disk subsystem for
Solstice DiskSuite
# stty erase <Ctrl-H>
# ksh -o vi
2
(where <ctrl-H> indicates you should press and hold the Control key
as you press the H key).
The stty command sets up your backspace key as an actual
backspace. If you do not enter this command, you will have to use
the Delete key as a backspace.
2. Make sure the CMS CD is loaded in the CD-ROM drive.
3. Copy the Solstice DiskSuite setup scripts from the CD to the boot
disk by entering the following commands:
# mkdir /olds
# cp /cdrom/cdrom0/cms/reloc/rdonly/olds_install/* /olds
# cd /olds
# chmod +x /olds/olds
4. Alter your path:
# export PATH=$PATH:/usr/opt/SUNWmd/sbin:/olds
#
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
31
Factory installation procedures for disk mirroring
5. Check the disks:
# olds -mirrored -check_disks
number of external scsi controllers with disks
is = 0
number of disks is = 4
. . .
disk:c0t0d0ispartitionedok
disk:c0t1d0ispartitionedok
disk:c0t2d0ispartitionedok
disk:c0t3d0ispartitionedok
Success,checkingdisksformirroring.
#
6. Create system files for the Solstice DiskSuite software:
# olds -mirrored -mk_files
#
7. Make sure all the disk drives on your system have been recognized.
To do that, read the file /olds/md.tab.new into an editor and locate
the #/cms section. It should reflect the precise number of disk drives
on your system. The following example shows a total of four disk
drives on the system, two in d19 and two in d20:
.
.
.
#metaroot
d11 1 1 c0t0d0s0
d12 1 1 c0t2d0s0
d13 -m d11
#/cms
d19 2 1 /dev/rdsk/c0t0d0s3 1 /dev/rdsk/c0t1d0s1
d20 2 1 /dev/rdsk/c0t2d0s3 1 /dev/rdsk/c0t3d0s1
d21 -m d19
#metaswap
d15 1 1 c0t0d0s4
d16 1 1 c0t2d0s4
d17 -m d15
If there is a discrepancy between what the system should have
recognized and what it did recognize, complete the procedure in
“The system fails to recognize all disk drives” on page 82, and then
return to item 5.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
32
Factory installation procedures for disk mirroring
1. Create the state database replicas by entering the following
Step 6: Run the
setup scripts
command:
2
# olds -mirrored -metadbs
.
.
.
Success, setting up metadb replicas
2. Mirror the root file system by entering the following command:
# olds -mirrored -setroot
.
.
.
Success, root mirrored successfully.
3. Check disks with “metastat” and wait until all disks are synched.
# /usr/sbin/shutdown -y -g0 -i0
.
.
.
ok
NOTE:
Ignore any FSCK error messages which may be
generated.
4. Reboot and log in as the root user (boot -r):
ok boot -r
.
.
.
<hostname> console login: root
Password: <password>
#
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
33
Factory installation procedures for disk mirroring
5. Setup the /cms metadevices by entering the following commands:
# ksh -o vi
# export PATH=$PATH:/olds
# olds -mirrored -setup
.
.
.
3962848, 13997552, 14032256, 14066960, 14101664,
14136368, 14171072,
14205776, 14240480, 14275184, 14309888,
14344592, 14376992, 14411696,
14446400, 14481104, 14515808, 14550512,
14585216, 14619920, 14654624,
14689328, 14724032, 14758736, 14793440,
14828144, 14862848, 14897552,
14929952,
ufs fsck: sanity check: /dev/md/rdsk/d21 okay
Success, /cms mirrored successfully
#
6. Create and mount the /cms file system by entering the following
commands:
# mkdir /cms
# mount /cms
1. Display available disk space by entering a df -kcommand. The
Step 7: Verify disk
space
system responds with a file system table. For example:
2
# df -k
Filesystem
/dev/md/dsk/d13
/proc
kbytes
772327
0
0
used
236870
avail
458227
capacity Mounted on
35%
/
0
0
0
0
0%
0%
0%
/proc
/dev/fd
/cms
fd
/dev/md/dsk/d21 xxxxxxxx
562168 14346985
The figures on the /dev/md/dsk/d21 line are critical. You will use
them to determine whether DiskSuite is administering all your disks.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
34
Factory installation procedures for disk mirroring
2. Complete the table below by filling in (1a) and (1b) as instructed.
Disk Space Verification
Total No.
of Disks
/cms size in MB /cms size in MB
(4-GB disks)
(9-GB disks)
Calculations:
2
4
6
3104
6208
(1a) Enter /cms
line’s ‘kbytes’ figure
divided by 1000
(move decimal
7137
14274
11170
22340
three places left):
(1a)
8
15203
19236
30406
10
(1b) Enter “/cms
Size” (above left)
corresponding to
the number of hard
disks and disk size:
(1b)
3. Compare the figures in (1a) and (1b). They should be approximately
equal. The two will not correspond exactly, but they should be within
about 10% of the /cms size figure. A major discrepancy between the
disk space you should have and the space recognized by the
software usually indicates a connectivity problem. You can check
connectivity by checking the output of a metastatcommand to see
that all the disks are recognized. For example:
# metastat
. . .
d21: Mirror
Submirror 0: d19
State: Okay
Submirror 1: d20
State: Okay
. . .
d19: Submirror of d21
State: Okay
Size: 14398560 blocks
Stripe 0:
Device
Start Block Dbase State
No Okay
Hot Spare
Hot Spare
c0t0d0s3
0
Stripe 1:
Device
c0t2d0s1
Start Block Dbase State
No Okay
0
d20: Submirror of d21
State: Okay
Size: 14398560 blocks
Stripe 0:
Device Start Block Dbase State
Hot Spare
Okay
c0t1d0s3
Stripe 1:
Device Start Block Dbase State
c0t3d0s1
0
No
No
Hot Spare
Okay
0
If the stripes of d19 and d20 do not account for all the disk drives on your
system, check your disk drive connections. If discrepancies persist,
telephone the Lucent National Customer Care Center at 1.800.242.2121,
or contact your Lucent representative or distributor.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
35
Factory installation procedures for disk mirroring
Now you will complete the installation of the usual software by installing
CMS. In general, the steps are as listed below. Detailed installation
instructions can be found in CentreVu CMS R3V8 Software Installation
and Setup (585-210-941).
Step 8: Install the
CMS software
2
The steps to be completed are these:
●
Install CMS software
Install CMS patches (if needed)
Install CMS Supplemental Services software
Set up CMS
Install Open Database Connectivity (ODBC) software (optional)
Set up the remote console
Administer the NTS (if using NTS ports)
●
●
●
●
●
●
1. Enter the following command:
Step 9: Create an
alternate boot
device
# ls -l /dev/rdsk/newbootdev
2
where newbootdev is the device name of the disk chosen as boot
disk 2 (as c0t1d0s0, for example). You partitioned that disk earlier in
the installation procedure.
The system responds (for example):
lrwxrwxrwx 1 root
root
83 Jun 18 15:23
/dev/rdsk/c0t1d0s0 -> ../../devices/sbus@3,0/SUNW,
fas@3,8800000/sd@1,0:a,raw
2. Record the device definition (the part after /devicesand
before:a,raw). For the example above, you would record the part
beginning /sbus@3,0 and ending sd@1,0.
3. Reboot the system by entering the following command:
# /usr/sbin/shutdown -y -i0 -g0
The system displays the ok prompt.
4. Create a device alias for the new boot device by entering the
following command (for example):
ok nvalias bootdevice2 <device>
Replace <device> with what you recorded in item 2. For the
example shown, you would replace <device> with the following:
/sbus@3,0/SUNW,fas@3,8800000/sd@2,0
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
36
Factory installation procedures for disk mirroring
5. Enter the following command:
ok devalias
6. Check the output for a line like this:
bootdevice2 <device definition>
where, again, <device definition> is the string recorded in item 2.
7. Verify that the system boots normally off the alternate boot device,
and log in as the root user:
ok boot bootdevice2
.
.
.
<hostname> console login: root
Password: <password>
.
.
.
#
8. Reboot with a shutdowncommand and again log in as root:
# /usr/sbin/shutdown -y -g0 -i6
.
.
.
<hostname> console login: root
Password: <password>
.
.
.
#
9. Verify that everything is normal.
10. Enter the following command:
# crontab -e
The system starts the editor and loads the cronfile.
11. Add the following line to the end of the file:
15 0 * * * /olds/chkDisks > /dev/null 2>&1
12. Save the file and exit the editor.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
37
Factory installation procedures for disk mirroring
13. Enter the following command:
# chmod +x /olds/chkDisks
14. Do a CMSADM backup. For instructions, see the CentreVu
CentreVu CMS R3V8 Administration (585-210-910) document or the
maintenance and troubleshooting document for your hardware
platform.
When the CMSADM backup is finished, the factory installation
procedure for disk mirroring is complete.
Download from Www.Somanuals.com. All Manuals Search And Download.
Installing Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
38
Factory installation procedures for disk mirroring
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
39
Using the alternate boot device
3
Maintaining Mirrored Systems
3
This chapter contains procedures you are likely to need to
maintain a disk-mirrored system, including replacing disk
drives, recovering from disk failures, and using the olds scripts.
Using the alternate boot device
3
When you set up your mirrored system, you created an alternate boot
device named bootdevice2.
The alternate boot device is a fail-safe device. If for some reason you are
unable to boot from the primary boot disk—a corrupted boot disk, for
example—you can tell the system to boot from the alternate device until
further notice.
You do that by entering one of the following commands, depending upon
whether you are at the boot prompt or in root:
_________________________________________________________________
ok setenv boot-device bootdevice2
# eeprom boot-device=bootdevice2
_________________________________________________________________
To reset the boot device to the primary disk, enter one of the following
commands, again depending upon whether you are at the boot prompt or
in root:
_________________________________________________________________
ok setenv boot-device disk
# eeprom boot-device=disk
_________________________________________________________________
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
40
Maintaining the chkDisks crontab
Maintaining the chkDisks crontab
3
The chkDisks crontab runs each night and checks to see whether any
potential or actual drive problems have been logged. The results of the
search are logged to /olds/elog and mailed to the root user. This section
shows how to start and stop chkDisks, and how to verify that it will run.
Activate chkDisks by doing the following steps:
1. Enter the command: # crontab -e
The system starts the editor and loads the cronfile.
Activating
chkDisks
3
2. Find the line for /olds/chkDisks. If it is commented out, uncomment it
by deleting the pound sign at the beginning of the line. If there is no
line for /olds/chkDisks, add the following line to the end of the file:
15 0 * * * /olds/chkDisks > /dev/null 2>&1
To verify that cronis running, enter the following command:
Verifying chkDisks
3
# crontab -l
Check the listing to see that there is an entry for chkDisks.
The /olds/chkDisks line in the cron file is generally in the following format:
Changing the
scheduled run time
3
15 0 * * * /olds/chkDisks > /dev/null 2>&1
This line tells the system to run chkDisks every day at 15 minutes past
hour zero, or 12:15 AM. You can change that schedule by changing the
first five fields as necessary. The fields, in order of appearance, are:
minute, hour, day of the month, month of the year, and day of the week.
An asterisk means “all legal values.” For more information, see the
manual (man) page for the crontab command.
To stop cron from running, enter the following command:
Canceling
chkDisks
3
# crontab -e
With the file loaded in the editor, comment out the entry for chkDisks and
write and quit the file.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Doing a CMSADM backup on a mirrored system
41
Doing a CMSADM backup on a mirrored system
3
This section describes how to perform a traditional CMSADM backup on
a mirrored system.
NOTE:
Mirroring is intended as a way to minimize data loss should a system crash
occur, not as a way to avoid backing up data. Mirrored systems must be backed
up just as often as unmirrored systems.
Print out the contents of the vfstab file before beginning the backup. You
will need the information in that file to restore files from the backup tape.
Step 1: Print the
vfstab file
3
To print the vfstab file, do the following:
1. Enter the following command:
# lp /etc/vfstab
2. Retrieve the printout and save it. You will need it again when the
backup finishes.
1. At the system console, log in as root.
Step 2: Run the
backup
3
2. Verify that the computer is in a Solaris multi-user state (a run level of
2or 3) by entering a who -rcommand. The system responds by
listing the run level and date. For example:
# who -r
. run-level 3 Feb 2 16:52 3 O S
#
If the system is in some other run level, reboot and log in again as
the root user:
# /usr/sbin/shutdown -y -g0 -i6
. . .
<hostname> login: root
password: <password>
. . .
#
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
42
Doing a CMSADM backup on a mirrored system
3. Display the CentreVu CMS Administration menu by entering a
cmsadm command. For example:
# cmsadm
Lucent Technologies CentreVu(R) Call Management
System Administration Menu
Select a command from the list below.
1) acd_create Define a new ACD
. . . .
4. Enter the number of the backup option. The system prompts for
the tape drive.
5. Enter the appropriate option number. The system begins calculating
the approximate number of tapes required and informs you of its
calculation. For example:
The backup will need approximately 2 tapes.
You will be prompted for additional tapes.
Be sure to number the cartridge tapes
consecutively in the order they will be
inserted.
Please insert the first cartridge tape into
/dev/rmt/<xxx>
Press ENTER when ready:
6. Insert the tape, wait for it to rewind and reposition, and press Enter.
The backup begins.
During the backup, you may receive a prompt about CMS being on
or prompts to insert more tapes. Respond to each prompt as
appropriate, and then press Enter.
When the backup completes, it will be verified. If you used more
than one tape, you will have to reinsert each tape.
Any time you need to insert a tape, allow it to rewind and reposition
before you press Enter.
After the tape verification, the system prompts you to label the tapes and
then returns you to the system prompt:
Step 3: Label and
store the tapes
3
Please label the backup tape(s) with the date and
the current CMS version (<version>).
#
Label the tapes as instructed. Bundle them with the vfstab printout and
put them away in a safe place.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
43
Restoring from a CMSADM Backup
Restoring from a CMSADM Backup
3
This section contains the procedure for restoring /cms data files from a
traditional CMSADM backup tape.
You may want to perform a CMSADM restore when, for example, your file
systems are still intact, but some data has been corrupted.
If your CMS is running on a Sun Enterprise 3500, and you have had a
crashed or corrupted disk, check the /kernel/drv/st.conf file before you
begin the restore. Make certain the file contains the following entry:
# Begin CMS tape configuration list.
tape-config-list=
"EXABYTE EXB-8900", "Mammoth EXB-8900 8mm Helical
Scan", "EXB-8900",
"TANDBERG TDC 4200", "Tandberg 2.5 Gig QIC", "TAND-25G-
FIXED",
"TANDBERG SLR5", "Tandberg 8 Gig QIC", "TAND-8G-FIXED";
EXB-8900 = 1,0x29,0,0xce39,4,0x7f,0x7f,0x7f,0x7f,0;
TAND-25G-FIXED = 1,0x37,512,0x867a,1,0x00,0;
TAND-8G-FIXED
=
1,0x37,512,0x963a,4,0xA0,0xD0,0xD0,0xD0,3;
# End CMS Tape configuration list.
If the file does not contain the entry, add it. The 3500’s Mammoth 8mm
tape drive will not operate if the entry is absent.
To restore a CMSADM backup, do these steps:
1. Obtain the latest CMSADM backup tape.
2. Load the backup tape into the tape drive.
3. Enter the following command:
# cpio -icmudv -C 10240 -I <device>
where <device> is one of the following:
/dev/rmt/0
The internal, noncompressing tape drive (14-GB,
8-mm drive) with the lowest target address.
/dev/rmt/1
The external, noncompressing tape drive (QIC-150
or 5-GB, 8-mm drive) with the second lowest target
address.
/dev/rmt/0c The internal, compression-capable tape drive
(usually a 14-GB or 40-GB) with the lowest target
address.
/dev/rmt/1c The external, compression-capable tape drive
(either a QIC 2.5-GB or a 14-GB tape drive) with
the second lowest target address.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
44
Restoring from a CMSADM Backup
NOTE:
You may get error messages concerning the /home directory. These errors
display when the directory is already present. Ignore them.
4. Restore any CentreVu CMS maintenance backups dated after the
latest CDMADM backup. See the CentreVu CMS R3V8
Administration (585-210-941) document for details on restoring a
maintenance backup.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
45
Repairing or rebuilding the /cms file system
Repairing or rebuilding the /cms file system
3
This section contains procedures for reinitializing the /cms file system.
You may need to perform this procedure in case of disk corruption or
some other catastrophic system problem. The point of the procedure is to
repair /cms or, failing that, to rebuild it and restore the latest available
CMS data. Try to repair the file system first: if you can repair it, you will
save considerable time and trouble.
This procedure attempts to repair /cms.
1. Turn off CMS.
Repairing /cms
3
a. Enter a cmsadmor cmssvccommand.
b. Select the run_cmsoption.
c. Select the Turn off CMSoption.
2. Unmount /cms:
# umount /cms
#
The system prompt should return without messages, as shown.
3. Do this step only if the umountcommand returned the
response /cms: device busy.
a. Load the /etc/vfstab file into your editor.
b. Find the /cmsand /cms/swaplines. Comment out both lines.
(To comment out a line, insert a pound sign at the beginning.)
c. Save the file and exit the editor.
d. Reboot by entering the following command:
# /usr/sbin/shutdown -i6 -g0 -y
4. Attempt to repair /cms:
# fsck -y /dev/md/rdsk/d21
** /dev/md/dsk/d21
** Last mounted on /cms
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 Check Cyl groups
2060 files, 564453 used, 6468748 free (1900
frags, 808356 blocks, 0.0%
#
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
46
Repairing or rebuilding the /cms file system
The system prompt should return without error, as shown above. (Of
course, file and block counts in the last line will vary.) In that case,
continue with the next step.
If you get an error message, however, repeat the fsckcommand. If
the command still returns errors after 10 repetitions, stop this
procedure and skip ahead to “Rebuilding /cms,” below.
Continue with step 6 only if you entered the fsck command and
it returned the system prompt without error messages.
5. This step remounts /cms and reallocates the swap file. How that is
done depends upon whether you altered the vfstab file earlier in this
procedure.
If you altered the vfstab file earlier (step 4), do the following:
a. Load the /etc/vfstab file into your editor.
b. Find the #/cmsline. Uncomment the line. (To uncomment a
line, delete the initial pound sign.)
c. Save the file and exit the editor.
d. Reboot by entering the following command:
# /usr/sbin/shutdown -i6 -g0 -y
If you did NOT alter the vfstab file, do the following:
a. Remount /cms:
# mount /cms
6. Turn on CMS:
a. Enter a cmsadmor cmssvccommand.
b. Select the run_cmsoption.
c. Select the Turn on CMSoption.
The file system has now been repaired and should be operating normally.
If this procedure completed successfully, do NOT do the “Rebuild
/cms” procedure.
Do this procedure only if you have tried the fsck command at least
ten times and it is still returning errors.
Rebuilding /cms
3
the 3500’s 8mm tape drive is properly defined. See “Restoring from a
CMSADM Backup” on page 43 for details.
To complete this procedure, you need the latest CMSADM backup. Also,
/cms should still be unmounted at this point. If anything has been done to
alter that, repeat steps 2 through 4 of the “Repairing /cms” procedure.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
47
Repairing or rebuilding the /cms file system
1. Add the Solstice DiskSuite directories to your path:
# export PATH=$PATH:/usr/opt/SUNWmd/sbin:/olds
#
2. Detach the d20 submirror:
# metadetach d21 d20
d21: submirror d20 is detached
#
3. Clear the d20 submirror:
# metaclear d20
d20: Concat/Stripe is cleared
#
4. Clear the cms mirror:
# metaclear d21
mirror is cleared
#
5. Clear the d19 submirror:
# metaclear d19
d19: Concat/Stripe is cleared
#
6. Reinitialize the d19 submirror:
# metainit d19
d19: Concat/Stripe is set up
#
7. Reinitialize the d20 submirror:
# metainit d20
d20: Concat/Stripe is set up
#
8. Reinitialize the cms mirror:
# metainit d21
mirror is set up
#
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
48
Repairing or rebuilding the /cms file system
9. Prepare the cms mirror for a new file system (this will take 15 to 30
minutes to complete):
# newfs -m 0 /dev/md/rdsk/d21
.
.
.
14550512, 14585216, 14619920, 14654624,
14689328, 14724032, 14758736, 14793440,
14828144, 14862848, 14897552, 14929952,
ufs fsck: sanity check: /dev/md/rdsk/d21 okay
Success, /cms mirrored successfully
#
10. This step remounts /cms. How that is done depends upon whether
you had to alter the vfstab file when you attempted to repair the file
system.
If you altered the vfstab file during the repair procedure, do the
following:
a. Load the /etc/vfstab file into your editor.
b. Find the #/cmsline. Uncomment the line. (To uncomment a
line, delete the initial pound sign.)
c. Save the file and exit the editor.
d. Reboot by entering the following command:
# /usr/sbin/shutdown -i6 -g0 -y
If you did NOT alter the vfstab file, do the following:
a. Remount /cms:
# mount /cms
11. Verify that you are in the root directory.
12. Load the latest CMSADM backup tape into the tape drive.
13. Restore CMS data from the tape:
# cpio -icmudv -C 10240 -I /dev/rmt/0c -M
“Insert Tape %d” “cms/*”
14. Restore the latest full maintenance backup.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Restoring a mirrored system from a CMSADM backup
49
Restoring a mirrored system from a CMSADM backup
3
This section shows you how to restore an entire mirrored system from a
CMSADM backup. You might have to do this procedure, for example, if
you have a disk crash that disables the operating system disk drive.
To do this procedure, you will need the “Solaris 7 3/99” compact disc and
the most recent CMSADM backup tape. You will also need to know your
system’s host name, host ID, and IP address.
Power off the system by doing the following tasks:
1. Turn off the system unit.
Step 1: Power off
the system
3
2. Turn off the system monitor.
3. Turn off all external devices starting with the device closest to the
system unit and working toward the farthest device.
Step 2: Install the
new drives
!
CAUTION:
3
You must wear an ESD wrist strap when installing or removing hard disk
drives to prevent electrical discharge that may harm system components.
In Sun Enterprise 3xxx systems, the internal hard disk drives install in the
front of the system. To expose the disk drive bays, open the front access
door.
Each disk drive has a retainer latch/drive handle on the front of the drive.
To install a drive, unlatch and extend the retainer and slide the drive
carefully into the appropriate drive slot. When the drive stops, gently
apply pressure to the face of the drive until you hear the connectors
engage. Then lower the retainer latch and snap it in place, making certain
the drive is secure and does not extend beyond the front of the chassis.
Do not use excessive force to seat the connector or to close the retainer
latch.
For additional information about hard disks and disk drives, see the Sun
System Reference Manual appropriate to your hardware platform.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
50
Restoring a mirrored system from a CMSADM backup
The following tasks boot the system from the compact disc.
Step 3: Boot the
system from the
compact disk
Task
Action
Result
3
1
Turn on the power to the
system units in the opposite
order in which you powered
them off.
The system begins to boot.
2
After the display console
banner appears but before the
operating system begins to
boot, interrupt the process by
pressing Stop A .
The ok
prompt is displayed
3
Load the “Solaris 7 3/99”
compact disc into the CD-ROM
drive.
4
Enter the following command: Booting takes from 2 to 10
minutes. When it completes,
Select Language and
ok boot cdrom
Locale screen is displayed:
5
6
7
Click the Continuebutton.
Click the Continue button.
Click the Continue button.
TheSolarisInstallation
Program screen is displayed
TheIdentify this System
screen is displayed
The Host Name screen is
displayed
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
51
Restoring a mirrored system from a CMSADM backup
The following tasks identify your system for the installation.
Step 4: Identify the
system
3
Task
Action
Result
1
No action required.
The HostNamescreen is
displayed.
2
3
a. Click the Host name box
The Network Connectivity
screen is displayed.
b. Type the host name for the
workstation.
c. Click the Continuebutton.
a. Click the Yes option.
The IP Addressscreen is
displayed.
b. Click the Continuebutton.
c. If your system has more than
one network board, a
Primary Network Interface
screen displays. In that case,
select hme0 and click
Continue.
4
a. Click the IP address box
The Confirm Information
screen is displayed.
b. Type your system’s IP
address. If you are unsure,
use the one that is NOT
commented out.
c. Click the Continuebutton.
5
a. Check the information
displayed on the screen. If
the information is not
correct, click Changeand
return to task 1 of this
procedure.
The Name Servicescreen is
displayed.
b. If the information is correct,
click Continue.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
52
Restoring a mirrored system from a CMSADM backup
The following tasks set the name service options.
Step 5: Set the
Name Service
options
Task
Action
Result
3
1
No Action Required.
The Name Servicescreen is
displayed.
2
3
a. Select the Noneoption.
The Confirm Information
screen is displayed.
b. Click the Continuebutton.
a. Check the information
displayed on the screen. If it
is incorrect, click Change
and return to task 1 of this
table.
The Subnetsscreen is
displayed.
b. If the information is correct,
click Continue.
4
Do this task only if the switch is The Time Zonescreen is
displayed.
connected to this computer via
a serial port or HSI card.
a. Select No.
b. Click Continue.
c. Skip the remainder of the
tasks in this table.
5
6
Do this task and the next only if The Netmaskscreen is
displayed.
the switch is connected to this
computer via a network.
a. Select Yes.
b. Click Continue.
a. Enter the appropriate net
mask. The default of
255.255.255.0 is
recommended.
The Time Zonescreen is
displayed.
b. Click Continue.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
53
Restoring a mirrored system from a CMSADM backup
The following tasks set the date and time.
Step 6: Set the date
and time
3
Task
Action
Result
1
No action required.
The Time Zonescreen is
displayed.
2
3
a. Select Geographic
The Geographic Region
screen is displayed.
region.
b. Click Set.
a. Select the region where this The Date and Timescreen is
system is located.
displayed.
b. Select the time zone where
this system is located.
c. Click the Continuebutton.
4
5
a. Change the date and time as The Confirm Information
needed to reflect the current
local date and time.
screen is displayed.
b. Click Continue.
a. Check the information
displayed on the screen. If it
is incorrect, click Change
and return to task 1.
The Solaris Interactive
Installation - Initial
screen is displayed.
b. If the information is correct,
click Continue.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
54
Restoring a mirrored system from a CMSADM backup
This procedure selects Solaris system files for the installation.
Step 7: Select the
operating system
files to be installed
Task
Action
Result
3
1
No Action Required.
The Solaris Interactive
Installation - Initial
screen is displayed.
2
3
Click the Initialbutton.
Click the Continuebutton.
Click the Continuebutton.
The Solaris Interactive
Installation screen is
displayed.
The Allocate Client
Services? screen is
displayed.
4
5
The Select Languages
screen is displayed.
a. Select the languages you
want to see displayed in the
user interface.
The Select Software
screen is displayed.
b. Click the Continuebutton.
6
7
a. Select End User System The Customize Software
Support.
screen is displayed.
b. Click the Customizebutton.
Select the packages listed
below:
The Select Software
screen is displayed.
— Basic Networking
— On-Line Manual Pages
— X Windows system online
user man pages (under
Open Windows Version 3)
— Point-to-Point Protocol
— CCS tools bundled with
SunOS and Solaris
bundled tools (under
Programming tools and
libraries)
— System Accounting
— Terminal Information
Click OKwhen finished.
8
Click the Continuebutton.
The Select Disks screen is
displayed.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
55
Restoring a mirrored system from a CMSADM backup
This procedure selects hard disks for partitioning.
Step 8: Select the
hard disks
3
Task
Action
Result
1
No Action Required.
The Select Disks screen is
displayed.
2
Check the list of disk drives in the Available column: it should list
every disk in your system. If it doesn’t, you probably have a
connectivity problem. In that case stop the installation, power
down, secure all drive connections, and restart the installation.
3
a. Click the disk name to
highlight an available disk.
The Preserve Data? screen
is displayed.
b. Click Addto select the disk.
c. Repeat a and b until all
available disks are in the
Selected column.
d. Click Continue.
4
Click Continue.
TheAutomaticallyLayout
File Systems? screen is
displayed.
5
6
Click Manual Layout.
The File System and Disk
Layout screen is displayed.
Click Customize.
The Customize Disks
screen is displayed.
This procedure sets up the disk partitions.
Step 9: Set up the
disk partitions
3
Task
Action
Result
1
No action required.
The Customize Disks
screen is displaying. This
screen lists partitioning for two
disks, one in the left panel and
another (if another exists) in the
right panel.
2
Click the cylinders icon for the The Customize Disks by
disk you want to partition.
Cylinder screen is
displayed.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
56
Restoring a mirrored system from a CMSADM backup
3
a. Click the space at the right
Slice numbers
of the slice number.
b. Type the slice name (see
the table below).
c. Click the next space to the
right and type the size (see
the table below).
Sizes in
this column
Names in
this column
d. Repeat a through c until the
disk is properly partitioned.
4
5
Click the OK button.
The Customize Disks
screen is displayed.
Repeat the tasks in this table for every disk drive in the system.
Do not go on until all drives in the system are partitioned.
Standard Mirrored-disk Partitioning
(Note: Never change the default size of the overlap slice!)
Size (Cylinders)
CMS R3V8
9.1-GB Disk
SCSI (E 3000)
and FC-AL (E
3500)
CMS R3V8
4.2-GB Disk
Device
Slice
Name
c0t0d0: /
c0t1d0: (leave blank)
c1t4d0: (leave blank)
1023
616
0
1
2
(leave blank)
overlap
7
3880
1879
971
0
7
4924
3716
585
0
c0t0d0
c0t1d0 (3000 only)
c1t4d0 (3500 only)
3
(leave blank)
swap
4
5-7
0
(leave blank)
(leave blank)
(leave blank)
overlap
All others
2
2
1
3878
3880
0
4922
4924
0
2
3-7
(leave blank)
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
57
Restoring a mirrored system from a CMSADM backup
This procedure installs the Solaris 7 3/99 operating system using the
system software and disk partitioning already specified.
Step 10: Install the
operating system
3
Task
Action
Result
1
No action required.
The Customize Disks
screen is displayed.
2
3
4
5
Click OK.
The File System and Disk
Layout screen is displayed.
Click Continue.
Click Continue.
The Mount Remote File
System? screen is displayed.
The Profile screen is
displayed.
Click Begin Installation. The Reboot/No Reboot
screen is displayed.
6
7
Click Reboot.
No action required. As the disks are partitioned and the system
files are copied to the disk, the progress gauge is updated to
indicate the progress of the installation, and takes about 40
minutes to reach 100%. At that point the progress window
disappears. A console window appears in the upper left corner
of the screen and the installation continues. The remainder of
the installation can take several hours, depending upon the
number of disks installed.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
58
Restoring a mirrored system from a CMSADM backup
This procedure completes the operating system installation.
Step 11: Complete
the OS installation
3
Task
Action
Result
On this screen you can create a
root password.
1
No action required. When the
installation completes, the
machine reboots and prompts
for a root password.
. . .
Root password:
Press Return to continue.
Please reenter your root
password?
2
3
Enter the same password you
had before you began the
installation.
Press Return to continue.
. . .
Enter the password again.
syslog services starting.
Print services started.
volume management starting.
The system is ready.
<hostname> console login:
#
4
Log in as the root user.
If you are running on a Sun Enterprise 3500 platform, you must alter the
/kernel/drv/st.conf file so the operating system recognizes the 3500’s
8mm tape drive. To accomplish that, do the following steps:
Step 12: Alter the
tape configuration
file (Enterprise
3500 only)
1. Start an editor such as vi or the CDE Text Editor, and load the
3
/kernel/drv/st.conf file.
2. Find the #tape-config-list= line. It should be in the vicinity of
line number 40.
3. Insert, immediately before that line, the following:
# Begin CMS tape configuration list.
tape-config-list=
"EXABYTE EXB-8900","Mammoth EXB-8900 8mm Helical
Scan","EXB-8900",
"TANDBERG TDC 4200", "Tandberg 2.5 Gig QIC", "TAND-25G-
FIXED",
"TANDBERG SLR5", "Tandberg 8 Gig QIC", "TAND-8G-FIXED";
EXB-8900 = 1,0x29,0,0xce39,4,0x7f,0x7f,0x7f,0x7f,0;
TAND-25G-FIXED = 1,0x37,512,0x867a,1,0x00,0;
TAND-8G-FIXED = 1,0x37,512,0x963a,4,0xA0,0xD0,0xD0,0xD0,3;
# End CMS Tape configuration list.
4. Save the file and exit the editor.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
59
Restoring a mirrored system from a CMSADM backup
With the system prompt displaying, insert the CMSADM backup tape into
the tape drive and enter the following command:
Step 13: Restore
the backup
3
# cpio -icmudfv -C 10240 -I /dev/rmt/0c
-M “Insert Tape %d” “/etc/vfstab” “/cms/*”
“/etc/path_to_inst” “/etc/mnttab” “/swap*”
This command restores essential system files. As the restoration
proceeds, you may ignore all of the following messages:
●
cpio cannot create temporary files
●
errno 18
●
errno 89
●
Cross-device link
1. Clean up the system files by entering the following command:
Step 14:
Reestablish the
disk mirrors
# /olds/olds -cleanup
3
The system responds (for example):
number of external scsi controllers with disks
is = 0
number of disks is = 4
All data on CMS filesystems will be removed and
filesystems will be unmirrored, are you sure?
2. Enter: y
The CMS file systems are cleaned up and the system prompt
returns.
3. Reboot the system and log in as the root user:
# /usr/sbin/shutdown -y -i6 -g0
. . .
<hostname> login: root
password: <password>
. . .
#
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
60
Restoring a mirrored system from a CMSADM backup
4. Add the Solstice DiskSuite directories to your path:
# PATH=$PATH:/usr/opt/SUNWmd/sbin:/olds
# export PATH
5. Create md.tab.new:
# olds - mirrored -mk_files
.
.
.
Success, creating md.tab.new
#
6. Check the disk:
# olds -mirrored -check_disk
.
.
.
Success, checking md.tab.new
#
7. Activate the state database:
# olds -mirrored -meatdbs
.
.
.
Success, setting up metadb replicas
#
8. Set up the root mirror:
# olds -mirrored -setroot
.
.
.
Success, root mirrored successfully.
#
9. Get to the boot prompt:
# /usr/sbin/shutdown -y -i0 -g0
.
.
.
ok
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
61
Restoring a mirrored system from a CMSADM backup
10. Reboot using a boot -rcommand and log in as the root user:
ok boot -r
.
.
.
<hostname> login: root
Password: <root password>
.
.
.
#
11. Add the Solstice DiskSuite directories to your path:
# PATH=$PATH:/usr/opt/SUNWmd/sbin:/olds
# export PATH
12. Activate the /cms metadevice:
# olds -mirrored -setup
.
.
.
14550512, 14585216, 14619920, 14654624,
14689328, 14724032, 14758736, 14793440,
14828144, 14862848, 14897552, 14929952,
ufs fsck: sanity check: /dev/md/rdsk/d21 okay
Success, /cms mirrored successfully
#
13. Mount /cms:
# mount /cms
14. Load the latest CMSADM backup tape into the tape drive.
15. Restore CMS data from the tape:
# cpio -icmudv -C 10240 -I /dev/rmt/0c -M
“Insert Tape %d” “/cms/*”
16. Turn on CMS:
a. Enter a cmsadmor cmssvccommand.
b. Select the run_cmsoption.
c. Select the Turn on CMSoption.
17. Do a full maintenance backup.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Restoring specific files from a CMSADM backup
62
Restoring specific files from a CMSADM backup
3
To restore specific files from CMSADM backup tapes, enter the following
commands at the system prompt (for example):
# cd /
# cpio -icmudv -C 10240 -I /dev/rmt/0c -M “Please
remove the current tape, insert tape number %d, and
press ENTER” <full_path_name>
(where <full_path_name> is the full path name of the file to be restored)
Note the device name in the example (/dev/rmt/0c). That name is usually
correct. Some other device name may be required, however, depending
upon the drive’s SCSI ID and compression capability. Tape device names
are as follows:
/dev/rmt/0
The internal, noncompressing tape drive (14-GB,
8-mm drive) with the lowest target address.
/dev/rmt/1
The external, noncompressing tape drive (QIC-150
or 5-GB, 8-mm drive) with the second lowest target
address.
/dev/rmt/0c The internal, compression-capable tape drive
(usually a 14-GB or 40-GB) with the lowest target
address.
/dev/rmt/1c The external, compression-capable tape drive
(either a QIC 2.5-GB or a 14-GB tape drive) with
the second lowest target address.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Adding new disks to a standard mirrored system
63
Adding new disks to a standard mirrored system
3
The procedure in this section adds new disks to a system that is already
mirrored. In order to use this procedure, your assigned boot disks must
be the same as those assigned during a factory installation of disk
mirroring. If your boot disk assignments differ from the standard factory
using the procedure in “Adding new disks to a nonstandard mirrored
system” on page 66.
Boot-Disk Assignments for Factory-Installed Mirroring
Boot Disk 2 Boot Disk 2
Boot Disk 1
(E3000)
(E3500)
c0t0d0
c0t1d0
c1t4d0
New Enterprise 3000 internal disks are “hot swappable,” meaning they
can be inserted into a running system. The operating system, however,
will not recognize the new disks until the system has been rebooted.
1. Enter the command:
# /usr/opt/SUNWmd/sbin/metastat
Examine the output for the status of each metadevice. (It’s indicated
in the Status:.... line.) All metadevices must have a status
of okay before you may proceed. Do not attempt this
procedure while any metadevice is resynching or needs
maintenance.
2. Do a CMSADM backup. For detailed instructions, see the Lucent
Technologies Administration or Upgrades document for your version
of CMS.
3. Turn off CMS:
a. Enter a cmsadm or cmssvc command.
b. Select the cms_runoption.
c. Select the Turn off cmsoption.
4. Halt the system:
# /usr/sbin/shutdown -y -i0 -g0
5. Install the new disk drives by plugging them into the appropriate
empty drive slots. Follow the instructions you received with the disk
drives or with your basic system, or see the Lucent Technologies
installation or maintenance document for your version of CMS.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
64
Adding new disks to a standard mirrored system
6. Reboot the system and log in as the root user:
ok boot -r
. . .
<hostname> login: root
password: <password>
. . .
#
7. Partition the new disks by following the instructions in “Partitioning
disks with the format command” on page 76.
8. Check disk space by entering a df -k command. For example:
# df -k
Filesystem
kbytes used
avail capacity Mounted on
/dev/md/dsk/d13 772038 538683 156155
78%
0%
0%
/
/proc
fd
0
0
0
0
0
0
/proc
/dev/fd
/cms
/dev/md/dsk/d21 3059955 192497 2867458
#
7%
Record the avail figure for /cms here: ______________________
9. Create new versions of the setup files by entering the following
commands:
# cd /olds
# olds -mirrored -mk_files <newdisk1> <newdisk2>
<newdisk1> and <newdisk2> represent the device names of the
disk drives added (remember that in a mirrored system, disk drives
are always added in pairs). For example:
# olds -mirrored -mk_files c0t10d0 c0t11d0
(For an example of the md.tab file format, see “Examples of valid
system files” on page 79.)
11. Save a copy of the existing md.tab file by entering the following
command:
# cp /etc/opt/SUNWmd/md.tab /etc/opt/SUNWmd/md.tab.mirror
12. Replace the existing md.tab file with the one you created in Step 10:
# cp /etc/opt/SUNWmd/md.tab.new /etc/opt/SUNWmd/md.tab
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
65
Adding new disks to a standard mirrored system
13. Add the new disks to the existing metadevices by entering the
following command:
# olds -mirrored -setup <newdisk1> <newdisk2>
(where, again, <newdisk1> and <newdisk2> are the device names
of the disks you have added).
The system responds with the following:
Warning: Current Disk has mounted partitions.
device: c0t6d0 will not be used
. . .
d19: component is attached
d20: component is attached
. . .
d21: submirror d20 is attached
Success, growing d21
Success, the capacity of the /cms mirror has increased.
#
14. Restart CMS by entering the cmsadm or cmssvc command and
selecting the cms_runoption. When the run option menu displays,
select start cms.
15. Check the available disk space by entering a df -k command. For
example:
# df -k
Filesystem
kbytes
used avail capacity Mounted on
/dev/md/dsk/d13 772038 538683 156155
78%
0%
0%
/
/proc
fd
0
0
0
0
0
0
/proc
/dev/fd
/cms
/dev/md/dsk/d21 3059955 192497 4967458
7%
Compare the avail figure for /cms to the figure you recorded in
Step 8; it should show an increase roughly equal to one-half of the
total capacity of the drives added.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
Adding new disks to a nonstandard mirrored system
66
Adding new disks to a nonstandard mirrored system
3
A “nonstandard” disk drive addition is one that cannot take advantage of
advanced features of the olds setup scripts because the disk
configuration is not standard. The procedure is as follows:
1. Turn off CMS. (From the command line, enter the cmsadm or
cmssvc command, and select the cms_runoption. When the run
option menu displays, select Turn off cms.)
2. Halt the system by entering the following command:
# /usr/sbin/shutdown -y -g0 -i0
3. Install the new disk drives by plugging them into the appropriate
empty drive slots.
Follow the instructions you received with the disk drives or with your
basic system, or see the hardware installation or maintenance and
troubleshooting document for your platform and version of CMS.
4. Reboot the system by entering the following command:
ok boot -r
5. Determine the total amount of disk space available to /cms by
entering the following command:
# df -k /cms
The system responds by displaying file system information for /cms.
For example:
Filesystem
/dev/md/dsk/d21 xxxxxxxx 9
kbytes
used
avail
yyyyyy
capacity
0%
Mounted on
/cms
Check the response. Look for the “avail” figure for /cms (shown as
“yyyyyy” in the example above). Record that figure here:
/cms “avail” figure: ______________________
6. Partition the new disks. Follow the instructions in “Partitioning disks
with the format command” on page 76. Double check the partitioning
before continuing.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
67
Adding new disks to a nonstandard mirrored system
7. Add the olds directories to your path:
# PATH=$PATH:/usr/opt/SUNWmd/sbin:/olds
# export PATH
8. Create new versions of the setup files by entering the following
command:
# olds -mirrored -mk_files <newdisk1> <newdisk2>
<newdisk1> and <newdisk2> represent the device names of the
disk drives added (remember that in a mirrored system, disk drives
are always added in pairs). For example:
# olds -mirrored -mk_files c0t10d0 c0t11d0
(For an example of the format of an md.tab file, see “Examples of
valid system files” on page 79.)
10. Save a copy of the existing md.tab file by entering the following
command:
# cp /etc/opt/SUNWmd/md.tab /etc/opt/SUNWmd/md.tab.mirror
11. Replace the existing md.tab file with the one you created in Step 8:
# cp /olds/md.tab.new /etc/opt/SUNWmd/md.tab
12. Attach one of the newly installed disk drives to each of the d21
submirrors (d19 and d20):
# metattach d19 <newdisk1>
# metattach d20 <newdisk2>
where <newdisk1> and <newdisk2> represent the device names of
the disk drives you have just added. For example:
# metattach d19 c0t10d0s1
# metattach d20 c0t11d0s1
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
68
Adding new disks to a nonstandard mirrored system
13. Grow the /cms file system by entering the following command:
# growfs -M /cms /dev/md/rdsk/d21
If the operation should fail, do the following:
a. Restore the original md.tab file by entering the following
command:
# cp /etc/opt/SUNWmd/md.tab.mirror /etc/opt/SUNWmd/md.tab
b. Look up the error message in Chapter 4, “Troubleshooting.”
14. Enter the following command:
# metastat
Examine the output to make certain the disk drives you just added
are part of the configuration.
15. Enter the following command:
# df -k /cms
The system responds by displaying file system information for /cms.
For example:
Filesystem
/dev/md/dsk/d21
kbytes
xxxxxxxx 9
used
avail
yyyyyy
capacity Mounted on
0% /cms
Check the response. Look for the “avail” figure for /cms (shown as
“yyyyyy” in the example above). That figure should be roughly twice
the figure recorded in Step 5.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
69
Replacing a faulty disk
Replacing a faulty disk
3
This section explains how to replace a faulty disk. The system does not
need to be powered off or rebooted to perform this procedure.
A disk problem is usually indicated in the /var/adm/messages file. The
following lines, for example, indicate a disk problem:
Step 1: Identify the
faulty disk
3
Jun 12 16:27:08 leopard unix: WARNING:
Jun 12 16:27:08 leopard unix: Error for command
’read(10)’ Error Level: R
Jun 12 16:27:09 leopard unix: retryable
Jun 12 16:27:09 leopard unix: Requested Block 0,
Error Block: 0
Jun 12 16:27:09 leopard unix: Sense Key: Media Error
Jun 12 16:27:09 leopard unix: Vendor ’SEAGATE’:
Jun 12 16:27:09 leopard unix: ASC = 0x31 (medium
format corrupted), ASCQ
= 0x0, FRU = 0x9
Jun 12 16:27:09 leopard unix: WARNING:
/sbus@3,0/SUNW,fas@3,8800000/sd@2,0
Those lines, however, do not tell us which disk has the problem. One way
of finding out is to enter an ls -l /dev/dsk/c* command and
search the output for a device description matching that in the warning
message. For example:
# ls -l /dev/dsk/c*
.
.
.
lrwxrwxrwx 1 root
root
50 Apr 24 15:21
/dev/dsk/c0t2d0s0 -> ../../devices/sbus@3,0/SUNW,fas
@3,8800000/sd@2,0:a
lrwxrwxrwx 1 root
root
50 Apr 24 15:21
/dev/dsk/c0t2d0s1 -> ../../devices/sbus@3,0/SUNW,fas
@3,8800000/sd@2,0:b
.
.
.
#
That the ”/iommu@0....” information matches the same information in the
warning message indicates that disk c0t2d0 is the faulty disk.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
70
Replacing a faulty disk
1. Add the Solstice DiskSuite directories to your path:
Step 2: Identify the
submirrors
3
# export PATH=$PATH:/usr/opt/SUNWmd/sbin:/olds
2. Enter a metastatcommand:
# metastat
3. Scan the output of the metastat command to find the name of the
faulty disk. The following lines, for example, indicate that the faulty
c0t2d0 disk is in d20:
# metastat
.
.
d20: Submirror of d21
Size: 14960160 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c0t2d0s1
0
No Okay
Stripe 1:
Device Start Block Dbase State Hot Spare
c0t4d0s3 No Okay
0
.
.
Be sure to check all the submirrors. If the disk is also listed under
d11 or d12, it is a boot disk belonging to two different submirrors.
Replacing a boot disk involves some special considerations; those
considerations are noted in this procedure where they apply.
4. Record below the metadevices to which the disk belongs (for
example, d11 and d19):
d____
d____
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
71
Replacing a faulty disk
To detach a submirror means to put it off line so you can access its
constituent disk drives. You detach a submirror with a metadetach
command. The command is in the format:
Step 3: Detach the
submirrors
3
metadetach <metamirror> <submirror>
where <metamirror> is the mirror and <submirror> is the submirror to be
detached.
To continue our example, since c0t2d0 is part of d20, which is a submirror
of d21, the detach command would be as follows:
# metadetach d21 d20
d21: submirror d20 is detached
If the faulty disk is a boot disk, a metastatcommand also shows the
disk as part of the d11 or d12 submirror. Be sure to detach both the
submirrors of which it is a member. For example:
# metadetach d13 d12
d13: submirror d12 is detached
# metadetach d21 d20
d21: submirror d20 is detached
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
72
Replacing a faulty disk
When you replace a boot disk, you must remove the state database
is one that is a member of metadevice d11 or d12 (see “Step 2: Identify
the submirrors” on page 70).
Step 4: Remove
state database
replicas (boot disks
only)
3
If you fail to remove old replicas, the software will have an
inaccurate picture of the replicas existing on your system and will
attempt to write to nonexistent database replica files.Match up the
device description lines to determine which disk drive has
problems.
In general, the procedure is a three-step process:
1. Issue a metadb -i command to find out which replicas to
remove.
2. Issue a metadb -d command to do the actual deletion.
3. Issue another metadb -i command to verify the deletion.
If the faulty disk were c0t1d0, for example, the replica deletion might
resemble the following series of commands and responses:
# metadb -i
flags
first blk block count
a m p luo 16
1034
1034
1034
1034
1034
1034
1034
/dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s1
/dev/dsk/c1t4d0s1
/dev/dsk/c1t4d0s1
/dev/dsk/c1t4d0s1
a
a
a
a
a
a
p luo 1050
p luo 2084
p luo 3118
p luo 16
p luo 1050
p luo 2084
# metadb -d c1t4d0s1
# metadb -i
flags
first blk block count
a m p luo 16
1034
1034
1034
1034
/dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s1
a
a
a
p luo 1050
p luo 2084
p luo 3118
1. Remove the faulty disk drive.
Step 5: Replace the
faulty disk drive
3
2. Install the new disk drive into the same slot the faulty drive came out
of. For installation instructions, see the documentation that came
with the disk drive or the Lucent hardware installation manual.
3. Partition the new disk using the formatcommand. See
“Partitioning disks with the format command” on page 76. Make
sure you partition the new disk drive!
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
73
Replacing a faulty disk
1. Recreate the primary boot disk replicas you removed earlier by
entering the following command:
Step 6: Recreate
the state database
replicas
3
# metadb -a -c4 -f /dev/rdsk/devname
2. Recreate the secondary boot disk replicas you removed earlier by
entering the following command:
# metadb -a -c3 -f /dev/rdsk/devname
3. Verify that the replicas were created:
# metadb -i
The system lists the state database replicas currently on the system.
The following, for example, shows three replicas on c0t4:
flags
first blk block count
a m p luo 16
1034
1034
1034
1034
1034
1034
1034
/dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s1
/dev/dsk/c1t4d0s1
/dev/dsk/c1t4d0s1
/dev/dsk/c1t4d0s1
a
a
a
a
a
a
p luo 1050
p luo 2084
p luo 3118
p luo 16
p luo 1050
p luo 2084
In the above example, there are 4 replicas listed for the primary boot
disk (c0t0d0s1), and 3 replicas listed on the secondary disk
(c1t4d0s1)
!
WARNING:
Do not try to reboot a system when there are fewer than two state
database replicas.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
74
Replacing a faulty disk
1. Enter a metainit command to reinitialize the submirror. For example:
Step 7: Reattach
the submirrors
3
# metainit d20
#
If you receive an “already set up” message, ignore it.
2. Reattach the submirror by issuing a metattachcommand. For
example:
# metattach d21 d20
#
If the disk you are replacing is a boot disk, be sure to reattach
both the submirrors of which it is a member. For example:
# metattach d13 d12
# metattach d21 d20
You may delay this step until a more convenient time.
Step 8: Reboot the
system (boot disks If the replaced disk is a boot disk, you will have to reboot the system at
your convenience, typically during low busy hours. The reboot is
necessary because the /etc/system file was modified when the state
only)
3
database replicas were recreated.
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
75
State Database Replicas
State Database Replicas
3
1. Verify that the /etc/opt/SUNWmd/md.tab file is correct (see
Setting up replicas
3
“Examples of valid system files” on page 79).
2. Enter the metadbcommand:
# metadb -a -c4 -f /dev/dsk/c0t0d0s1
# metadb -a -c3 -f /dev/dsk/c0t1d0s1
Sometimes replicas may have to be replaced. A replica can become
corrupted, for example, and in that case needs to be removed and then
recreated. The procedure to do that is as follows:
Replacing replicas
3
1. Remove all existing replicas with the following command:
# metadb -d -f /dev/dsk/c0t0d0s1
!
WARNING:
Do not reboot the system after removing replicas! With replicas gone,
the system may not boot!
2. Recreate two replicas on the same partition:
# metadb -d -c4 -f /dev/dsk/c0t0d0s1
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
76
Partitioning disks with the format command
Partitioning disks with the format command
3
To use the format command to partition a disk, do the following steps:
1. Enter: # format
A menu of disks displays. You are asked to select one.
2. Enter the menu number of the disk to be partitioned. A list of
commands displays, followed by the format> prompt.
3. Enter: format> partition
The partition> prompt displays.
4. Enter: partition> print
The partition table displays and partition>returns.
5. Enter the number of the partition to be configured. The system
begins a series of prompts for partitioning information. Answer
according to the CMS version, disk type (boot or nonboot), and disk
size you are partitioning.
Partitioning (Note: Never change the default size of the overlap slice!)
CMS R3V8
9.1-GB Disk
SCSI (E3000)
and FC-AL (E
CMS R3V8
4.2-GB Disk
3500)
Disk
Type
Size Starting Size Starting
(cyl.) Cylinder (cyl.) Cylinder
Part
Tag
Flag
Boot
0
boot disk 1: / or root
boot disk 2: unassigned
wm
1023
0
616
0
1
2
unassigned
overlap or backup
unassigned
swap
wm
wm
wm
wm
wm
wm
wm
wm
wm
7
3880
1879
971
0
1023
7
4924
3716
585
0
616
0
0
623
4339
0
3
1030
4
2909
5-7
0
unassigned
unassigned
unassigned
overlap or backup
unassigned
0
0
2
0
0
Nonboot
2
2
0
1
3878
3880
0
4922
4924
0
2
2
0
3-7
0
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
77
Partitioning disks with the format command
6. Enter: partition> print
The partition table displays and the partition>prompt returns.
Compare the display to the Partitioning table to make certain you
have repartitioned the disk properly. If not, repeat step 5.
7. Enter: partition> label
The system responds Ready to label disk, continue?.
8. Enter: y
9. The partition>prompt returns.
10. Enter: partition> q
The format> prompt displays.
11. To select another disk to partition, enter: format> disk
and return to item 2.
To quit, enter: format> q and continue with the next step.
12. When the system prompt returns, verify the partitioning.
You can verify the exact partitioning of the new disk with an
olds -mirrored -check_disks command. For example:
# olds -mirrored -check_disks c0t2d0
scsi=c1
number of external scsi controllers with disks
is = 1
number of disks is = 6
valid disks are c0t2d0
disk:c0t2d0 is partitioned ok
#
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
How to tell whether your mirrored system is standard
78
How to tell whether your mirrored system is standard
3
To tell whether mirroring was installed as a “standard” or “nonstandard”
configuration, you can do one of two things. Either:
a. Enter the command: # metastat d11 d12
b. Edit the /etc/opt/SUNWmd/md.tab file
Examine the command output or the contents of the file. You are looking
for the d11 and d12 metadevices and their constituent disk drives.
Standard mirroring—mirroring that was installed at the factory or
upgraded to a standard factory configuration—will have the structure
indicated in the following table:.
Root Metadevice Device Names
Metadevice
Device Name
metadevice d11
c0t0d0
metadevice d12 c0t1d0 (E3000)
c1t4d0 (E3500)
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
79
Examples of valid system files
Examples of valid system files
3
Valid vfstab files
3
Valid vfstab file for a non mirrored R3V8 CMS system:
___________________________________________________________________
#device
#to mount
#
device
to fsck
mount
point
FS
fsck
mount mount
type pass at boot options
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2
/usr
/dev/fd fd
/proc
-
ufs
1
-
-
-
1
yes
no
no
no
no
-
-
-
-
-
-
fd
/proc
-
-
proc
swap
ufs
tmpfs -
ufs
/dev/dsk/c0t0d0s4 -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 /
swap
/dev/md/dsk/d19
-
/tmp
yes
yes
/dev/md/rdsk/d19 /cms
2
Valid vstab file for an R3V8 CMS system with mirrored disks:
___________________________________________________________________
#device
#to mount
device
to fsck
mount
point
FS
fsck
mount mount
type pass at boot options
#
fd
/proc
/dev/md/dsk/d17
/dev/md/dsk/d13
/dev/md/dsk/d21
-
-
-
/dev/fd fd
-
-
-
1
2
no
no
no
no
yes
-
-
-
-
-
/proc
-
proc
swap
ufs
/dev/md/rdsk/d13 /
/dev/md/rdsk/d21 /cms
ufs
Download from Www.Somanuals.com. All Manuals Search And Download.
Maintaining Mirrored Systems
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
80
Examples of valid system files
Valid md.tab files
3
Valid md.tab file for a 3 disk non mirrored R3V8 CMS system:
____________________________________________________
#state database replicas
mddb00 c0t0d0s1
mddb01 c0t1d0s0
#/cms
d19 3 1 /dev/rdsk/c0t0d0s3 1 /dev/rdsk/c0t1d0s1 1 /dev/rdsk/c1t0d0s1
d21 -m d19
____________________________________________________
Valid md.tab file for a 4 disk mirrored R3V8 CMS system:
____________________________________________________
#state database replicas
mddb00 c0t0d0s1
mddb01 c1t4d0s1
mddb02 c0t1d0s0
mddb03 c1t5d0s0
#metaroot
d11 1 1 c0t0d0s0
d12 1 1 c1t4d0s0
d13 -m d11
#/cms
d19 2 1 /dev/rdsk/c0t0d0s3 1 /dev/rdsk/c0t1d0s1
d20 2 1 /dev/rdsk/c1t4d0s3 1 /dev/rdsk/c1t5d0s1
d21 -m d19
____________________________________________________
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
81
Solstice DiskSuite problems
4
Troubleshooting
4
This chapter contains procedures for troubleshooting problems
you may experience while installing or maintaining systems
that use disk mirroring.
Solstice DiskSuite problems
4
If you run out of space on the /(root) file system—while trying to install
Solaris patches, for example—you probably installed your /cms swap file
on root. Do the following to recover:
The root filesystem
runs out of space
during a system
install
1. Unmount /cms: umount /cms
4
2. Enter the command: ls -l /cms
If the output of that command lists a swap file, do the following:
a. Enter: mount /cms
Remounts /cms.
b. Enter: df -k
Verifies that space is available.
When using metadetach and metattach to detach and then reattach a
submirror, it may take a long time—sometimes hours—for resync to
complete. You cannot do any maintenance (adding or replacing disks and
so on) while the resync is in progress. That behavior is normal. Try again
later.
Excessively long
resync
4
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
82
The system fails to recognize all disk drives
The system fails to recognize all disk drives
4
If the system should fail to recognize all disk drives, do the following:
1. Reboot the system by entering the following command:
# /usr/sbin/shutdown -y -g0 -i0
The system reboots and displays the okprompt:
2. Turn off the system unit.
3. Turn off all external devices starting with the system monitor and
working toward the device farthest from the system unit.
4. Check all disk drive connections to make sure they are secure.
5. Turn on the power to the system components in the opposite order
in which you powered them off. Power on the SCSI devices first,
beginning with the device at the end of the chain and working your
way toward the system unit. Then power on other devices, again
working your way toward the system unit.
Finally, power on the system unit itself and the system monitor.
When you power on the system unit, the system begins to boot.
Interrupt the boot by pressing Stop-A. The system displays the ok
prompt.
6. To verify that the system sees all the disk devices, including any new
drives, enter one of the following commands:
Enterprise 3000
Enterprise 3500
ok probe-scsi-all
ok probe-fcal-all
If you receive a “This command may hang the system....”
message, respond with the following steps:
a. Enter: n (to prevent the probe from continuing).
b. Enter: setenv auto-boot? false
(to prevent a reboot when you do the next command)
c. Enter: reset-all (it may take a minute to complete).
Now repeat the probe-scsi-allor probe-fcal-all.
The program responds to the probe as shown below. The specific
response, of course, differs depending on the platform.
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
83
The system fails to recognize all disk drives
/sbus@3,0/SUNW,fas@3,8800000
Target 0
Unit 0 Disk SEAGATE ST34371W
SUN4.2G74629737K6748
Copyright(c) 1997 Seagate
All rights reserved
.
.
.
Target 6
Unit 0 Disk Removable Read Only device
TOSHIBA XMS5701TASUN12XCD099704/09/97
ok
7. IMPORTANT! If you had to do a reset-allcommand, reset
autoboot? to true by entering the following command:
ok setenv auto-boot? true
!
WARNING:
Failure to reset autoboot? before the next reboot will cause the
reboot to stop at the boot prompt instead of proceeding through the
normal boot-up.
8. When you have verified that the system is recognizing all its disk
drives, reboot the system with a boot -rcommand and log in as
the root user. For example:
ok> boot -r
.
.
.
console login: root
Password:
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
84
Fixing “needs maintenance” messages
Fixing “needs maintenance” messages
4
On rare occasions mirrors may get severely out of sync. An extreme
example is when a disk is removed from a powered system without first
being detached with a metadetachcommand. The situation is indicated
by the appearance of a Needs maintenance message in a State line of a
metastatresponse. For example:
# metastat
d13: Mirror
Submirror 0: d11
State: Needs maintenance
Submirror 1: d12
State:
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 2209680 blocks
d11: Submirror of d13
State: Needs maintenance
Invoke: metareplace d13 c0t0d0s0
Size: 2209680 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c0t0d0s0
0
No
Okay
. . .
#
In such situations the metareplacecommand can force the recovery of
the failed slice. The Invoke line of the metastatresponse leads the way.
Given the response above, for example, you would enter the following:
# metareplace -e d13 c0t0d0s0
# metastat
d13: Mirror
Submirror 0: d11
State: Resyncing
Submirror 1: d12
State: Needs maintenance
. . .
#
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
85
Boot problems
Boot problems
4
Generally speaking, most boot problems are the result of one of two
problems: either you are trying to boot from the wrong device or the
primary boot device is not available. This section suggests remedies for
those situations.
If you are trying to boot from the wrong device, you must change the boot
device. Here is a quick way to do that:
Trying to boot from
the wrong device
4
1. Reboot: # /usr/sbin/shutdown -y -g0 -i0
2. From the okprompt enter: ok> printenv boot-device
The system responds: boot-device <disk>
where <device> is either the word disk, indicating the primary
boot device, or the word bootdevice2, indicating the alternate
boot device. (This may be followed by additional device names.)
To change the boot device, enter the following command:
ok setenv boot-device bootdevice2
- or -
ok setenv boot-device disk
You should have set up bootdevice2 as the alternate boot device
when you installed disk mirroring.
If the primary boot device is not available, you must change to the
secondary boot device.
Primary boot
device is not
available
Changing to the secondary boot device is a matter of entering, from the
okprompt, the following command:
4
ok> setenv boot-device bootdevice2
You should have set up bootdevice2 as the alternate boot device when
you installed mirroring.
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
86
Boot problems
Problem: The system takes a long time to come back up after a reboot
and seems to stop at the configuring multicast point.
Excessive reboot
time
4
Possible workaround: The Enterprise 3000, by default, tries to configure
itself as a router/gateway. To avoid that problem, execute the following
command before rebooting:
touch /etc/notrouter
That command tells the startup scripts that this system should not be
configured as a router.
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
87
Log files
Log files
4
A disk-mirrored system contains the following system log files:
File Name
Description
/var/adm/messages Contains all console error messages, including
hardware messages. (For an example of how
to use this log to detect a bad disk drive, see
Replacing Faulty Disks” in Chapter 3.)
/olds/elog
Contains olds error messages. Most messages
are logged when setting up the system or when
making changes to the disk setup.
If a log seems to indicate a problem, it may take an experienced
troubleshooter to determine the nature of the problem.
The logs are checked each night by the chkDisks crontab, which is able
to determine whether any potential or actual drive problems have been
logged. The results of the determination are logged to /olds/elog and
mailed to the root user.
If chkDisks is not running each night, verify that it is available in the /olds
directory by entering the following command:
# ls /olds/chkDisks
If the file is not found, load the CMS CD into the CD-ROM drive and enter
the following commands:
# cp /cms/rdonly/olds_install/chkDisks /olds
# chmod +x /olds/chkDisks
To test chkDisks, simply execute it by entering the following command:
# /olds/chkDisks
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
88
Error messages
Error messages
4
The table that follows lists and explains error messages you can receive
related to Solstice DiskSuite and disk mirroring. The messages are
presented in alphabetical order, ignoring special characters and
replacement strings. (For example, you would find the message
“filename restored”in alphabetical order by the word restored.)
Error Messages
Message: All data on cms filesystems will be removed
and filesystems will be unmirrored, are
you sure?
Explanation: Standard warning message for olds -mirrored
-cleanupcommand.
Response: Always use an olds -mirrored -cleanupwith
caution, keeping in mind that a backup will be needed to
recover any CMS data in the /cms filesystem. Use the
command only to set up your system from scratch.
Message: Attempt an operation on a submirror that
has erred components.
Explanation: Component needs maintenance before the operation can
be carried out.
Response:
1. Execute a metastatcommand.
2. Examine the output for the Invoke line and execute
the command named in that line. For example:
# metareplace -e d13 c0t0d0s0
3. Reboot system.
Message: CDROM must not be present, remove CD
Explanation: In order for the command to execute, the CDROM drive
must be empty.
Response:
1. Enter the command: eject cdrom
2. Remove the CD from the drive tray.
3. Close the drive tray.
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
89
Error messages
Error Messages (Continued)
Message: component is attached
metattach: hostname: d21: growing of
metadevice delayed
Explanation: Submirrors are out of sync.
Response: Enter the command: metasync d21
This command effectively resyncs submirrors.
Message: device: devicename cannot be setup or does
not exist
Explanation: The device named is a CD-ROM drive or is not available
and will not be used in the Solstice DiskSuite setup.
Response: Verify that the device should not be used.
Message: device: devicename will not be used
Explanation: The device named is a CD-ROM drive or is not available
and will not be used in the Solstice DiskSuite setup.
Response: If the device is c0t6d0, it is a CD-ROM drive and no
further action is required. If the device is a disk, verify the
sanity of the message: check device availability, for
example, or use a formatcommand to view partition
sizes, etc.
Message: disk diskname already setup, exiting...
Explanation: You are trying to attach a disk that is already attached or
is part of the base configuration. No response is
necessary.
Message: disk: diskname slice 1 is not partitioned
correctly
Explanation: Disk is partitioned incorrectly, or the olds script was run
without the -mirrored option.
Response: Try rerunning the command with the -mirrored option. If
that doesn’t work, repartition the disk.
If diskname is the primary boot disk, you must reload
Solaris, repartitioning the disk correctly in the process. If
diskname is not the primary boot disk, you can repartition
it with the Solaris formatcommand.
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
90
Error messages
Error Messages (Continued)
Message: /etc/system has been updated since the
last reboot. CMS cannot run without an up-
to-date /etc/system file.
Explanation: /etc/system can change when a particular Solaris patch is
applied to the system or when state database replicas are
removed and re-added during a boot disk replacement.
Response: Reboot the system.
Message: Failed activating new replicas, replicas
already active, or a second disk does not
exist
Explanation: The system does not have all the replicas it needs to be
functional (it needs at least three), or the replicas you
attempted to create already exist.
Response: Use metadb -i to verify that at least three replicas are
active. If not, add replicas (see Chapter 3).
Message: Failed: disk cxtyd0 or cx’ty’d0 already
setup, exiting ...
Explanation: You are trying to set up a disk that is already a part of the
configuration. You probably mistyped the name.
Response: Set up the disk with the appropriate device name.
Message: Illegal Request, cannot setup
Response: Check your hardware configuration and your usage of the
oldscommand.
Message: in order to attach disk, /cms must already
be mounted, exiting...
Response: Mount cms with this command: mount /cms
Message: ksh: command: not found
Explanation: Command does not exist or is not in the execution path.
Response: Use the entire path—as pathname/command—or add it
to the execution path with the following command:
# export PATH=$PATH:pathname
The path of the metastat, metadb, metattach, and
metadetach commands is /usr/opt/SUNWmd/sbin; the
path of the olds command is /olds
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
91
Error messages
Error Messages (Continued)
Message: metadb: hostname: cxtyd0sz has a
metadevice database replica
Explanation: The slice named in the message already has a replica.
Response: If you really need to add another replica, choose a
different slice.
Message: metadetach: systemname: d21: resync in
progress
Explanation: You cannot detach a metadevice while a resync is in
progress.
Response: Try again later. To find out how far along the resync has
progressed, enter a metastatcommand.
Message: must have at least 2 databases
Response: Add a state database replica and retry the command.
Message: No disks found! Internal error.
Response: Add the state database replicas and retry the command.
If the message persists, telephone the National Customer
Care Center (1-800-242-2121) or contact your Lucent
distributor or customer representative.
Message: No more space on device
Explanation: Occurs during a restore cpio command:
cpio -icmudf -C10240 -I input-device -M
"Enter tape.. " .."/cms*..
The “/cms” entry has probably been mistyped.
Response: Remove the /cms directory and all files and try again.
Message: command: not found
Explanation: Command does not exist or is not in the execution path.
Response: Use the entire path—as pathname/command—or add it
to the execution path with the following command:
# export PATH=$PATH:pathname
The path of the metastat, metadb, metattach, and
metadetach commands is /usr/opt/SUNWmd/sbin; the
path of the olds command is /olds
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
92
Error messages
Error Messages (Continued)
Message: panic: vfs_mountroot: cannot mount root
rebooting...
resetting....
Explanation: The system is misconfigured.
Response: There are two possible causes:
1. You attempted to boot from a nonbootable device.
Check the device name and try again. The alternate
boot device may be set up incorrectly.
2. You failed to reboot after mirroring root
(olds -mirrored -setroot), leaving the system
unstable. In that case, do the following:
a. Boot from the CD.
b. Mount /dev/dsk/c0t0d0s0 /a (or whatever
partition is your root partition).
c. Remove Solstice DiskSuite entries from
/a/etc/system (i.e. everything between tags
"mddb ...")
d. Remove /a/etc/opt/SUNWmd/md* files, i.e.:
rm /a/etc/opt/SUNWmd/md*
e. Replace /dev/md/rdsk/d21 entries with
/dev/rdsk/c0t3d0s0 (or whatever your boot
device name is).
f. Boot: /usr/sbin/shutdown -y -g0 -i6
g. If the system still refuses to reboot, reload
Solaris.
Message: filename restored from filebackup
Explanation: The action failed, and the md.tab file was restored from
the previous version. Consequently, the configuration files
reflect the previous system setup.
Response: Determine the cause of the problem and try again.
Message: resync in progress
Response: The command entered cannot be executed because the
mirrors are currently being resynched. Try again later.
You can tell whether a resync is in progress by entering a
metastatcommand.
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
93
Error messages
Error Messages (Continued)
Message: stale databases
Response: The state database contains old information. Recreate
(see “Recreating the Replicas and Reattaching the
Disk” in Chapter 3).
Message: state database information not found,
DiskSuite must not be installed
Response: Install and set up Solstice DiskSuite before doing this
task.
Message: Submirror too small to attach
Explanation: The submirrors d11 and d12 (or d19 and d20) do not
match. You have forgotten to label one or more disks, or
you have partitioned one or more disks incorrectly.
Response:
1. Determine the specific cause of the message by
examining, via the formatand partition
commands, the disks involved.
2. If the message was a response to a metattach
d13 d12command, enter the following commands:
# metaclear d12
# metadb -d -f /dev/dsk/c0t<x>d0s1
(where <x> is the second boot disk)
3. If the message was a response to a metattach
d21 d20command, enter the following command:
# metaclear d20
4. Label or repartition the disks in error, as needed.
5. Restart the mirror upgrade process. Note that you
need not recreate the md.tab entries the second
time through the procedure.
Message: syntax error
Response: Check the syntax and usage of the command. Reenter
the command, correcting syntax errors you have made.
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
94
Error messages
Error Messages (Continued)
Message: The disk is not recognized by cms.
Explanation: The disk is either not a standard Sun disk drive, or is
larger than 4.2 gigabytes.
Response: Replace the disk with a standard Sun disk drive of not
more than 4.2 gigabytes capacity.
Message: The DiskSuite Software must be installed
to run this script.
Response: Install Solstice DiskSuite software before attempting to
run this script.
Message: The file filename could not be restored.
Explanation: The previous action failed, and the md.tab or vfstab
file could not be copied back. The existing files may not
accurately reflect the system environment.
Response: Check the file and repair it if necessary. See “How to Set
Up State Database Replicas” in Chapter 3.
Message: The /cms filesystem needs to be mounted
Explanation: /cms must be mounted for the command to work.
Response: Mount /cms with the command: mount /cms
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
95
Error messages
Error Messages (Continued)
Message: This command may hang the system if a Stop-
A or halt command has been executed. Please
type reset-all to reset the system before
executing this command. Do you wish to
continue?
Response:
1. Enter: N
(to prevent the probe from continuing).
2. Enter: setenv auto-boot? false
(to keep the system from rebooting)
3. Enter: reset-all
The reset may take a minute to complete. Once it
does, you may do the probe-scsi or probe-scsi-all
and perform any other boot prom level diagnostics.
4. IMPORTANT: Before you reboot again, enter:
setenv auto-boot? true
Failure to do so will cause the reboot to stop at the
boot prompt.
Message: touch: /cms/db/unix_start cannot create
Explanation: A CMSADM backup was done when CMS was still
running. An attempt is made to restart cms, but cms files
are not yet available.
Response: No response required. The message will disappear after
you have restored and migrated CMS.
Message: trying to add two new disks, but a mirrored
setup needs to be in place.
Explanation: You have tried to do an olds -mirrored -setupon
an unmirrored system.
Response: If you want a mirrored system, set it up as one. See the
appropriate section in Chapter 2 for instructions on how to
set up a mirrored system.
Message: Unbalanced configurations not supported.
Explanation: You tried to set up a system with an odd number of disk
drives, or you tried to add disks without having rebooted
via a “boot -r” command.
Response: If necessary, add another disk drive to make the drive
count even. Then reboot the system with “boot -r”.
Download from Www.Somanuals.com. All Manuals Search And Download.
Troubleshooting
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
96
Error messages
Error Messages (Continued)
Message: Usage: olds -mirrored -check_disks|
-mirrored -mk_files|-metadbs|-cleanup|
-mirrored -setup [disk name]
Explanation: You have mistyped a command.
Response: Retry the command. See Chapter 3 for information about
olds command syntax.
Message: Warning: inode blocks/cyl group (230 >=
data blocks (135) in lost cylinder group.
This implies 2160 sector(s) cannot be
allocated.
Explanation: Some sectors will not be used by the filesystem. This is
just a warning; the filesystem should be fine.
Message: Warning: script does not support this
configuration, configure manually
Explanation: The olds script is supported only with the hardware
described in Chapter 1.
Response: Verify that you have appropriate hardware. If you need
extra disks for purposes other than mirroring CMS, you
may attach them after disk mirroring has been installed
and has been verified to be running correctly.
Message:
x25netd: failed to open
driver /dev/hihx (Bad file number [n] )
Response: Enter the following command:
/cms/toolsbin/lnSBusdev
Message: You must be root in order to run this
command.
Explanation: You are not logged in as the root user, but you must be in
order to run the command.
Response: Log in as root and retry the command.
Message: You need to have at least one disk setup,
before attaching one.
Response: Install and configure Solstice DiskSuite before attempting
this task.
Download from Www.Somanuals.com. All Manuals Search And Download.
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
97
Index
disk partitions . . . . . . . . . . . . . . . . . . . . 1
Symbols
DiskSuite
/cms mirror . . . . . . . . . . . . . . . . . . . . . .5
see Solstice DiskSuite
A
alternate boot device
E
creating. . . . . . . . . . . . . . . . . . . . 26, 35
testing . . . . . . . . . . . . . . . . . . . . . . 27
using . . . . . . . . . . . . . . . . . . . . . . . 39
error messages . . . . . . . . . . . . . . . . .88–96
F
B
faulty disk
backing up
CMSADM backup . . . . . . . . . . . . . . 41–42
CMSADM restore . . . . . . . . . . . . . . 43–44
boot device
creating alternate. . . . . . . . . . . . . . . 26, 35
testing alternate . . . . . . . . . . . . . . . . . 27
using the alternate . . . . . . . . . . . . . . . . 39
boot devices. . . . . . . . . . . . . . . . . . . . . 63
boot disk
device designations . . . . . . . . . . . . . . . 28
boot disk designations . . . . . . . . . . . . . . . 78
boot problems. . . . . . . . . . . . . . . . . . . . 85
H
I
increasing system capacity . . . . . . . . . . . . .12
installation procedures, factory . . . . . . . . .28–37
C
K
capacity, system . . . . . . . . . . . . . . . . . . 12
chkDisks . . . . . . . . . . . . . . . . . . 36, 40, 87
chunks . . . . . . . . . . . . . . . . . . . . . . . .2
CMSADM backup . . . . . . . . . . . . . . . . 41–42
CMSADM restore . . . . . . . . . . . . . . . . 43–44
concatenated metadevice. . . . . . . . . . . . . . .2
capacity . . . . . . . . . . . . . . . . . . . . . .3
cron file . . . . . . . . . . . . . . . . . . . . . 27, 36
L
Enterprise 3000. . . . . . . . . . . . . . . . . . 7
Enterprise 3500. . . . . . . . . . . . . . . . . . 8
log files. . . . . . . . . . . . . . . . . . . . . . . .87
D
M
d11 metadevice . . . . . . . . . . . . . . . . . . . .6
d12 metadevice . . . . . . . . . . . . . . . . . . . .6
d17 metadevice . . . . . . . . . . . . . . . . . . . .6
d19 metadevice . . . . . . . . . . . . . . . . . . . .5
d20 metadevice . . . . . . . . . . . . . . . . . . . .5
d21 metadevice . . . . . . . . . . . . . . . . . . . .5
disk devices . . . . . . . . . . . . . . . . . . . . . 28
disk drives
adding . . . . . . . . . . . . . . . . . . . . 63–65
recognition problem . . . . . . . . . . . . . . . 82
replacing . . . . . . . . . . . . . . . . . . . 69–74
restoring . . . . . . . . . . . . . . . . . . . . . 49
disk mirroring
definition . . . . . . . . . . . . . . . . . . . . . 1
mirror disks
definition . . . . . . . . . . . . . . . . . . . . . 1
maintaining . . . . . . . . . . . . . . . . . . . .39
required hardware . . . . . . . . . . . . . . . . 8
required software . . . . . . . . . . . . . . . . . 9
definition . . . . . . . . . . . . . . . . . . . . . .1
factory installation . . . . . . . . . . . . . . 28–37
upgrade procedure. . . . . . . . . . . . . . 11–27
Download from Www.Somanuals.com. All Manuals Search And Download.
CentreVu CMS Release 3 Version 8 Disk-Mirrored Systems
98
N
T
needs maintenance messages . . . . . . . . . . . 84
tape drives
st.conf file. . . . . . . . . . . . . . . . . . . . . 43
P
partitioning
procedure . . . . . . . . . . . . . . . . . . . . 16
partitioning disks . . . . . . . . . . . . . . . . . . 76
partitioning, disk . . . . . . . . . . . . . . . . . . 56
printing vfstab. . . . . . . . . . . . . . . . . . . . 41
U
upgrading
and increasing system capacity . . . . . . . . . 12
R
V
replacing a faulty disk. . . . . . . . . . . . . . 69–74
replicas
replacing . . . . . . . . . . . . . . . . . . . . . 75
setup . . . . . . . . . . . . . . . . . . . . . 75–76
restoring a CMSADM backup. . . . . . . . . . 43–44
resync problem . . . . . . . . . . . . . . . . . . . 81
root mirror. . . . . . . . . . . . . . . . . . . . . . . 6
S
slices . . . . . . . . . . . . . . . . . . . . . . . . . 1
software, required. . . . . . . . . . . . . . . . . . . 9
Solstice DiskSuite. . . . . . . . . . . . . . . . . . . 1
installation problems . . . . . . . . . . . . . . . 81
setup scripts . . . . . . . . . . . . . . . . . . . 30
st.conf file . . . . . . . . . . . . . . . . . . . . . . 43
standard configuration . . . . . . . . . . . . . . . 78
state database
definition . . . . . . . . . . . . . . . . . . . . . . 3
state database replicas . . . . . . . . . . . . . . 3
state database replicas
replacing . . . . . . . . . . . . . . . . . . . . . 75
setup . . . . . . . . . . . . . . . . . . . . . 75–76
submirrors . . . . . . . . . . . . . . . . . . . . . . 3
Download from Www.Somanuals.com. All Manuals Search And Download.
How Are We Doing?
Document Title: CentreVu Call Management System Release 3 Version 8
Disk-Mirrored Systems
Document No.: 585-210-940 Issue 1
Date: December 1999
Lucent Technologies welcomes your feedback on this document. Your comments are of great value in helping us
to improve our documentation.
1. Please rate the effectiveness of this document in the following areas:
Excellent
Good
Fair
Poor
Not Applicable
Ease of Use
Clarity
///////////////////////
///////////////////////
///////////////////////
///////////////////////
///////////////////////
///////////////////////
///////////////////////
Completeness
Accuracy
Organization
Appearance
Examples
Illustration
Overall Satisfaction
///////////////////////
2. Please check the ways you feel we could improve this document:
❒ Improve the overview/introduction
❒ Improve the table of contents
❒ Improve the organization
❒ Include more figures
❒ Make it more concise/brief
❒ Add more step-by-step procedures/tutorials
❒ Add more troubleshooting information
❒ Make it less technical
❒ Add more examples
❒ Add more detail
❒ Add more/better quick reference aids
❒ Improve the index
Please provide details for the suggested improvement. __________________________________
____________________________________________________________________________
3. What did you like most about this document?
____________________________________________________________________________
____________________________________________________________________________
4. Feel free to write any comments below or on an attached sheet.
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
If we may contact you concerning your comments, please complete the following:
Name: _______________________________ Telephone Number: (_____)__________________
Company/Organization: _____________________________ Date: ________________________
When you have completed this form, please fax to +1-303-538-1741.
Download from Www.Somanuals.com. All Manuals Search And Download.
Download from Www.Somanuals.com. All Manuals Search And Download.
|