Solaris 9 Vxvm4.0 封裝、映象系統盤(轉)
Solaris 9 Vxvm4.0 封裝、映象系統盤(轉)[@more@]一、封裝系統盤
1、準備
若要減小封裝失敗的可能性,請確保磁碟:
包含少量不屬於任何分割槽的空閒空間(在磁碟的起始或末尾處)
包含兩個空閒分割槽
包含表示整個磁碟的 s2 片
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t1d0s2 auto:none - - online invalid
c1t2d0s2 auto:none - - online invalid
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t1d0
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037bdca50,0
1. c1t2d0
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037f07e9a,0
Specify disk (enter its number): ^D
2、封裝c1t1d0s2
# vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
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
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: 2
Encapsulate one or more disks
Menu: VolumeManager/Disk/Encapsulate
Use this operation to convert one or more disks to use the Volume Manager.
This adds the disks to a disk group and replaces existing partitions
with volumes. Disk encapsulation requires a reboot for the changes
to take effect.
More than one disk or pattern may be entered at the prompt. Here are
some disk selection examples:
all: all disks
c3 c4t2: all disks on both controller 3 and controller 4, target 2
c3t4d2: a single disk (in the c#t#d# naming scheme)
xyz_0 : a single disk (in the enclosure based naming scheme)
xyz_ : all disks on the enclosure whose name is xyz
Select disk devices to encapsulate:
[,all,list,q,?] list
DEVICE DISK GROUP STATUS
c1t1d0 - - online invalid
c1t2d0 - - online invalid
Select disk devices to encapsulate:
[,all,list,q,?] c1t1d0
Here is the disk selected. Output format: [Device_Name]
c1t1d0
Continue operation? [y,n,q,?] (default: y)
You can choose to add this disk to an existing disk group or to
a new disk group. To create a new disk group, select a disk group
name that does not yet exist.
Which disk group [,list,q,?] (default: rootdg) rootdg
There is no active disk group named rootdg.
Create a new group named rootdg? [y,n,q,?] (default: y) y
Use a default disk name for the disk? [y,n,q,?] (default: y) n
A new disk group will be created named rootdg and the selected
disks will be encapsulated and added to this disk group with
disk names that will be specified interactively.
c1t1d0
Continue with operation? [y,n,q,?] (default: y)
The following disk has been selected for encapsulation.
Output format: [Device_Name]
c1t1d0
Continue with encapsulation? [y,n,q,?] (default: y)
Enter disk name for c1t1d0 [,q,?] (default: bootdg01) bootdisk
A new disk group rootdg will be created and the disk device c1t1d0 will
be encapsulated and added to the disk group with the disk name bootdg01.
Enter desired private region length
[,q,?] (default: 2048)
The c1t1d0 disk has been configured for encapsulation.
The first stage of encapsulation has completed successfully. You
should now reboot your system at the earliest possible opportunity.
The encapsulation will require two or three reboots which will happen
automatically after the next reboot. To reboot execute the command:
shutdown -g0 -y -i6
This will update the /etc/vfstab file so that volume devices are
used to mount the file systems on this disk device. You will need
to update any other references such as backup scripts, databases,
or manually created swap devices.
Encapsulate other disks? [y,n,q,?] (default: n)
# shutdown -g0 -y -i6
vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t1d0s2 auto:sliced bootdisk rootdg online
c1t2d0s2 auto:none - - online invalid
3、初始化c1t2d0s2
# vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
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
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: 1
Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
Use this operation to add one or more disks to a disk group. You can
add the selected disks to an existing disk group or to a new disk group
that will be created as a part of the operation. The selected disks may
also be added to a disk group as spares. Or they may be added as
nohotuses to be excluded from hot-relocation use. The selected
disks may also be initialized without adding them to a disk group
leaving the disks available for use as replacement disks.
More than one disk or pattern may be entered at the prompt. Here are
some disk selection examples:
all: all disks
c3 c4t2: all disks on both controller 3 and controller 4, target 2
c3t4d2: a single disk (in the c#t#d# naming scheme)
xyz_0 : a single disk (in the enclosure based naming scheme)
xyz_ : all disks on the enclosure whose name is xyz
Select disk devices to add: [,all,list,q,?] list
DEVICE DISK GROUP STATUS
c1t1d0 bootdisk rootdg online
c1t2d0 - - online invalid
Select disk devices to add: [,all,list,q,?] c1t2d0
Here is the disk selected. Output format: [Device_Name]
c1t2d0
Continue operation? [y,n,q,?] (default: y)
You can choose to add this disk to an existing disk group, a
new disk group, or leave the disk available for use by future
add or replacement operations. To create a new disk group,
select a disk group name that does not yet exist. To leave
the disk available for future use, specify a disk group name
of "none".
Which disk group [,none,list,q,?] (default: rootdg)
Use a default disk name for the disk? [y,n,q,?] (default: y) n
Add disk as a spare disk for rootdg? [y,n,q,?] (default: n) Oct 30 01:29:39 b2000 sendmail[375]: [ID 702911 mail.alert] unable to qualify my own domain name (b2000) -- using short name Oct 30 01:29:39 b2000 sendmail[376]: [ID 702911 mail.alert] unable to qualify my own domain name (b2000) -- using short name
Exclude disk from hot-relocation use? [y,n,q,?] (default: n)
The selected disks will be added to the disk group rootdg with
disk names that you will specify interactively.
c1t2d0
Continue with operation? [y,n,q,?] (default: y)
The following disk device has a valid VTOC, but does not appear to have
been initialized for the Volume Manager. If there is data on the disk
that should NOT be destroyed you should encapsulate the existing disk
partitions as volumes instead of adding the disk as a new disk.
Output format: [Device_Name]
c1t2d0
Encapsulate this device? [y,n,q,?] (default: y) n
c1t2d0
Instead of encapsulating, initialize? [y,n,q,?] (default: n) y
Initializing device c1t2d0.
When selecting the format for the disk, keep in mind that a CDS disk
cannot contain a subdisk for a 'root' or 'swap' volume, so it cannot
be used for mirroring, evacuating, or sparing the boot disk.
Enter the desired format
[cdsdisk,sliced,simple,q,?] (default: cdsdisk) sliced
Enter desired private region length
[,q,?] (default: 2048)
Enter disk name for c1t2d0 [,q,?] (default: rootdg01) mirrdisk
VxVM NOTICE V-5-2-88
Adding disk device c1t2d0 to disk group rootdg with disk
name mirrdisk.
Add or initialize other disks? [y,n,q,?] (default: n)
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
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
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: q
Goodbye.
# vxdisk lisat_ __ _t
DEVICE TYPE DISK GROUP STATUS
c1t1d0s2 auto:sliced bootdisk rootdg online
c1t2d0s2 auto:sliced mirrdisk rootdg online
二、 映象系統盤
# vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
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
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: 6
Mirror volumes on a disk
Menu: VolumeManager/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.
Mirroring volumes from the boot disk will produce a disk that
can be used as an alternate boot disk.
At the prompt below, supply the name of the disk containing the
volumes to be mirrored.
Enter disk name [,list,q,?] list
Disk group: rootdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
dm bootdisk c1t1d0s2 auto 9423 35358848 -
dm mirrdisk c1t2d0s2 auto 4455 35358848 -
Enter disk name [,list,q,?] bootdisk
You can choose to mirror volumes from disk bootdg01 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 [,list,q,?] (default: any) list
Disk group: rootdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
dm bootdisk c1t1d0s2 auto 9423 35358848 -
dm mirrdisk c1t2d0s2 auto 4455 35358848 -
Enter destination disk [,list,q,?] (default: any) mirrdisk
The requested operation is to mirror all volumes on disk bootdisk
in disk group rootdg onto available disk space on disk mirrdisk.
VxVM NOTICE V-5-2-3650 This operation can take a long time to complete.
Continue with operation? [y,n,q,?] (default: y)
VxVM vxmirror INFO V-5-2-22 Mirror volume swapvol ...
VxVM vxmirror INFO V-5-2-22 Mirror volume rootvol ...
VxVM vxmirror INFO V-5-2-22 Mirror volume bootdisk3vol ...
VxVM vxmirror INFO V-5-2-22 Mirror volume bootdisk4vol ...
VxVM INFO V-5-2-674 Mirroring of disk bootdisk is complete.
Mirror volumes on another disk? [y,n,q,?] (default: n)
_[H_[J
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
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
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: q
Goodbye.
#
#
# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
161 ATCOPY/R 32.54% 0/4198392/1366016 PLXATT swapvol swapvol-02 rootdg
三、測試
OK:boot vx-mirrdisk
OK:boot vx-bootdisk
1、準備
若要減小封裝失敗的可能性,請確保磁碟:
包含少量不屬於任何分割槽的空閒空間(在磁碟的起始或末尾處)
包含兩個空閒分割槽
包含表示整個磁碟的 s2 片
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t1d0s2 auto:none - - online invalid
c1t2d0s2 auto:none - - online invalid
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t1d0
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037bdca50,0
1. c1t2d0
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037f07e9a,0
Specify disk (enter its number): ^D
2、封裝c1t1d0s2
# vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
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
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: 2
Encapsulate one or more disks
Menu: VolumeManager/Disk/Encapsulate
Use this operation to convert one or more disks to use the Volume Manager.
This adds the disks to a disk group and replaces existing partitions
with volumes. Disk encapsulation requires a reboot for the changes
to take effect.
More than one disk or pattern may be entered at the prompt. Here are
some disk selection examples:
all: all disks
c3 c4t2: all disks on both controller 3 and controller 4, target 2
c3t4d2: a single disk (in the c#t#d# naming scheme)
xyz_0 : a single disk (in the enclosure based naming scheme)
xyz_ : all disks on the enclosure whose name is xyz
Select disk devices to encapsulate:
[
DEVICE DISK GROUP STATUS
c1t1d0 - - online invalid
c1t2d0 - - online invalid
Select disk devices to encapsulate:
[
Here is the disk selected. Output format: [Device_Name]
c1t1d0
Continue operation? [y,n,q,?] (default: y)
You can choose to add this disk to an existing disk group or to
a new disk group. To create a new disk group, select a disk group
name that does not yet exist.
Which disk group [
There is no active disk group named rootdg.
Create a new group named rootdg? [y,n,q,?] (default: y) y
Use a default disk name for the disk? [y,n,q,?] (default: y) n
A new disk group will be created named rootdg and the selected
disks will be encapsulated and added to this disk group with
disk names that will be specified interactively.
c1t1d0
Continue with operation? [y,n,q,?] (default: y)
The following disk has been selected for encapsulation.
Output format: [Device_Name]
c1t1d0
Continue with encapsulation? [y,n,q,?] (default: y)
Enter disk name for c1t1d0 [
A new disk group rootdg will be created and the disk device c1t1d0 will
be encapsulated and added to the disk group with the disk name bootdg01.
Enter desired private region length
[
The c1t1d0 disk has been configured for encapsulation.
The first stage of encapsulation has completed successfully. You
should now reboot your system at the earliest possible opportunity.
The encapsulation will require two or three reboots which will happen
automatically after the next reboot. To reboot execute the command:
shutdown -g0 -y -i6
This will update the /etc/vfstab file so that volume devices are
used to mount the file systems on this disk device. You will need
to update any other references such as backup scripts, databases,
or manually created swap devices.
Encapsulate other disks? [y,n,q,?] (default: n)
# shutdown -g0 -y -i6
vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t1d0s2 auto:sliced bootdisk rootdg online
c1t2d0s2 auto:none - - online invalid
3、初始化c1t2d0s2
# vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
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
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: 1
Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
Use this operation to add one or more disks to a disk group. You can
add the selected disks to an existing disk group or to a new disk group
that will be created as a part of the operation. The selected disks may
also be added to a disk group as spares. Or they may be added as
nohotuses to be excluded from hot-relocation use. The selected
disks may also be initialized without adding them to a disk group
leaving the disks available for use as replacement disks.
More than one disk or pattern may be entered at the prompt. Here are
some disk selection examples:
all: all disks
c3 c4t2: all disks on both controller 3 and controller 4, target 2
c3t4d2: a single disk (in the c#t#d# naming scheme)
xyz_0 : a single disk (in the enclosure based naming scheme)
xyz_ : all disks on the enclosure whose name is xyz
Select disk devices to add: [
DEVICE DISK GROUP STATUS
c1t1d0 bootdisk rootdg online
c1t2d0 - - online invalid
Select disk devices to add: [
Here is the disk selected. Output format: [Device_Name]
c1t2d0
Continue operation? [y,n,q,?] (default: y)
You can choose to add this disk to an existing disk group, a
new disk group, or leave the disk available for use by future
add or replacement operations. To create a new disk group,
select a disk group name that does not yet exist. To leave
the disk available for future use, specify a disk group name
of "none".
Which disk group [
Use a default disk name for the disk? [y,n,q,?] (default: y) n
Add disk as a spare disk for rootdg? [y,n,q,?] (default: n) Oct 30 01:29:39 b2000 sendmail[375]: [ID 702911 mail.alert] unable to qualify my own domain name (b2000) -- using short name Oct 30 01:29:39 b2000 sendmail[376]: [ID 702911 mail.alert] unable to qualify my own domain name (b2000) -- using short name
Exclude disk from hot-relocation use? [y,n,q,?] (default: n)
The selected disks will be added to the disk group rootdg with
disk names that you will specify interactively.
c1t2d0
Continue with operation? [y,n,q,?] (default: y)
The following disk device has a valid VTOC, but does not appear to have
been initialized for the Volume Manager. If there is data on the disk
that should NOT be destroyed you should encapsulate the existing disk
partitions as volumes instead of adding the disk as a new disk.
Output format: [Device_Name]
c1t2d0
Encapsulate this device? [y,n,q,?] (default: y) n
c1t2d0
Instead of encapsulating, initialize? [y,n,q,?] (default: n) y
Initializing device c1t2d0.
When selecting the format for the disk, keep in mind that a CDS disk
cannot contain a subdisk for a 'root' or 'swap' volume, so it cannot
be used for mirroring, evacuating, or sparing the boot disk.
Enter the desired format
[cdsdisk,sliced,simple,q,?] (default: cdsdisk) sliced
Enter desired private region length
[
Enter disk name for c1t2d0 [
VxVM NOTICE V-5-2-88
Adding disk device c1t2d0 to disk group rootdg with disk
name mirrdisk.
Add or initialize other disks? [y,n,q,?] (default: n)
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
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
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: q
Goodbye.
# vxdisk lisat_ __ _t
DEVICE TYPE DISK GROUP STATUS
c1t1d0s2 auto:sliced bootdisk rootdg online
c1t2d0s2 auto:sliced mirrdisk rootdg online
二、 映象系統盤
# vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
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
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: 6
Mirror volumes on a disk
Menu: VolumeManager/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.
Mirroring volumes from the boot disk will produce a disk that
can be used as an alternate boot disk.
At the prompt below, supply the name of the disk containing the
volumes to be mirrored.
Enter disk name [
Disk group: rootdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
dm bootdisk c1t1d0s2 auto 9423 35358848 -
dm mirrdisk c1t2d0s2 auto 4455 35358848 -
Enter disk name [
You can choose to mirror volumes from disk bootdg01 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 group: rootdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
dm bootdisk c1t1d0s2 auto 9423 35358848 -
dm mirrdisk c1t2d0s2 auto 4455 35358848 -
Enter destination disk [
The requested operation is to mirror all volumes on disk bootdisk
in disk group rootdg onto available disk space on disk mirrdisk.
VxVM NOTICE V-5-2-3650 This operation can take a long time to complete.
Continue with operation? [y,n,q,?] (default: y)
VxVM vxmirror INFO V-5-2-22 Mirror volume swapvol ...
VxVM vxmirror INFO V-5-2-22 Mirror volume rootvol ...
VxVM vxmirror INFO V-5-2-22 Mirror volume bootdisk3vol ...
VxVM vxmirror INFO V-5-2-22 Mirror volume bootdisk4vol ...
VxVM INFO V-5-2-674 Mirroring of disk bootdisk is complete.
Mirror volumes on another disk? [y,n,q,?] (default: n)
_[H_[J
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
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
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
22 Change/Display the default disk layouts
23 Mark a disk as allocator-reserved for a disk group
24 Turn off the allocator-reserved flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: q
Goodbye.
#
#
# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
161 ATCOPY/R 32.54% 0/4198392/1366016 PLXATT swapvol swapvol-02 rootdg
三、測試
OK:boot vx-mirrdisk
OK:boot vx-bootdisk
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617542/viewspace-962883/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Solaris 系統命令(轉)
- Solaris8作業系統安裝(轉)作業系統
- sun solaris用dd克隆系統盤
- Solaris 8 for Intel 作業系統的安裝(轉)Intel作業系統
- u盤如何安裝windows7系統 u盤一鍵安裝win7映象系統教程WindowsWin7
- 製作多系統安裝盤(轉)
- Solaris培訓第三章:安裝Solaris作業系統(轉)作業系統
- qmail在Linux,Solaris系統安裝詳解(轉)AILinux
- 簡單裝系統打造64位系統萬能映象(轉)
- Solaris 檔案系統管理(轉)
- Solaris 10 系統維護(轉)
- 學用Solaris系統幫助(轉)
- solaris9網路安裝
- 如何用U盤安裝win10系統_U盤裝win10官方原版映象的方法Win10
- 更換HP小型機系統映象故障盤
- Solaris 系統上手動解除安裝 WebSphereWeb
- win10怎麼裝進u盤_怎麼把win10映象系統裝進u盤裡Win10
- 系統安裝引導盤的製作(轉)
- 作業系統封裝操作作業系統封裝
- 【Solaris】Virtualbox 安裝 Oracle Solaris 10(二) 圖形化安裝作業系統Oracle作業系統
- 以Solaris架設FTP虛擬系統(轉)FTP
- 保護Solaris系統安全小竅門(轉)
- SOLARIS作業系統常用命令(轉)作業系統
- windows系統盤製作,系統裝機Windows
- mysql 5.1.25 for Solaris 9 sprc的package安裝MySqlPackage
- 作業系統封裝操作薦作業系統封裝
- linux/OSX中“DD”命令製作ISO映象作業系統安裝U盤Linux作業系統
- 【Solaris】Solaris10作業系統 原始碼安裝apache軟體包作業系統原始碼Apache
- Oracle9i for SUN Solaris install(轉)Oracle
- 網路安裝solaris(轉)
- Solaris培訓第七章:系統安全(轉)
- Solaris 與系統資訊有關的操作命令(轉)
- 大轉盤抽獎系統
- 【Solaris】Solaris檔案系統管理1 UFS檔案系統的建立
- 【Solaris】Solaris檔案系統管理3 ZFS檔案系統的建立
- solaris 9 ftp 慢FTP
- 妙用安裝盤修復損壞的系統檔案(轉)
- 網路安裝Solaris 10(轉)