Linux does not reboot to add physical hard disk!

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.