一本一本久久a久久精品综合,啦啦啦视频免费播放在线观看,六十六十路熟妇高熟在线,老头解开奶罩吸奶头高潮视频,一本久久a久久免费精品不卡,顶级欧美熟妇高清xxxxx,爆乳熟妇一区二区三区霸乳,无码h黄肉3d动漫在线观看

綠色資源網:您身邊最放心的安全下載站! 最新軟件|熱門排行|軟件分類|軟件專題|廠商大全

綠色資源網

技術教程
您的位置:首頁操作系統linux → Linux上如何擴展VolGroup00?

Linux上如何擴展VolGroup00?

我要評論 2012/09/06 16:46:32 來源:綠色資源網 編輯:downcc.com [ ] 評論:0 點擊:313次

首先說明一下情況,在VmWare上建立了一個Linux 虛擬機,當時硬盤只分配了20G用著用著發現硬盤不夠了需要擴展。

1.在VMware中將硬盤擴展到40G(這個鼠標點點就好了) 2.輸入fdisk /dev/sda看看硬盤有沒有變大
[root@localhost ~]# fdisk /dev/sda
The number of cylinders for this disk is set to 5221.
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/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        2610    20860402+  8e  Linux LVM
這里我們發現一共有5221cylinders,可是結束卻在2610cylinders,這說明硬盤有空余,說明硬盤擴展成功。
3.新建分區
[root@localhost ~]# fdisk /dev/sda
The number of cylinders for this disk is set to 5221.
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): n //創建一個分區(卷)
Command action //問你是主分區還是擴展分區,我們輸入p代表主分區
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3 //問你是第幾個分區,我這里前面有兩個分區了,輸入3表示建立第三個分區
First cylinder (2611-5221, default 2611):  //問你分區從哪個cylinder開始,保持默認
Using default value 2611
Last cylinder or +size or +sizeM or +sizeK (2611-5221, default 5221):
Using default value 5221 //問你分區在哪個cylinder結束,我們輸入回車,表示硬盤的最后一個cylinder
Command (m for help): t //輸入t我們修改剛剛建立的分區格式
Partition number (1-4): 3 //問我們改哪個分區,輸入3改第三個
Hex code (type L to list codes): 8e //改成什么格式的,輸入8e,表示Linux LVM格式
Changed system type of partition 3 to 8e (Linux LVM)
Command (m for help): p  //輸入p查看修改以后的狀態
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        2610    20860402+  8e  Linux LVM
/dev/sda3            2611        5221    20972857+  8e  Linux LVM
Command (m for help): w //輸入w保存,這里可能要求重啟
4.對新建的分區格式化,輸入#mkfs.ext3 /dev/sda3
[root@localhost ~]# mkfs.ext3 /dev/sda3
mke2fs 1.39 (29-May-2006)
warning: 334 blocks unused.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2626560 inodes, 5242880 blocks
262160 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
160 block groups
32768 blocks per group, 32768 fragments per group
16416 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000
Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
5.創建一個PV,輸入#pvcreate /dev/sda3
[root@localhost ~]# pvcreate /dev/sda3
  Physical volume "/dev/sda3" successfully created
6.將建立好的PV加入到現有的VG中,輸入#vgextend VolGroup00 /dev/sda3 (注意這里第二個參數為VG的名字)
[root@localhost ~]# vgextend VolGroup00 /dev/sda3
  Volume group "VolGroup00" successfully extended
7.擴展LV,輸入#lvextend -L +20G /dev/VolGroup00/LogVol00
[root@localhost ~]# lvextend -L +20G /dev/VolGroup00/LogVol00
  Extending logical volume LogVol00 to 35.94 GB
  Logical volume LogVol00 successfully resized
8.從新識別一下LV的容量,輸入#resize2fs /dev/VolGroup00/LogVol00
[root@localhost ~]# resize2fs /dev/VolGroup00/LogVol00
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 9420800 (4k) blocks.
The filesystem on /dev/VolGroup00/LogVol00 is now 9420800 blocks long.

9.至此擴展就已經成功了,你可以輸入df -l查看新的容量
[root@localhost ~]# df -l
文件系統               1K-塊        已用     可用 已用% 掛載點
/dev/mapper/VolGroup00-LogVol00
                      36505664  15045120  19579916  44% /
/dev/sda1               101086     12097     83770  13% /boot
tmpfs                  1037748         0   1037748   0% /dev/shm

關鍵詞:Linux

閱讀本文后您有什么感想? 已有 人給出評價!

  • 0 歡迎喜歡
  • 0 白癡
  • 0 拜托
  • 0 哇
  • 0 加油
  • 0 鄙視
主站蜘蛛池模板: 亚洲 欧美 自拍 美腿 卡通| 久久久久人妻精品一区蜜桃| 久久久久久精品国产观看| 特黄做受又硬又粗又大视频小说| 久久久久成人精品无码| 国产韩国精品一区二区三区| 国产精品视频一区国模私拍| 全国最大成人网站| 国产一区二区女内射| 亚洲av首页在线观看| 久久久久久宅男| 24小时日本高清电影| 欧美日韩国产一区二区三区不卡| 夜夜躁狠狠躁日日躁麻豆护士| 两个人看的视频www| 吃奶揉捏奶头高潮视频在线观看| 18+内射| 无翼乌工口肉肉无遮挡无码18| 欧美丰满熟妇性xxxx| ysl蜜桃色成人网| 蜜臀av在线观看| 亚洲综合色丁香婷婷六月图片| https日韩在线 | 中文)| 麻花传媒剧在线mv免费观看 | 色护士极品影院| 三人成全免费观看电视剧高清| 婷婷成人亚洲综合国产| 国产+国产在线| 午夜久久久久久禁播电影| 成人免费一区二区三区| 国产一区二区三区在线男友| 欧美丰满熟妇xxxx性ppx人交| 日韩一区二区+在线播放| 4399理论片午午伦夜理片| 少妇人妻诗雨1一一12| 亚洲爆乳无码专区| 国产精品成人av在线观看| 看娇妻被3p—害羞刺激的交换 | 又色又爽又高潮免费视频国产| 国产激情久久久久影院小草| 亚洲风情亚aⅴ在线发布|