Chinaunix首页 | 论坛 | 博客
  • 博客访问: 885545
  • 博文数量: 339
  • 博客积分: 3151
  • 博客等级: 中校
  • 技术积分: 3425
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-10 14:47
文章分类

全部博文(339)

文章存档

2023年(43)

2022年(44)

2021年(3)

2020年(13)

2019年(39)

2018年(25)

2015年(2)

2014年(18)

2013年(12)

2012年(48)

2011年(79)

2010年(13)

分类: 系统运维

2011-09-02 18:21:31

增加硬盘的步骤:

1. 一块好的硬盘.
2. 步骤如下:
   2-1  直接插入V240 (本来已经有3块,同时是支持热插拔的.)
        现在观察状态,4块硬盘的边上都有灯,正常情况下,灯都是不亮的.如果亮了,说明硬盘有问题.或者
        说,服务器和硬盘其中一方有问题,比如I/O接触问题.
   2-2   format 命令查看.发现了c1t3d0.  (当然你可以在硬盘插入前,format下.)

root@suzsysadmin # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0
          /pci@1c,600000/scsi@2/sd@1,0
       2. c1t2d0
          /pci@1c,600000/scsi@2/sd@2,0
       3. c1t3d0
          /pci@1c,600000/scsi@2/sd@3,0
       4. c3t8d0
          /pci@1c,600000/scsi@2,1/sd@8,0
       5. c3t9d0
          /pci@1c,600000/scsi@2,1/sd@9,0
       6. c3t10d0
          /pci@1c,600000/scsi@2,1/sd@a,0
       7. c3t11d0
          /pci@1c,600000/scsi@2,1/sd@b,0
Specify disk (enter its number): ^C
root@suzsysadmin #

简单的概括成一句话:  找一块没有坏的盘,插进去就可以了.   一插即可.
==========================================================================================
插硬盘进去,当然是为了访问硬盘里面内容. 如何访问, 当然是把这块硬盘mount起来就可以.

root@suzsysadmin #
mount /dev/dsk/c1t3d0s0 /mnt/c1t3d0
mount: The state of /dev/dsk/c1t3d0s0 is not okay
        and it was attempted to be mounted read/write
mount: Please run fsck and try again
root@suzsysadmin # fsck /dev/dsk/c1t3d0
fsck: could not stat /dev/dsk/c1t3d0: No such file or directory
root@suzsysadmin # fsck /dev/dsk/c1t3d0s0
** /dev/rdsk/c1t3d0s0
** Last Mounted on /
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups

FILE SYSTEM STATE IN SUPERBLOCK IS WRONG; FIX? yes

20444 files, 1001583 used, 4164255 free (1591 frags, 520333 blocks, 0.0% fragmentation)
root@suzsysadmin # mount /dev/dsk/c1t3d0s0 /mnt/c1t3d0
root@suzsysadmin # cd /mnt/c1t3d0/
root@suzsysadmin # ls
1           cleanup     devices     jumpstart   mnt         oradata     tmp         vtoc
TT_DB       cleanup1    etc         kernel      net         platform    usr         wd
bin         core        export      lib         opt         proc        var         xfn
cdrom       dev         home        lost+found  oracle      sbin        vol

======================================================================
#######################################################################
======================================================================

早上不小心拿了一块坏盘,坏盘上写着bad,但是字太小了,没发现.结果弄了好久,弄来弄去一直有问题. 下面把早上的过程写一下.


root@suzsysadmin # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0
          /pci@1c,600000/scsi@2/sd@1,0
       2. c1t2d0
          /pci@1c,600000/scsi@2/sd@2,0
       3. c3t8d0
          /pci@1c,600000/scsi@2,1/sd@8,0
       4. c3t9d0
          /pci@1c,600000/scsi@2,1/sd@9,0
       5. c3t10d0
          /pci@1c,600000/scsi@2,1/sd@a,0
       6. c3t11d0
          /pci@1c,600000/scsi@2,1/sd@b,0
Specify disk (enter its number): ^C

插入这个坏盘以后,format,啥也没看见.就看见那块坏盘的灯在亮着,长亮,就是一直亮 ,闪也不闪的.看见就这一个灯亮,有点奇怪,因为有4块硬盘吗.咋就这个在亮.当然早上并没有放在心上,也不了解,原来是有问题.还有个原因就是这个等是长亮的绿灯,服务器正常状态下,也就这这样,如果灯是黄灯,或者一闪一闪的,我就会注意了.

root@suzsysadmin # devfsadm

用devfsadm以后,然后format就发现了.

root@suzsysadmin # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0
          /pci@1c,600000/scsi@2/sd@1,0
       2. c1t2d0
          /pci@1c,600000/scsi@2/sd@2,0
       3. c1t3d0
          /pci@1c,600000/scsi@2/sd@3,0

       4. c3t8d0
          /pci@1c,600000/scsi@2,1/sd@8,0
       5. c3t9d0
          /pci@1c,600000/scsi@2,1/sd@9,0
       6. c3t10d0
          /pci@1c,600000/scsi@2,1/sd@a,0
       7. c3t11d0
          /pci@1c,600000/scsi@2,1/sd@b,0
Specify disk (enter its number):


提示 drive type unkonwn, 我就以为是没有格式化.




root@suzsysadmin # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0
          /pci@1c,600000/scsi@2/sd@1,0
       2. c1t2d0
          /pci@1c,600000/scsi@2/sd@2,0
       3. c1t3d0
          /pci@1c,600000/scsi@2/sd@3,0
       4. c3t8d0
          /pci@1c,600000/scsi@2,1/sd@8,0
       5. c3t9d0
          /pci@1c,600000/scsi@2,1/sd@9,0
       6. c3t10d0
          /pci@1c,600000/scsi@2,1/sd@a,0
       7. c3t11d0
          /pci@1c,600000/scsi@2,1/sd@b,0
Specify disk (enter its number):

重启以后,drive type unknow,还是如此,看样要格式化了。


root@suzsysadmin # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0
          /pci@1c,600000/scsi@2/sd@1,0
       2. c1t2d0
          /pci@1c,600000/scsi@2/sd@2,0
       3. c1t3d0
          /pci@1c,600000/scsi@2/sd@3,0
       4. c3t8d0
          /pci@1c,600000/scsi@2,1/sd@8,0
       5. c3t9d0
          /pci@1c,600000/scsi@2,1/sd@9,0
       6. c3t10d0
          /pci@1c,600000/scsi@2,1/sd@a,0
       7. c3t11d0
          /pci@1c,600000/scsi@2,1/sd@b,0
Specify disk (enter its number): 3



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. SUN146G
        21. HITACHI-HUS10143ASUN146G-PA05
        22. other
Specify disk type (enter its number): 19
selecting c1t3d0
[disk unformatted]


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
        !     - execute , then return
        quit
format> format
Ready to format.  Formatting cannot be interrupted.
Continue? yes
Beginning format. The current time is Fri Sep  2 17:53:30 2011

Reserve failed
failed
format>
结果,他告诉我failed,我也没办法了,就去换了块硬盘,结果就ok了.


而且,这个硬盘由于I/O的问题,它告诉你,没有format. 跟已经format过的硬盘是不一样的.而且由于I/O的问题,你都无法format.

看下面,好的盘,已经format过来,有提示.看下面红色.

root@suzsysadmin # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0
          /pci@1c,600000/scsi@2/sd@1,0
       2. c1t2d0
          /pci@1c,600000/scsi@2/sd@2,0
       3. c1t3d0
          /pci@1c,600000/scsi@2/sd@3,0
       4. c3t8d0
          /pci@1c,600000/scsi@2,1/sd@8,0
       5. c3t9d0
          /pci@1c,600000/scsi@2,1/sd@9,0
       6. c3t10d0
          /pci@1c,600000/scsi@2,1/sd@a,0
       7. c3t11d0
          /pci@1c,600000/scsi@2,1/sd@b,0
Specify disk (enter its number): 3
selecting c1t3d0
[disk formatted]


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
        !     - execute , then return
        quit
format> print


阅读(639) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~