linode添加塊存儲教程參考:linode Block Storage添加塊存儲磁盤教程
如果要我建議的話,當然還是建議根據自己的需求,購買對應的linode套餐,因為默認的套餐磁盤是SSD。個別客戶又想要大的磁盤做存儲,又不舍得投入更多的錢購買更高配置的SSD,那買低配的linode套餐,然后額外附加一個塊存儲也是可以的。
下面簡單說下教程。老易特意買了個日本VPS,linode日本機房的弄個教程。找易秋網絡老易代購linode的話,我這可以免費幫掛載好額外添加的塊存儲,其實也就是額外掛載下添加的磁盤。

比如默認最低配的是25G磁盤,額外買一塊160G的塊存儲。
root@li1721-227:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 480M 0 480M 0% /dev
tmpfs 99M 12M 88M 12% /run
/dev/sda 25G 1.1G 22G 5% /
tmpfs 494M 0 494M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 494M 0 494M 0% /sys/fs/cgroup
tmpfs 99M 0 99M 0% /run/user/0
添加linode塊存儲后,格式化添加的磁盤,掛載添加的磁盤,并且設置好開機掛載好磁盤:
Volume scheduled for creation.
To get started with a new volume, you'll want to create a filesystem on it:
mkfs.ext4 "/dev/disk/by-id/scsi-0Linode_Volume_block2689"
Once the volume has a filesystem, you can create a mountpoint for it:
mkdir "/mnt/block2689"
Then you can mount the new volume:
mount "/dev/disk/by-id/scsi-0Linode_Volume_block2689" "/mnt/block2689"
If you want the volume to automatically mount every time your Linode boots, you'll want to add a line like the following to your /etc/fstab file:
/dev/disk/by-id/scsi-0Linode_Volume_block2689 /mnt/block2689 ext4 defaults,noatime,nofail 0 2
可以敲命令fdisk -l看看,是多了一塊160G的磁盤:
root@li1721-227:~# fdisk -l
Disk /dev/sda: 24.5 GiB, 26306674688 bytes, 51380224 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdb: 512 MiB, 536870912 bytes, 1048576 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdc: 160 GiB, 171798691840 bytes, 335544320 sectors
Disk model: Volume
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
看看掛載好磁盤的磁盤分區情況:
root@li1721-227:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 480M 0 480M 0% /dev
tmpfs 99M 12M 88M 12% /run
/dev/sda 25G 1.1G 22G 5% /
tmpfs 494M 0 494M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 494M 0 494M 0% /sys/fs/cgroup
tmpfs 99M 0 99M 0% /run/user/0
/dev/sdc 157G 61M 149G 1% /mnt/block2689