zoukankan      html  css  js  c++  java
  • linux在线添加硬盘、扫盘


    1:查看scsi 硬盘设备
    [root@web02
    ~]# ls /sys/class/scsi_host host0 host1 host2

    2:检查本机现有硬盘 [root@web02 ~]# fdisk /dev/sda sda sda1 sda2 sda3
    3:刷新scsi驱动器 [root@web02 ~]# echo "- - -" > /sys/class/scsi_host/host0/scan [root@web02 ~]# echo "- - -" > /sys/class/scsi_host/host1/scan [root@web02 ~]# echo "- - -" > /sys/class/scsi_host/host2/scan [root@web02 ~]# fdisk /dev/sd sda sda1 sda2 sda3 sdb sdc [root@web02 ~]# fdisk /dev/sd^C [root@web02 ~]# fdisk -l Disk /dev/sda: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0007f7e4 Device Boot Start End Blocks Id System /dev/sda1 * 1 131 1048576 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 131 6336 49843200 83 Linux /dev/sda3 6336 6528 1536000 82 Linux swap / Solaris Disk /dev/sdb: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/sdc: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 [root@web02 ~]#
  • 相关阅读:
    打印从1到最大的n位数
    TCP/IP协议
    函数指针做函数参数
    Ubuntu系统扩大/home分区
    《一切都准时》一首非常有意思的小诗
    阿里云服务器编译安装Hadoop 2.7.4 伪分布式环境
    C++中的string类型占用多少个字节
    使用apt-file安装需要的软件包或者库文件
    剑指offer之【表示数值的字符串】
    剑指offer之【正则表达式】☆
  • 原文地址:https://www.cnblogs.com/liweiming/p/9962925.html
Copyright © 2011-2022 走看看