环境:vmware4.5.2+solaris10 (11/6)+vxvm5.0
问题:foramt显示的磁盘和vxvm下看到的不同导致无法初始化,请各位大侠帮忙分析!
相关信息:
bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c0d1 <DEFAULT cyl 1021 alt 2 hd 128 sec 32>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
2. c1d1 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
/pci@0,0/pci-ide@7,1/ide@1/cmdk@1,0
Specify disk (enter its number):
bash-3.00# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 auto:none - - online invalid
c0t1d0s2 auto:none - - online invalid
c1t1d0s2 auto:none - - online invalid
bash-3.00# /usr/lib/vxvm/bin/vxdisksetup -i c0t0d1s2
VxVM vxdisksetup ERROR V-5-2-2206 c0t0d1s2: An invalid device address was specified; it must be of
the form cCtTdD, mcCtTdD or <enclosurename>_<diskno> where
C = host bus adapter controller number
T = target device controller number, if used
D = logical unit (disk) number within target device controller
<enclosurename> is the logical name of the enclosure to which the
disk belongs
<diskno> is the logical number of the disk
bash-3.00# /usr/lib/vxvm/bin/vxdisksetup -i c0t1d0s2
VxVM vxdisksetup ERROR V-5-2-2206 c0t1d0s2: An invalid device address was specified; it must be of
the form cCtTdD, mcCtTdD or <enclosurename>_<diskno> where
C = host bus adapter controller number
T = target device controller number, if used
D = logical unit (disk) number within target device controller
<enclosurename> is the logical name of the enclosure to which the
disk belongs
<diskno> is the logical number of the disk
bash-3.00# /usr/lib/vxvm/bin/vxdisksetup -i c0t1d0
VxVM vxdisksetup ERROR V-5-2-1814 c0t1d0: Invalid disk device for 'cdsdisk' format
bash-3.00# /usr/lib/vxvm/bin/vxdisksetup -i c0d0s2
VxVM vxdisksetup ERROR V-5-2-2206 c0d0s2: An invalid device address was specified; it must be of
the form cCtTdD, mcCtTdD or <enclosurename>_<diskno> where
C = host bus adapter controller number
T = target device controller number, if used
D = logical unit (disk) number within target device controller
<enclosurename> is the logical name of the enclosure to which the
disk belongs
<diskno> is the logical number of the disk
bash-3.00# 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: [<pattern-list>,all,list,q,?] list
DEVICE DISK GROUP STATUS
c0t0d0 - - online invalid
c0t1d0 - - online invalid
c1t1d0 - - online invalid
Select disk devices to add: [<pattern-list>,all,list,q,?] c0t1d0
Here is the disk selected. Output format: [Device_Name]
c0t1d0
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 [<group>,none,list,q,?] (default: datadg)
Create a new group named datadg? [y,n,q,?] (default: y)
Create the disk group as a CDS disk group? [y,n,q,?] (default: y)
Use a default disk name for the disk? [y,n,q,?] (default: y)
Add disk as a spare disk for datadg? [y,n,q,?] (default: n)
Exclude disk from hot-relocation use? [y,n,q,?] (default: n)
Add site tag to disk? [y,n,q,?] (default: n)
A new disk group will be created named datadg and the selected disks
will be added to the disk group with default disk names.
c0t1d0
Continue with operation? [y,n,q,?] (default: y)
This disk device does not appear to be valid. The disk may not be
formatted (format(1M)), may have a corrupted VTOC, the device file
for the disk may be missing or invalid, or the device may be turned-off
or detached from the system. This disk will be ignored.
Output format: [Device_Name,Disk_Access_Name]
[c0t1d0,c0t1d0s2]
Hit RETURN to continue.
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: 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: [<pattern-list>,all,list,q,?] list
DEVICE DISK GROUP STATUS
c0t0d0 - - online invalid
c0t1d0 - - online invalid
c1t1d0 - - online invalid
Select disk devices to add: [<pattern-list>,all,list,q,?] c0t1d0
Here is the disk selected. Output format: [Device_Name]
c0t1d0
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 [<group>,none,list,q,?] (default: datadg)
Create a new group named datadg? [y,n,q,?] (default: y)
Create the disk group as a CDS disk group? [y,n,q,?] (default: y) n
Use a default disk name for the disk? [y,n,q,?] (default: y)
Add disk as a spare disk for datadg? [y,n,q,?] (default: n)
Exclude disk from hot-relocation use? [y,n,q,?] (default: n)
Add site tag to disk? [y,n,q,?] (default: n)
A new disk group will be created named datadg and the selected disks
will be added to the disk group with default disk names.
c0t1d0
Continue with operation? [y,n,q,?] (default: y)
This disk device does not appear to be valid. The disk may not be
formatted (format(1M)), may have a corrupted VTOC, the device file
for the disk may be missing or invalid, or the device may be turned-off
or detached from the system. This disk will be ignored.
Output format: [Device_Name,Disk_Access_Name]
[c0t1d0,c0t1d0s2]
Hit RETURN to continue.
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:
VxVM ERROR V-5-2-302 Selection not recognized, enter ?? for help