ztejob 发表于 2011-11-16 13:51

求助:SUN 3510扩容逻辑卷后,无法label

环境:E4900 (solaris 10 u8)+2台SUN 3510 (10*raid 5+2*hotspare)
sun 3510各化出一个大的逻辑卷映射到主机,然后通过VXVM做RAID 1
用户数据量增大,要求把每一台的一块热备盘删除掉用作数据盘.

当时操作步骤:
1、view and edit Host luns ->unmap Host Lun
2、view and edit SCsi Drives->delete spare Drive
3、view and edit logical drives->add Scsi drives
4、同步完后映射到主机
5、format->选盘->type->auto configure
format->选盘->type->auto configure可以看到扩容后的容量,可退出format重新format又看到扩容前的容量了。
要label的时候报以下错误,label不成功。

root@xxxxxxx> format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /ssm@0,0/pci@19,700000/pci@1/scsi@2/sd@0,0
       1. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /ssm@0,0/pci@19,700000/pci@1/scsi@2/sd@1,0
       2. c1t40d0 <SUN-StorEdge3510-415F cyl 65533 alt 2 hd 64 sec 306>
          /ssm@0,0/pci@19,600000/SUNW,qlc@1/fp@0,0/ssd@w216000c0ff886d52,0
       3. c2t40d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 306>
          /ssm@0,0/pci@1d,600000/SUNW,qlc@1/fp@0,0/ssd@w216000c0ff898773,0
Specify disk (enter its number): 2
selecting c1t40d0



FORMAT MENU:
      disk       - select a disk
      type       - select (define) a disk type
      partition- select (define) a partition table
      current    - describe the current disk
      format   - format and analyze the disk
      repair   - repair a defective sector
      label      - write label to the disk
      analyze    - surface analysis
      defect   - defect list management
      backup   - search for backup labels
      verify   - read and display labels
      save       - save new disk/partition definitions
      inquiry    - show vendor, product and revision
      volname    - set 8-character volume name
      !<cmd>   - execute <cmd>, then return
      quit
format> p


PARTITION MENU:
      0      - change `0' partition
      1      - change `1' partition
      2      - change `2' partition
      3      - change `3' partition
      4      - change `4' partition
      5      - change `5' partition
      6      - change `6' partition
      7      - change `7' partition
      select - select a predefined table
      modify - modify a predefined partition table
      name   - name the current table
      print- display the current table
      label- write partition map and label to the disk
      !<cmd> - execute <cmd>, then return
      quit
partition> p
Current partition table (original):
Total disk cylinders available: 65533 + 2 (reserved cylinders)

Part      Tag    Flag   Cylinders         Size            Blocks
0 unassigned    wm       0                0         (0/0/0)            0
1 unassigned    wm       0                0         (0/0/0)            0
2   backup    wu       0 - 65532      611.97GB    (65533/0/0) 1283398272
3 unassigned    wm       0                0         (0/0/0)            0
4 unassigned    wm       0                0         (0/0/0)            0
5 unassigned    wm       0                0         (0/0/0)            0
6 unassigned    wm       0                0         (0/0/0)            0
7 unassigned    wm       0                0         (0/0/0)            0

partition> q


FORMAT MENU:
      disk       - select a disk
      type       - select (define) a disk type
      partition- select (define) a partition table
      current    - describe the current disk
      format   - format and analyze the disk
      repair   - repair a defective sector
      label      - write label to the disk
      analyze    - surface analysis
      defect   - defect list management
      backup   - search for backup labels
      verify   - read and display labels
      save       - save new disk/partition definitions
      inquiry    - show vendor, product and revision
      volname    - set 8-character volume name
      !<cmd>   - execute <cmd>, then return
      quit
format> dis^H     type


AVAILABLE DRIVE TYPES:
      0. Auto configure
      1. Quantum ProDrive 80S
      2. Quantum ProDrive 105S
      3. CDC Wren IV 94171-344
      4. SUN0104
      5. SUN0207
      6. SUN0327
      7. SUN0340
      8. SUN0424
      9. SUN0535
      10. SUN0669
      11. SUN1.0G
      12. SUN1.05
      13. SUN1.3G
      14. SUN2.1G
      15. SUN2.9G
      16. Zip 100
      17. Zip 250
      18. Peerless 10GB
      19. SUN72G
      20. SUN-StorEdge3510-415F
      21. SUN-StorEdge3510-411I
      22. other
Specify disk type (enter its number): 0
c1t40d0: configured with capacity of 679.97GB
<SUN-StorEdge3510-415F cyl 65533 alt 2 hd 64 sec 340>
selecting c1t40d0

format> l
Ready to label disk, continue? y

Warning: error writing VTOC.
Warning: no backup labels
Label failed.
format> help
Expecting one of the following: (abbreviations ok):
      disk       - select a disk
      type       - select (define) a disk type
      partition- select (define) a partition table
      current    - describe the current disk
      format   - format and analyze the disk
      repair   - repair a defective sector
      label      - write label to the disk
      analyze    - surface analysis
      defect   - defect list management
      backup   - search for backup labels
      verify   - read and display labels
      save       - save new disk/partition definitions
      inquiry    - show vendor, product and revision
      volname    - set 8-character volume name
      !<cmd>   - execute <cmd>, then return
      quit

format> save
Saving new disk and partition definitions
Enter file name["./format.dat"]:
format> f^H   p


PARTITION MENU:
      0      - change `0' partition
      1      - change `1' partition
      2      - change `2' partition
      3      - change `3' partition
      4      - change `4' partition
      5      - change `5' partition
      6      - change `6' partition
      7      - change `7' partition
      select - select a predefined table
      modify - modify a predefined partition table
      name   - name the current table
      print- display the current table
      label- write partition map and label to the disk
      !<cmd> - execute <cmd>, then return
      quit
partition> p
Current partition table (default):
Total disk cylinders available: 65533 + 2 (reserved cylinders)

Part      Tag    Flag   Cylinders         Size            Blocks
0       root    wm       0                0         (0/0/0)            0
1       swap    wu       0                0         (0/0/0)            0
2   backup    wu       0 - 65532      679.97GB    (65533/0/0) 1425998080
3 unassigned    wm       0                0         (0/0/0)            0
4 unassigned    wm       0                0         (0/0/0)            0
5 unassigned    wm       0                0         (0/0/0)            0
6      usr    wm       0 - 65532      679.97GB    (65533/0/0) 1425998080
7 unassigned    wm       0                0         (0/0/0)            0

partition> q


FORMAT MENU:
      disk       - select a disk
      type       - select (define) a disk type
      partition- select (define) a partition table
      current    - describe the current disk
      format   - format and analyze the disk
      repair   - repair a defective sector
      label      - write label to the disk
      analyze    - surface analysis
      defect   - defect list management
      backup   - search for backup labels
      verify   - read and display labels
      save       - save new disk/partition definitions
      inquiry    - show vendor, product and revision
      volname    - set 8-character volume name
      !<cmd>   - execute <cmd>, then return
      quit
format> l
Ready to label disk, continue? y

Warning: error writing VTOC.
Warning: no backup labels
Label failed.
format> q
root@unkmmas1o> vxdisk list
DEVICE       TYPE            DISK         GROUP      STATUS
c0t0d0s2   auto:none       -            -            online invalid
c0t1d0s2   auto:none       -            -            online invalid
c1t40d0s2    auto:none       -            -            online invalid
c2t40d0s2    auto:sliced   disk2mirr    ossdg      online
root@xxxxxx>

119beyond 发表于 2011-11-17 10:05

请先确定3510上的操作是OK,再从主机端操作。
页: [1]
查看完整版本: 求助:SUN 3510扩容逻辑卷后,无法label