Contents
How to configure Raid-1 on SUN Solaris
Anzeigen der vorhandenen Disks:
# format
Erstellen eines neuen Raid1 Volumens:
1. Booten von CD in den singeluser mode damit Drives nicht mehr gemountet sind:
ok> boot cdrom -s
2. Erstellen des Volumens:
raidctl -c c1t0d0 c1t1d0
3. Abfragen des Status mit raidctl:
# raidctl
RAID Volume RAID RAID Disk
Volume Type Status Disk Status
------------------------------------------------------
c1t0d0 IM RESYNCING c1t0d0 OK
c1t1d0 OK
Möglicherweise muss die Disk mit dem Command “format” neu gelabelt werden.
Zusätzliche Infos (Auszug aus man raidctl)
PACKAGE
SUNWcsu
NAME
raidctl RAID hardware utility
SYNOPSIS
raidctl [-f] -c primary_disk secondary_disk
raidctl [-f] -c -r 1 primary_disk secondary_disk
raidctl [-f] -c -r 0 disk1 disk2 [disk3...disk8]
raidctl [-f] -d volume
raidctl [-f] -F filename controller…
raidctl [-f] -l [controller…]
OPTIONS
The following options are supported:
-c disk1 disk2
Create a mirror using disk1 and disk2. Replace the contents of disk2 with
the contents of disk1. Specify disk1 and disk2 in canonical form, for
example, c0t0d0.
When you create a a RAID volume, the RAID volume assumes the identity of
the first target in the disk pair (disk1). The second target (disk2)
disappears from the system. Therefore, the RAID volume appears as one disk.
To have a successful RAID creation, there must not already be a RAID
configuration present on the specified controller.
-d disk1
Delete the RAID volume specified as disk1.
Specify disk1 in canonical form, for example, c0t0d0.
-f
Force an update. Do not prompt.
-l [controller]
List the system's RAID configuration. If controller is specified, list RAID
configurations for controller.
Output from the -l lists the following information:
RAID Volume
Displays logical RAID volume name.
RAID Status
Displays RAID status as either RESYNCING (disks are syncing), DEGRADED
RAID is operating with reduced functionality), OK (operating optimally),
or FAILED (non-functional). RAID Disk
Displays RAID disk name.
Disk Status
Displays disk status as either OK or FAILED