最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Centos5給/根分區(qū)擴容

 更新時間:2010年06月04日 21:28:54   作者:  
今天在調(diào)整VPS的時候發(fā)現(xiàn)自己的/分區(qū)的空間用光了.但是還剩下一個分區(qū)hda3沒動.于是乎.想調(diào)整到根下面去.但是由于本人新手一個.又不太了解linux的分區(qū)機制.

終于還是找到了.現(xiàn)在將執(zhí)行代碼貼出來.希望對大家有幫助!

[root@localhost ~]# fdisk /dev/hda3

The number of cylinders for this disk is set to 3916.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda4: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×000bc363

Device Boot Start End Blocks Id System
/dev/hda1 * 1 25 200781 83 Linux
/dev/hda2 26 1958 15526822+ 8e Linux LVM
/dev/hda3 1959 2610 5237190 8e Linux LVM

Command (m for help): n
Command action
e extended
p primary partition (1-4)

Selected partition 4
First cylinder (2611-3916, default 2611):
Using default value 2611
Last cylinder or +size or +sizeM or +sizeK (2611-3916, default 3916):
Using default value 3916

Command (m for help): t
Partition number (1-4): 4
Hex code (type L to list codes): 8e
Changed system type of partition 4 to 8e (Linux LVM)

Command (m for help): p

Disk /dev/hda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×000bc363

Device Boot Start End Blocks Id System
/dev/hda1 * 1 25 200781 83 Linux
/dev/hda2 26 1958 15526822+ 8e Linux LVM
/dev/hda3 1959 2610 5237190 8e Linux LVM
/dev/hda4 2611 3916 10490445 8e Linux LVM

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

(注:建議重啟一下CentOS系統(tǒng))

[root@localhost ~]# pvcreate /dev/hda3
Physical volume “/dev/hda4″ successfully created
[root@localhost ~]# vgextend VolGroup00 /dev/hda3
Volume group “VolGroup00″ successfully extended
[root@localhost ~]# lvextend -l +100%FREE /dev/VolGroup00/LogVol00
Extending logical volume LogVol00 to 28.25 GB
Logical volume LogVol00 successfully resized
[root@localhost ~]# lvresize -l +100%FREE /dev/VolGroup00/LogVol00
New size (904 extents) matches existing size (904 extents)
lvresize: Resize a logical volume

lvresize
[-A|--autobackup y|n]
[--alloc AllocationPolicy]
[-d|--debug]
[-h|--help]
[-i|--stripes Stripes [-I|--stripesize StripeSize]]
{-l|–extents [+|-]LogicalExtentsNumber[%{VG|LV|FREE}] |
-L|–size [+|-]LogicalVolumeSize[kKmMgGtTpPeE]}
[-n|--nofsck]
[-r|--resizefs]
[-t|--test]
[--type VolumeType]
[-v|--verbose]
[--version]
LogicalVolume[Path] [ PhysicalVolumePath... ]

[root@localhost ~]# resize2fs /dev/VolGroup00/LogVol00
resize2fs 1.40.2 (12-Jul-2007)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 2
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 7405568 (4k) blocks.
The filesystem on /dev/VolGroup00/LogVol00 is now 7405568 blocks long.

相關(guān)文章

  • linux環(huán)境下如何解決“沒有那個文件或目錄”

    linux環(huán)境下如何解決“沒有那個文件或目錄”

    這篇文章主要介紹了linux環(huán)境下如何解決“沒有那個文件或目錄”問題,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教
    2023-11-11
  • Linux中的awk數(shù)組的基本使用方法

    Linux中的awk數(shù)組的基本使用方法

    這篇文章主要介紹了Linux中的awk數(shù)組的基本使用方法,非常不錯,具有一定的參考借鑒價值,需要的朋友可以參考下
    2018-08-08
  • 在linux服務(wù)器上安裝Jenkins

    在linux服務(wù)器上安裝Jenkins

    Jenkins是用java編寫的開源持續(xù)集成工具,目前被國內(nèi)外各公司廣泛使用。本章教大家如何在linux服務(wù)器上安裝Jenkins。
    2017-05-05
  • Centos7 安裝達夢數(shù)據(jù)庫的教程

    Centos7 安裝達夢數(shù)據(jù)庫的教程

    這篇文章主要介紹了Centos7 安裝達夢數(shù)據(jù)庫的教程,本文給大家介紹的非常詳細,具有一定的參考借鑒價值,需要的朋友可以參考下
    2019-12-12
  • 使用Hyper-v虛擬機安裝Centos7

    使用Hyper-v虛擬機安裝Centos7

    本文詳細講解了使用Hyper-v虛擬機安裝Centos7的方法,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2021-12-12
  • Linux之常見漏洞修復(fù)

    Linux之常見漏洞修復(fù)

    這篇文章主要介紹了Linux中的常見漏洞修復(fù),具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教
    2023-12-12
  • Xshell連接不上虛擬機的解決辦法匯總

    Xshell連接不上虛擬機的解決辦法匯總

    本文主要介紹了Xshell連接不上虛擬機的解決辦法匯總,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2022-08-08
  • Apache下ModSecurity的安裝啟用與配置

    Apache下ModSecurity的安裝啟用與配置

    這篇文章主要介紹了Apache下ModSecurity的安裝啟用與配置,需要的朋友可以參考下
    2018-10-10
  • Linux中Bash環(huán)境變量的配置方法

    Linux中Bash環(huán)境變量的配置方法

    Shell 既是一種命令語言,又是一種程序設(shè)計語言。這篇文章主要介紹了Linux中Bash環(huán)境變量的配置方法,需要的朋友可以參考下
    2020-04-04
  • CentOS6.5系統(tǒng)簡單安裝與配置Nginx服務(wù)器的方法

    CentOS6.5系統(tǒng)簡單安裝與配置Nginx服務(wù)器的方法

    這篇文章主要介紹了CentOS6.5系統(tǒng)簡單安裝與配置Nginx服務(wù)器的方法,結(jié)合實例形式較為詳細的分析了CentOS6.5平臺安裝及配置nginx服務(wù)器的具體步驟、相關(guān)命令及使用方法,需要的朋友可以參考下
    2018-04-04

最新評論

额济纳旗| 盐亭县| 固镇县| 那曲县| 基隆市| 雷山县| 谷城县| 万荣县| 池州市| 旺苍县| 米泉市| 临洮县| 全州县| 湾仔区| 建德市| 苏州市| 凌海市| 双江| 山东省| 武强县| 白沙| 瑞安市| 海宁市| 敦煌市| 贵德县| 盐源县| 崇阳县| 漯河市| 衡阳县| 海南省| 柘荣县| 天水市| 丹巴县| 嘉荫县| 泾源县| 驻马店市| 石渠县| 汤原县| 田林县| 芜湖县| 马龙县|