国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網(wǎng)站 > 建站經(jīng)驗(yàn) > 正文

阿里云CentOS 7系統(tǒng)掛載SSD云盤的教程

2019-11-02 16:31:32
字體:
供稿:網(wǎng)友

一、查看SSD云盤

sudo fdisk -l  Disk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectors 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 label type: dos Disk identifier: 0x635e6c7d   Device Boot  Start   End  Blocks Id System /dev/vda1   2048 83886079 41942016 83 Linux  Disk /dev/vdb: 107.4 GB, 107374182400 bytes, 209715200 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes 

可以看到SSD系統(tǒng)已經(jīng)識(shí)別為/dev/vdb

二、格式化云盤

sudo mkfs.ext4 /dev/vdb mke2fs 1.42.9 (28-Dec-2013) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 6553600 inodes, 26214400 blocks 1310720 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=2174746624 800 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks:   32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,   4096000, 7962624, 11239424, 20480000, 23887872  Allocating group tables: done        Writing inode tables: done        Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done  

三、掛載

sudo mount /dev/vdb /opt 

將云盤掛載到/opt目錄下。

四、配置開機(jī)自動(dòng)掛載

修改/etc/fstab文件,文件末尾添加

/dev/vdb /opt ext4 defaults 0 0 

五、重啟檢查

使用

init 6 

優(yōu)雅的重啟系統(tǒng)。

使用

sudo df -h Filesystem  Size Used Avail Use% Mounted on /dev/vda1  40G 3.6G 34G 10% / devtmpfs  1.9G  0 1.9G 0% /dev tmpfs   1.9G  0 1.9G 0% /dev/shm tmpfs   1.9G 8.4M 1.9G 1% /run tmpfs   1.9G  0 1.9G 0% /sys/fs/cgroup /dev/vdb   99G 61M 94G 1% /opt tmpfs   380M  0 380M 0% /run/user/1000 

可以看到系統(tǒng)已掛載了SSD云盤。

總結(jié)

以上就是阿里云CentOS 7掛載SSD云盤方法的全部內(nèi)容,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作能帶來一定的幫助,如果有疑問大家可以留言交流。

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 嘉荫县| 许昌县| 新巴尔虎右旗| 大城县| 仁寿县| 全南县| 洛浦县| 星子县| 资阳市| 定西市| 昌吉市| 蚌埠市| 龙门县| 玉山县| 东明县| 固镇县| 手机| 金昌市| 和顺县| 巴林左旗| 和平县| 肃南| 石河子市| 金秀| 寿光市| 潞西市| 鄂托克前旗| 和静县| 共和县| 集安市| 杭州市| 肥西县| 莎车县| 汝南县| 南陵县| 镇坪县| 体育| 青海省| 铜陵市| 江西省| 阿坝|