中文字幕在线观看,亚洲а∨天堂久久精品9966,亚洲成a人片在线观看你懂的,亚洲av成人片无码网站,亚洲国产精品无码久久久五月天

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

紅色為您要鍵入的指令,綠色為需要注意的內(nèi)容,藍(lán)色為說明

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

[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                 //開始擴(kuò)容根分區(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ū)大小




編輯:西部數(shù)碼
日期:2015-03-31

收藏 】 【 打印 】   
您可對文檔進(jìn)行評分喲~

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

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

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

24小時客服熱線

400-028-5800

028-62778877

  • 售前咨詢請撥4
  • 售后服務(wù)請撥5
  • 技術(shù)支持請撥7
  • 投訴建議請撥9
  • 備案問題請提交工單

咨詢售后問題請先打開 電話助手