免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2384 | 回复: 15
打印 上一主题 下一主题

请问如何看硬盘用没用? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-24 17:44 |只看该作者 |倒序浏览
这是用FORMAT命令输出
这块盘不知用没用?  谢谢!
format> partition


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> print
Current partition table (original):
Total disk cylinders available: 24786 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0 - 24685       11.30GB    (24686/0/0) 23698560
  1 unassigned    wu       0                0         (0/0/0)            0
  2     backup    wu       0 - 24785       11.35GB    (24786/0/0) 23794560
  3 unassigned    wu       0                0         (0/0/0)            0
  4 unassigned    wu       0                0         (0/0/0)            0
  5 unassigned    wu       0                0         (0/0/0)            0
  6 unassigned    wu       0                0         (0/0/0)            0
  7 unassigned    wu       0                0         (0/0/0)            0

论坛徽章:
0
2 [报告]
发表于 2006-08-24 17:51 |只看该作者
df -k看看这个slice有没有被mount
如果没有被mount,那你就mount /dev/rdsk/cxtxdxs0 /mnt,然后cd /mnt,看看有什么东西。

论坛徽章:
1
IT运维版块每日发帖之星
日期:2015-11-08 06:20:00
3 [报告]
发表于 2006-08-24 18:36 |只看该作者
从楼主的帖子上看,可能没用(过)。

论坛徽章:
0
4 [报告]
发表于 2006-08-24 21:49 |只看该作者
有分区被mount 的盘会有警告:

# format
Searching for disks...done
...
AVAILABLE DISK SELECTIONS:
...
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]
Warning: Current Disk has mounted partitions.

论坛徽章:
0
5 [报告]
发表于 2006-08-25 10:02 |只看该作者
先谢谢上面几位的分析,这个机器是V880,连EMC盘柜,有70块这样的盘,目前我正在看
root@gspss # df -k
文件系统              千字节    用了    可用 容量      挂接在
/dev/md/dsk/d10      4133838   91738 4000762     3%    /
/dev/md/dsk/d50      4133838 1597648 2494852    40%    /usr
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
/dev/md/dsk/d30      2058319  237333 1759237    12%    /var
swap                 38337648      16 38337632     1%    /var/run
swap                 38342624    4992 38337632     1%    /tmp
/dev/md/dsk/d0       211592366 81331341 128145102    39%    /data
/dev/md/dsk/d40      4133838   69133 4023367     2%    /opt
/dev/md/dsk/d60      23803176 14722419 8842726    63%    /export/home

论坛徽章:
0
6 [报告]
发表于 2006-08-25 10:09 |只看该作者
Please try:
$ metastat | grep cxtxdxs0

论坛徽章:
0
7 [报告]
发表于 2006-08-25 10:43 |只看该作者
小心点,如果用做raw device,那么就没有了提示。

还是综合分析一下吧。

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-11-22 06:20:00
8 [报告]
发表于 2006-08-25 13:38 |只看该作者
vxdisk list
DEVICE       TYPE      DISK         GROUP        STATUS
c0t0d0s2     sliced    -            -            error
c0t0d0s7     simple    c0t0d0s7     rootdg       online
c0t1d0s2     sliced    -            -            error
c1t0d0s2     sliced    -            -            error
c1t0d0s7     simple    c1t0d0s7     rootdg       online
c3t0d6s2     sliced    -            -            error
c3t0d7s2     sliced    -            -            error
c3t0d16s2    sliced    -            -            online
c3t0d17s2    sliced    -            -            online
c3t0d18s2    sliced    -            -            online
c3t0d19s2    sliced    -            -            online
c3t0d20s2    sliced    -            -            online
c3t0d21s2    sliced    -            -            online
c3t0d22s2    sliced    -            -            online
c3t0d23s2    sliced    c3t0d23s2    dg         online
c3t0d24s2    sliced    c3t0d24s2    dg         online
c3t0d25s2    sliced    c3t0d25s2    dg         online
c3t0d26s2    sliced    c3t0d26s2   dg         online
c3t0d27s2    sliced    c3t0d27s2    dg         online
c3t0d28s2    sliced    -            -            online
c3t0d29s2    sliced    -            -            online
c3t0d30s2    sliced    -            -            online
c3t0d31s2    sliced    -            -            online
c3t0d32s2    sliced    -            -            online
c3t0d33s2    sliced    -            -            online
c3t0d34s2    sliced    -            -            online
c3t0d35s2    sliced    -            -            online
c3t0d36s2    sliced    -            -            online
c3t0d37s2    sliced    atadg-01  atadg     online
c3t0d38s2    sliced    -            -            online
c3t0d39s2    sliced    -            -            error
c3t0d40s2    sliced    -            -            error
c3t0d41s2    sliced    -            -            error
c3t0d42s2    sliced    -            -            online
c3t0d43s2    sliced    -            -            online

如果查看这些盘还没有被使用,我想重新建个vg.

这些盘后面带error说明什么意思呢?

是不是还没有使用呢?
还是?

prtvtoc /dev/rdsk/c3t0d40s2
* /dev/rdsk/c3t0d40s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      64 sectors/track
*      60 tracks/cylinder
*    3840 sectors/cylinder
*   36450 cylinders
*   36448 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*   139956480      3840 139960319
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       2      5    01          0 139960320 139960319
       3      0    00          0 139956480 139956479   /dbdata2

那说明这个还在使用呢?那为什么会有error标记呢?

论坛徽章:
0
9 [报告]
发表于 2006-08-25 14:44 |只看该作者
erro没有关系的,不要管.  看起来你的内置盘用了 sds做卷的, EMC的磁盘用了veritas管理的.  metstat 和vxdisk list没有显出出放在某个group里面一般就没有被使用过了.

论坛徽章:
0
10 [报告]
发表于 2006-08-25 18:13 |只看该作者
通过楼上各位的指导,基本明白了,这个机器有六个73G内置盘,两个盘做了一个镜像,另四个盘做了RAID5,
其它EMC盘都划了METADEVICES,但我不知道METADEVICES D0-D6都被谁用了,文件系统肯定没用,
如果用于RAW设备,不知怎么划的?我因为刚接管这台机器,以后还要向各位请教
VXDISK LIST 不能用,没有VXDISK命令.

root# metastat                                       
d10: Mirror                                                
    Submirror 0: d11                                       
      State: Okay                                          
    Submirror 1: d12                                       
      State: Okay                                          
    Pass: 1                                                
    Read option: roundrobin (default)                       
    Write option: parallel (default)                        
    Size: 8395200 blocks                                    
                                                            
d11: Submirror of d10                                       
    State: Okay                                             
    Size: 8395200 blocks                                    
    Stripe 0:                                               
        Device     Start Block  Dbase State        Hot Spare
        c1t0d0s0          0     No    Okay                  
                                                            
                                                            
d12: Submirror of d10                                       
    State: Okay                                             
    Size: 8395200 blocks                                    
    Stripe 0:                                               
        Device     Start Block  Dbase State        Hot Spare
        c1t1d0s0          0     No    Okay                  
                                                            
                                                            
d20: Mirror                                                
    Submirror 0: d21                                       
      State: Okay                                          
    Submirror 1: d22                                       
      State: Okay                                          
    Pass: 1                                                
    Read option: roundrobin (default)                       
    Write option: parallel (default)                        
    Size: 65543616 blocks                                   
d21: Submirror of d20                                                                                                   
    State: Okay                                             
    Size: 65543616 blocks                                   
    Stripe 0:                                               
        Device     Start Block  Dbase State        Hot Spare
        c1t0d0s1          0     No    Okay                  
                                                            
                                                            
d22: Submirror of d20                                       
    State: Okay                                             
    Size: 65543616 blocks                                   
    Stripe 0:                                               
        Device     Start Block  Dbase State        Hot Spare
        c1t1d0s1          0     No    Okay                  
                                                            
                                                            
d30: Mirror                                                
    Submirror 0: d31                                       
      State: Okay                                          
    Submirror 1: d32                                       
      State: Okay                                          
    Pass: 1                                                
    Read option: roundrobin (default)                       
    Write option: parallel (default)                        
    Size: 4202688 blocks                                    
                                                            
d31: Submirror of d30                                       
    State: Okay                                             
    Size: 4202688 blocks                                    
    Stripe 0:                                               
        Device     Start Block  Dbase State        Hot Spare
        c1t0d0s3          0     No    Okay                  
                                                            
d32: Submirror of d30                                                                                                   
    State: Okay                                             
    Size: 4202688 blocks                                    
    Stripe 0:                                               
        Device     Start Block  Dbase State        Hot Spare
        c1t1d0s3          0     No    Okay                  
                                                            
                                                            
d40: Mirror                                                
    Submirror 0: d41                                       
      State: Okay                                          
    Submirror 1: d42                                       
      State: Okay                                          
    Pass: 1                                                
    Read option: roundrobin (default)                       
    Write option: parallel (default)                        
    Size: 8395200 blocks                                    
                                                            
d41: Submirror of d40                                       
    State: Okay                                             
    Size: 8395200 blocks                                    
    Stripe 0:                                               
        Device     Start Block  Dbase State        Hot Spare
        c1t0d0s4          0     No    Okay                  
                                                            
                                                            
d42: Submirror of d40                                       
    State: Okay                                             
    Size: 8395200 blocks                                    
    Stripe 0:                                               
        Device     Start Block  Dbase State        Hot Spare
        c1t1d0s4          0     No    Okay                  
                                                            
d50: Mirror                                                                                                            
    Submirror 0: d51                                       
      State: Okay                                          
    Submirror 1: d52                                       
      State: Okay                                          
    Pass: 1                                                
    Read option: roundrobin (default)                       
    Write option: parallel (default)                        
    Size: 8395200 blocks                                    
                                                            
d51: Submirror of d50                                       
    State: Okay                                             
    Size: 8395200 blocks                                    
    Stripe 0:                                               
        Device     Start Block  Dbase State        Hot Spare
        c1t0d0s5          0     No    Okay                  
                                                            
                                                            
d52: Submirror of d50                                       
    State: Okay                                             
    Size: 8395200 blocks                                    
    Stripe 0:                                               
        Device     Start Block  Dbase State        Hot Spare
        c1t1d0s5          0     No    Okay                  
                                                            
                                                            
d60: Mirror                                                
    Submirror 0: d61                                       
      State: Okay                                          
    Submirror 1: d62                                       
      State: Okay                                          
    Pass: 1                                                
    Read option: roundrobin (default)                       
    Write option: parallel (default)                        
    Size: 48336000 blocks                                   

d61: Submirror of d60                                                                                                  
     State: Okay                                             
     Size: 48336000 blocks                                   
     Stripe 0:                                               
         Device     Start Block  Dbase State        Hot Spare
         c1t0d0s6          0     No    Okay                  
                                                            
                                                            
d62: Submirror of d60                                       
     State: Okay                                             
     Size: 48336000 blocks                                   
     Stripe 0:                                               
         Device     Start Block  Dbase State        Hot Spare
         c1t1d0s6          0     No    Okay                  
                                                            
                                                            
d0: RAID                                                   
     State: Okay                                             
     Interlace: 32 blocks                                    
     Size: 429671424 blocks                                 
Original device:                                            
     Size: 429680544 blocks                                 
         Device     Start Block  Dbase State        Hot Spare
         c1t2d0s0      10506     No    Okay                  
         c1t3d0s0      10506     No    Okay                  
         c1t4d0s0      10506     No    Okay                  
         c1t5d0s0      10506     No    Okay                  
d1: Concat/Stripe                                                                                   
    Size: 261729600 blocks              
    Stripe 0: (interlace: 32 blocks)   
        Device        Start Block  Dbase
        emcpower0c           0     No   
        emcpower1c         960     No   
        emcpower2c         960     No   
        emcpower3c         960     No   
        emcpower4c         960     No   
        emcpower5c         960     No   
        emcpower6c         960     No   
        emcpower7c         960     No   
        emcpower8c         960     No   
        emcpower9c         960     No   
        emcpower10c        960     No   
                                       
d2: Concat/Stripe                       
    Size: 261729600 blocks              
    Stripe 0: (interlace: 32 blocks)   
        Device        Start Block  Dbase
        emcpower11c          0     No   
        emcpower12c        960     No   
        emcpower13c        960     No   
        emcpower14c        960     No   
        emcpower15c        960     No   
        emcpower16c        960     No   
        emcpower17c        960     No   
        emcpower18c        960     No   
        emcpower19c        960     No   
        emcpower20c        960     No   
        emcpower21c        960     No
d3: Concat/Stripe                                
    Size: 261729600 blocks              
    Stripe 0: (interlace: 32 blocks)   
        Device        Start Block  Dbase
        emcpower22c          0     No   
        emcpower23c        960     No   
        emcpower24c        960     No   
        emcpower25c        960     No   
        emcpower26c        960     No   
        emcpower27c        960     No   
        emcpower28c        960     No   
        emcpower29c        960     No   
        emcpower30c        960     No   
        emcpower31c        960     No   
        emcpower32c        960     No   
                                       
d4: Concat/Stripe                       
    Size: 261729600 blocks              
    Stripe 0: (interlace: 32 blocks)   
        Device        Start Block  Dbase
        emcpower33c          0     No   
        emcpower34c        960     No   
        emcpower35c        960     No   
        emcpower36c        960     No   
        emcpower37c        960     No   
        emcpower38c        960     No   
        emcpower39c        960     No   
        emcpower40c        960     No   
        emcpower41c        960     No   
        emcpower42c        960     No   
        emcpower43c        960     No   
d5: Concat/Stripe                                                               
    Size: 261729600 blocks              
    Stripe 0: (interlace: 32 blocks)   
        Device        Start Block  Dbase
        emcpower44c          0     No   
        emcpower45c        960     No   
        emcpower46c        960     No   
        emcpower47c        960     No   
        emcpower48c        960     No   
        emcpower49c        960     No   
        emcpower50c        960     No   
        emcpower51c        960     No   
        emcpower52c        960     No   
        emcpower53c        960     No   
        emcpower54c        960     No   
                                       
d6: Concat/Stripe                       
    Size: 261729600 blocks              
    Stripe 0: (interlace: 32 blocks)   
        Device        Start Block  Dbase
        emcpower55c          0     No   
        emcpower56c        960     No   
        emcpower57c        960     No   
        emcpower58c        960     No   
        emcpower59c        960     No   
        emcpower60c        960     No   
        emcpower61c        960     No   
        emcpower62c        960     No   
        emcpower63c        960     No   
        emcpower64c        960     No   
        emcpower65c        960     No   
                                       
root#
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP