- 论坛徽章:
- 0
|
告别Tru64 UNIX,资料分享。
Add a mirror plex to the volume, specifying disks not used in the first data plex and preferably on different buses:
# volassist [-g disk_group] mirror volume init=active \
layout=nolog disks
The init=active option prevents LSM from synchronizing the plexes. Because the volume is new and contains no data yet, LSM does not need to synchronize the plexes.
The following example creates a mirror plex for the same volume, using disks dsk5, dsk6, and dsk7:
# volassist -g dg1 mirror vol2 init=active \
layout=nolog dsk5 dsk6 dsk7
例:volassist -g rootdg mirror usrvol2 init=active layout=nolog dsk11h
Note
Because two mirrors are used in the volume, 6 GB of free space is needed. Each mirror uses 3 GB of disk space.
The following are examples of the use of the volmirror command.
1. The following command mirrors the contents of the disk named disk01 to
any available space on any available disk. Subsequent calls to volas-
sist will cause created volumes to be mirrored by default.
volmirror -d yes disk01
2. The following command displays the current status of default mirror-
ing. It prints the string yes if mirroring is currently enabled or no,
if not.
volmirror -D
3. The following command mirrors any volumes on disk02 onto disk03.
volmirror disk02 disk03
#Make mirror
volassist mirror vol-dsk0e datadg02
普通DISK镜像记录
smf1:/>voldiskadm volmirror
Logical Storage Manager Support Operations
Menu: LogicalStorageManager/Disk
1 Add or initialize a disk
2 Encapsulate a disk
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
list List disk information
? Display help about menu
q Exit from menus
Select an operation to perform: 6
Mirror volumes on a disk
Menu: LogicalStorageManager/Disk/Mirror
This operation can be used to mirror volumes on a disk. These
volumes can be be mirrored onto another disk or onto any
available disk space. Volumes will not be mirrored if they are
already mirrored. Also, volumes that are comprised of more than
one subdisk will not be mirrored.
Enter disk name [<disk>,list,q,?] list
Disk group: rootdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN PUBPATH
dm rz16a rz16a nopriv 0 262144 /dev/rrz16a
dm rz16b rz16b nopriv 0 8387584 /dev/rrz16b
dm rz16d rz16d simple 1024 0 /dev/rrz16d
dm rz16g rz16g nopriv 0 8388608 /dev/rrz16g
dm rz17a rz17a nopriv 0 262144 /dev/rrz17a
dm rz17b rz17b nopriv 0 8387584 /dev/rrz17b
dm rz17d rz17d simple 1024 0 /dev/rrz17d
dm rz17g rz17g nopriv 0 8388608 /dev/rrz17g
Disk group: localdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN PUBPATH
dm rz16f rz16f simple 1024 54091616 /dev/rrz16f
dm rz17f rz17f simple 1024 54091616 /dev/rrz17f
Enter disk name [<disk>,list,q,?] rz16f
You can choose to mirror volumes from disk rz16f onto any
available disk space, or you can choose to mirror onto a specific
disk. To mirror to a specific disk, select the name of that disk.
To mirror to any available disk space, select "any".
Enter destination disk [<disk>,list,q,?] (default: any) list
Disk group: rootdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN PUBPATH
dm rz16a rz16a nopriv 0 262144 /dev/rrz16a
dm rz16b rz16b nopriv 0 8387584 /dev/rrz16b
dm rz16d rz16d simple 1024 0 /dev/rrz16d
dm rz16g rz16g nopriv 0 8388608 /dev/rrz16g
dm rz17a rz17a nopriv 0 262144 /dev/rrz17a
dm rz17b rz17b nopriv 0 8387584 /dev/rrz17b
dm rz17d rz17d simple 1024 0 /dev/rrz17d
dm rz17g rz17g nopriv 0 8388608 /dev/rrz17g
Disk group: localdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN PUBPATH
dm rz16f rz16f simple 1024 54091616 /dev/rrz16f
dm rz17f rz17f simple 1024 54091616 /dev/rrz17f
Enter destination disk [<disk>,list,q,?] (default: any) rz17f
The requested operation is to mirror all volumes on disk rz16f
Invalid argument index
in disk group localdg rz17f onto available disk space on disk
NOTE: This operation can take a long time to complete.
Continue with operation? [y,n,q,?] (default: y)
Mirror volume localvol01 ...
Mirroring of disk rz16f is complete.
Logical Storage Manager Support Operations
Menu: LogicalStorageManager/Disk
1 Add or initialize a disk
2 Encapsulate a disk
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
list List disk information
? Display help about menu
q Exit from menus
Select an operation to perform: q
Goodbye.
smf1:/>voldisk list
DEVICE TYPE DISK GROUP STATUS
rz128 sliced - - offline
rz129 sliced - - offline
rz136 sliced - - offline
rz137 sliced - - offline
rz16a nopriv rz16a rootdg online
rz16b nopriv rz16b rootdg online
rz16d simple rz16d rootdg online
rz16f simple rz16f localdg online
rz16g nopriv rz16g rootdg online
rz17a nopriv rz17a rootdg online
rz17b nopriv rz17b rootdg online
rz17d simple rz17d rootdg online
rz17f simple rz17f localdg online
rz17g nopriv rz17g rootdg online
Disk group: localdg
DG NAME GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN PUBPATH
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT ST-WIDTH MODE
SD NAME PLEX PLOFFS DISKOFFS LENGTH DISK-NAME DEVICE
dg localdg 1073724443.1195.smf1
dm rz16f rz16f simple 1024 54091616 /dev/rrz16f
dm rz17f rz17f simple 1024 54091616 /dev/rrz17f
v localvol01 fsgen ENABLED ACTIVE 54091616 SELECT -
pl localvol01-01 localvol01 ENABLED ACTIVE 54091616 CONCAT - RW
sd rz16f-01 localvol01-01 0 0 54091616 rz16f rz16f
pl localvol01-02 localvol01 ENABLED ACTIVE 54091616 CONCAT - RW
sd rz17f-01 localvol01-02 0 0 54091616 rz17f rz17f |
|