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

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

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

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

[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)境下如何解決“沒(méi)有那個(gè)文件或目錄”

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

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

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

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

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

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

    Centos7 安裝達(dá)夢(mèng)數(shù)據(jù)庫(kù)的教程

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

    使用Hyper-v虛擬機(jī)安裝Centos7

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

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

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

    Xshell連接不上虛擬機(jī)的解決辦法匯總

    本文主要介紹了Xshell連接不上虛擬機(jī)的解決辦法匯總,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(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 既是一種命令語(yǔ)言,又是一種程序設(shè)計(jì)語(yǔ)言。這篇文章主要介紹了Linux中Bash環(huán)境變量的配置方法,需要的朋友可以參考下
    2020-04-04
  • CentOS6.5系統(tǒng)簡(jiǎn)單安裝與配置Nginx服務(wù)器的方法

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

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

最新評(píng)論

无锡市| 红安县| 淮安市| 江永县| 慈利县| 南丰县| 桂平市| 九江市| 清原| 延川县| 大足县| 宜兴市| 太白县| 龙南县| 礼泉县| 武陟县| 大化| 林州市| 合水县| 饶河县| 茌平县| 武功县| 隆尧县| 合肥市| 兴文县| 策勒县| 鄂托克前旗| 伊吾县| 阿巴嘎旗| 梁平县| 松江区| 新干县| 高唐县| 宜宾县| 绥德县| 保山市| 中江县| 玛多县| 中宁县| 河东区| 石家庄市|