Production environment has a server space is full, need to expand in order to ensure smooth operation ahead of the rehearsal a bit, although the relevant articles a lot, or record a bit.
# CAT/PROC/SCSI/SCSI#查看当前通道;
Attached devices:
Host:scsi0 channel:00 id:00 lun:00
Vendor:vmware, Model:vmware Virtual S rev:1.0
Type:direct-access ANSI SCSI revision:02
Host:scsi2 channel:00 id:00 lun:00
Vendor:necvmwar model:vmware IDE CDR10 rev:1.00
Type:cd-rom ANSI SCSI revision:05
# echo "scsi add-single-device 0 0 1 0" >/PROC/SCSI/SCSI#添加硬盘;
# CAT/PROC/SCSI/SCSI #查看上面的添加是否生效;
Attached devices:
Host:scsi0 channel:00 id:00 lun:00
Vendor:vmware, Model:vmware Virtual S rev:1.0
Type:direct-access ANSI SCSI revision:02
Host:scsi2 channel:00 id:00 lun:00
Vendor:necvmwar model:vmware IDE CDR10 rev:1.00
Type:cd-rom ANSI SCSI revision:05
Host:scsi0 channel:00 id:01 lun:00
Vendor:vmware, Model:vmware Virtual S rev:1.0
Type:direct-access ANSI SCSI revision:02
# fdisk-l#检查确认看到了添加的sdb磁盘, the next partition format, mount can;
disk/dev/sda:21.5 GB, 21474836480 bytes
255 heads, Sectors/track, 2610 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x000a0593
Device Boot Start End Blocks Id System
/DEV/SDA1 * 1 524288 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 1371 10485760 Linux
/dev/sda3 1371 1893 4194304-up Linux
/DEV/SDA4 1893 2611 5766144 5 Extended
/dev/sda5 1894 2155 2097152, Linux Swap/solaris
/dev/sda6 2155 2611 3666944-up Linux
disk/dev/sdb:5368 MB, 5368709120 bytes
255 heads, Sectors/track, 652 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x0000000
This article is from the "Rong book" blog, please be sure to keep this source http://rongshu.blog.51cto.com/681368/1950203
Linux does not reboot to add physical hard disk!