1、无需重启扩展空间
[[email protected] ~]# ls /sys/class/scsi_host/
host0 host1 host2
[[email protected] ~]# echo "- - -" > /sys/class/scsi_host/host0/scan
[[email protected] ~]# echo "- - -" > /sys/class/scsi_host/host1/scan
[[email protected] ~]# echo "- - -" > /sys/class/scsi_host/host2/scan
重新扫描scsi总线
[[email protected] ~]# ls /sys/class/scsi_device/
1:0:0:0 2:0:0:0 2:0:1:0
[[email protected] ~]# echo 1 > /sys/class/scsi_device/1\:0\:0\:0/device/rescan
[[email protected] ~]# echo 1 > /sys/class/scsi_device/2\:0\:0\:0/device/rescan
2、挂载磁盘
[[email protected] ~]# fdisk -l 查看磁盘
[[email protected] ~]# fdisk /dev/sdb
输入n创建分区
P 创建主分区
W 写入
[[email protected] ~]# mkfs.ext3 /dev/sdb1 格式化分区
mount /dev/sdb1 /opt 挂载到opt目录下
vi /etc/fstab 配置开机自动挂载
/dev/sdb1 /opt ext3 defaults 0 0
原文地址:http://blog.51cto.com/gaokui/2132056