Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
/usr/sbin/metadb -a -f c2t4d0s3
/usr/sbin/metadb -a c2t3d0s3
/usr/sbin/metadb -a c2t2d0s3
/usr/sbin/metadb -a c2t1d0s3
RAID 0 (concatenation)
# TO show
metastat d0
metstat -p
# Delete volume d0
umount /concat
/usr/sbin/metaclear d0
RAID 0 (striped)
# Delete volume d0
umount /stripe
/usr/sbin/metaclear d0
RAID 1 (mirroring)
# Offline submirror
/usr/sbin/metaoffline -f d2 d0
# Online submirror
/usr/sbin/metaonline d2 d0
# Delete volume d2
umount /mirror
/usr/sbin/metaclear d2 ---->only parent
/usr/sbin/metaclear -r d2 ---->parent with submirrors
# Delete volume d0
/usr/sbin/metaclear d0
# Delete volume d1
/usr/sbin/metaclear d1
# Resync volume
/usr/sbin/metasync -p d5
# Resync volume
/usr/sbin/metasync d5
# Delete volume d5
/usr/sbin/metaclear d5
1. Create a RAID-0 volume for the file system you want to mirror.
2. Create a second RAID-0 volume to contain the second submirror of the RAID-1 volume.
3. Create a one-way mirror using the RAID-0 volume that contains the file system to be
mirrored.
4. Use the metaroot command to update the system's configuration, as this is a root (/)
mirror.
5. Reboot your system, as this is a root (/) mirror.
6. Attach the second submirror to the file system mirror.
7. Record the alternate boot path that is used in the event of a failure of the primary
submirror, as this is a mirror of the root (/) file system.
2. Because this is a root (/) file system mirror, run the metaroot command to update the
/etc/vfstab and etc/system files.
# metaroot /dev/dsk/c0t0d0s0
# grep c0t0d0s0 /etc/vfstab
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
3. # init 6
4. # metaclear -r d0
d0: Mirror is cleared
d1: Concat/Stripe is cleared
# metaclear d2
d2: Concat/Stripe is cleared
5.If you changed your boot-device variable to an alternate boot path, return it to it's
original setting.
NOTE:
If you have a mirrored file system in which the first submirror attached does not start on cylinder 0, all
additional submirrors you attach must also not start on cylinder 0. If you attempt to attach a submirror
starting on cylinder 0 to a mirror in which the original submirror does not start on cylinder 0, the following
error message is displayed:
can't attach
labeled submirror to an unlabeled mirror