亚洲色图欧美日韩在线播放-户外操美女逼逼中国-免费久久99国产精品自在现-欧美激情五月综合啪啪-九九日本黄色精品视频-亚洲成年网址青青草原-欧美性爱精品在线免费观看-国产精品一区二区美女-日电影一区二区三区

彈性云linux系統(tǒng)升級系統(tǒng)盤后擴容根分區(qū)

紅色為您要鍵入的指令,綠色為需要注意的內容,藍色為說明

特別提醒:刪除分區(qū)后一定要先建立分區(qū)再保存,刪除后點了保存會導致數據丟失,如果對linux不熟悉的,建議提交維護工單我司手工處理,費用30元。該操作有風險,為避免誤操作導致數據丟失,操作前請對您的重要數據進行備份!
相關連接:
彈性云window系統(tǒng)盤擴容后將未分配空間合并擴容到C盤
Linux云主機(VPS)升級硬盤以后HOME分區(qū)擴容操作流程

[root@ebs ~]#yum -y install gdisk        //安裝分區(qū)工具

[root@ebs ~]#gdisk /dev/vda        //操作根分區(qū)磁盤

Command (? for help): p    //查看分區(qū)

Disk /dev/vda: 104857600 sectors, 50.0 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): B7172F0B-2C30-4535-981D-F0ED8B4A6065

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 104857566

Partitions will be aligned on 2048-sector boundaries

Total free space is 41945021 sectors (20.0 GiB)


Number  Start (sector)    End (sector)  Size       Code  Name

   1            2048        62914559   30.0 GiB    8300  Linux filesystem    //注意這個值

Command (? for help): d        //刪除分區(qū)

Using 1


Command (? for help): 1

b       back up GPT data to a file

c       change a partition's name

d       delete a partition

i       show detailed information on a partition

l       list known partition types

n       add a new partition

o       create a new empty GUID partition table (GPT)

p       print the partition table

q       quit without saving changes

r       recovery and transformation options (experts only)

s       sort partitions

t       change a partition's type code

v       verify disk

w       write table to disk and exit

x       extra functionality (experts only)

?       print this menu


Command (? for help): n

Partition number (1-128, default 1): 1

First sector (34-104857566, default = 2048) or {+-}size{KMGTP}: 2048   //剛才記錄的

Last sector (2048-104857566, default = 104857566) or {+-}size{KMGTP}:   //直接回車

Current type is 'Linux filesystem'

Hex code or GUID (L to show codes, Enter = 8300):            //直接回車

Changed type of partition to 'Linux filesystem'


Command (? for help): w


Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

PARTITIONS!!


Do you want to proceed? (Y/N): y

OK; writing new GUID partition table (GPT) to /dev/vda.

Warning: The kernel is still using the old partition table.

The new table will be used at the next reboot.

The operation has completed successfully.


[root@ebs ~]#reboot                        //重啟讓分區(qū)生效

[root@ebs ~]#resize2fs -f /dev/vda1                 //開始擴容根分區(qū)

resize2fs -f /dev/vda1

resize2fs 1.41.12 (17-May-2010)

Filesystem at /dev/vda1 is mounted on /; on-line resizing required

old desc_blocks = 2, new_desc_blocks = 4

Performing an on-line resize of /dev/vda1 to 13106939 (4k) blocks.

The filesystem on /dev/vda1 is now 13106939 blocks long.


[root@ebs ~]#df -vh                            //完成,查看新的根分區(qū)大小




編輯:三五互聯
日期:2015-03-31

收藏 】 【 打印 】   
您可對文檔進行評分喲~

勾選遇到的問題提交給我們,收到反饋后保證及時修正更新!

提交反饋需要先登陸會員帳號

上一篇:國家互聯網應急中心通知被HOLD域名申請解封流程
下一篇:FTP上傳大文件時連接重置或者中斷,重新連接上傳也出現同樣情況處理辦法
若文檔內容對您沒有幫助,不能解決問題? 您還可以 咨詢在線客服提交工單搜索常見問題 ,我們將竭誠為您服務。
  >> 相關文章
 
分享至: