Fedora 中使用邏輯卷管理器調整LVM分區大小

當時安裝fedora 18時分區方案不是很好,使得/根目錄剩餘空間不足,於是想擴展下/目錄,相當當初安裝到時候是LVM分區,於是找了下,有一個圖形化界面的邏輯卷管理器。

[shenghao@sh-thinkpad ~]$ df -h
文件系統                 容量  已用  可用 已用% 掛載點
rootfs                   9.8G  7.0G  2.3G   76% /
devtmpfs                 957M     0  957M    0% /dev
tmpfs                    972M  232K  972M    1% /dev/shm
tmpfs                    972M  2.8M  969M    1% /run
tmpfs                    972M     0  972M    0% /sys/fs/cgroup
/dev/mapper/fedora-root  9.8G  7.0G  2.3G   76% /
tmpfs                    972M   28K  972M    1% /tmp
/dev/mapper/fedora-home   18G  1.5G   16G    9% /home
/dev/sda2                 40G   29G   12G   72% /run/media/shenghao/7E283A1F2839D73D
/dev/sda5                 81G   53G   28G   66% /run/media/shenghao/新加捲
/dev/sda6                149G  122G   27G   82% /run/media/shenghao/新加捲1

root只剩2.3G可用,下面安裝邏輯卷管理器,查找一下這個軟件:

[shenghao@sh-thinkpad ~]$ sudo yum list |grep lvm
[sudo] password for shenghao:
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
llvm-libs.i686                             3.1-11.fc18                  @koji-override-0/$releasever
lvm2.i686                                  2.02.98-4.fc18               @koji-override-0/$releasever
lvm2-libs.i686                             2.02.98-4.fc18               @koji-override-0/$releasever
holland-mysqllvm.noarch                    1.0.6-6.fc18                 fedora 
llvm.i686                                  3.2-2.fc18                   updates
llvm-devel.i686                            3.2-2.fc18                   updates
llvm-doc.noarch                            3.2-2.fc18                   updates
llvm-libs.i686                             3.2-2.fc18                   updates
llvm-ocaml.i686                            3.2-2.fc18                   updates
llvm-ocaml-devel.i686                      3.2-2.fc18                   updates
llvm-ocaml-doc.noarch                      3.2-2.fc18                   updates
llvm-static.i686                           3.2-2.fc18                   updates
lvm2-cluster.i686                          2.02.98-4.fc18               fedora 
lvm2-devel.i686                            2.02.98-4.fc18               fedora 
lvm2-sysvinit.i686                         2.02.98-4.fc18               fedora 
mingw32-llvm.noarch                        3.0-5.fc18                   fedora 
mingw32-llvm-static.noarch                 3.0-5.fc18                   fedora 
python-lvm.i686                            1.9.2-1.fc18                 fedora 
system-config-lvm.noarch                   1.1.18-1.fc18                fedora 
visualvm.i686                              1.3.3-1.3.1.fc17.1           fedora


很明顯,system-config-lvm.noarch這個就是,然後install

[root@sh-thinkpad shenghao]# yum install system-config-lvm.noarch
已加載插件:fastestmirror, langpacks, presto, refresh-packagekit, remove-with-leaves
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * fedora: mirrors.sohu.com
 * rpmfusion-free: mirrors.163.com
 * rpmfusion-free-updates: mirrors.163.com
 * rpmfusion-nonfree: mirrors.163.com
 * rpmfusion-nonfree-updates: mirrors.163.com
 * updates: mirrors.163.com
解決依賴關係
--> 執行事務檢查
---> 軟件包 system-config-lvm.noarch.0.1.1.18-1.fc18 將被 安裝
--> 處理依賴關係 gnome-python2-gnome,它被軟件包 system-config-lvm-1.1.18-1.fc18.noarch 需要
--> 處理依賴關係 gnome-python2-bonobo,它被軟件包 system-config-lvm-1.1.18-1.fc18.noarch 需要
--> 執行事務檢查
---> 軟件包 gnome-python2-bonobo.i686.0.2.28.1-9.fc18 將被 安裝
--> 處理依賴關係 pyorbit(x86-32) >= 2.0.1,它被軟件包 gnome-python2-bonobo-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 libbonoboui(x86-32) >= 2.8.0,它被軟件包 gnome-python2-bonobo-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 libbonobo(x86-32) >= 2.8.0,它被軟件包 gnome-python2-bonobo-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 bonobo-activation >= 2.8.0,它被軟件包 gnome-python2-bonobo-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 libgnome-2.so.0,它被軟件包 gnome-python2-bonobo-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 libbonoboui-2.so.0,它被軟件包 gnome-python2-bonobo-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 libbonobo-activation.so.4,它被軟件包 gnome-python2-bonobo-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 libbonobo-2.so.0,它被軟件包 gnome-python2-bonobo-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 libORBit-2.so.0,它被軟件包 gnome-python2-bonobo-2.28.1-9.fc18.i686 需要
---> 軟件包 gnome-python2-gnome.i686.0.2.28.1-9.fc18 將被 安裝
--> 處理依賴關係 gnome-python2-gnomevfs(x86-32) = 2.28.1-9.fc18,它被軟件包 gnome-python2-gnome-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 libgnomeui(x86-32) >= 2.8.0,它被軟件包 gnome-python2-gnome-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 libgnomevfs-2.so.0,它被軟件包 gnome-python2-gnome-2.28.1-9.fc18.i686 需要
--> 處理依賴關係 libgnomeui-2.so.0,它被軟件包 gnome-python2-gnome-2.28.1-9.fc18.i686 需要
--> 執行事務檢查
---> 軟件包 ORBit2.i686.0.2.14.19-6.fc18 將被 安裝
--> 處理依賴關係 libIDL-2.so.0,它被軟件包 ORBit2-2.14.19-6.fc18.i686 需要
---> 軟件包 gnome-python2-gnomevfs.i686.0.2.28.1-9.fc18 將被 安裝
---> 軟件包 gnome-vfs2.i686.0.2.24.4-10.fc18 將被 安裝
---> 軟件包 libbonobo.i686.0.2.32.1-3.fc18 將被 安裝
---> 軟件包 libbonoboui.i686.0.2.24.5-4.fc18 將被 安裝
---> 軟件包 libgnome.i686.0.2.32.1-5.fc18 將被 安裝
---> 軟件包 libgnomeui.i686.0.2.24.5-5.fc18 將被 安裝
---> 軟件包 pyorbit.i686.0.2.24.0-11.fc18 將被 安裝
--> 執行事務檢查
---> 軟件包 libIDL.i686.0.0.8.14-5.fc18 將被 安裝
--> 完成依賴關係計算
依賴關係解決
================================================================================
 Package                     架構        版本                倉庫          大小
================================================================================
正在安裝:
 system-config-lvm           noarch      1.1.18-1.fc18       fedora       462 k
爲依賴而安裝:
 ORBit2                      i686        2.14.19-6.fc18      fedora       170 k
 gnome-python2-bonobo        i686        2.28.1-9.fc18       fedora        82 k
 gnome-python2-gnome         i686        2.28.1-9.fc18       fedora        77 k
 gnome-python2-gnomevfs      i686        2.28.1-9.fc18       fedora        82 k
 gnome-vfs2                  i686        2.24.4-10.fc18      updates      835 k
 libIDL                      i686        0.8.14-5.fc18       fedora        85 k
 libbonobo                   i686        2.32.1-3.fc18       fedora       424 k
 libbonoboui                 i686        2.24.5-4.fc18       fedora       340 k
 libgnome                    i686        2.32.1-5.fc18       fedora       738 k
 libgnomeui                  i686        2.24.5-5.fc18       fedora       785 k
 pyorbit                     i686        2.24.0-11.fc18      fedora        50 k
事務概要
================================================================================
安裝  1 軟件包 (+11 Dependent packages)
總下載量:4.0 M
安裝大小:20 M
確定嗎?[y/N]:y
下載軟件包:
(1/12): ORBit2-2.14.19-6.fc18.i686.rpm                     | 170 kB   00:00    
(2/12): gnome-python2-gnome-2.28.1-9.fc18.i686.rpm         |  77 kB   00:00    
(3/12): gnome-python2-bonobo-2.28.1-9.fc18.i686.rpm        |  82 kB   00:00    
(4/12): gnome-python2-gnomevfs-2.28.1-9.fc18.i686.rpm      |  82 kB   00:00    
(5/12): libIDL-0.8.14-5.fc18.i686.rpm                      |  85 kB   00:00    
(6/12): libbonoboui-2.24.5-4.fc18.i686.rpm                 | 340 kB   00:00    
(7/12): libbonobo-2.32.1-3.fc18.i686.rpm                   | 424 kB   00:00    
(8/12): libgnome-2.32.1-5.fc18.i686.rpm                    | 738 kB   00:00    
(9/12): pyorbit-2.24.0-11.fc18.i686.rpm                    |  50 kB   00:00    
(10/12): libgnomeui-2.24.5-5.fc18.i686.rpm                 | 785 kB   00:00    
(11/12): system-config-lvm-1.1.18-1.fc18.noarch.rpm        | 462 kB   00:00    
(12/12): gnome-vfs2-2.24.4-10.fc18.i686.rpm                | 835 kB   00:03    
--------------------------------------------------------------------------------
總計                                            1.2 MB/s | 4.0 MB     00:03    
運行事務檢查
執行事務測試
事務測試成功
執行事務
  正在安裝    : gnome-vfs2-2.24.4-10.fc18.i686                             1/12
  正在安裝    : libIDL-0.8.14-5.fc18.i686                                  2/12
  正在安裝    : ORBit2-2.14.19-6.fc18.i686                                 3/12
  正在安裝    : pyorbit-2.24.0-11.fc18.i686                                4/12
  正在安裝    : libbonobo-2.32.1-3.fc18.i686                               5/12
  正在安裝    : libgnome-2.32.1-5.fc18.i686                                6/12
  正在安裝    : libbonoboui-2.24.5-4.fc18.i686                             7/12
  正在安裝    : gnome-python2-bonobo-2.28.1-9.fc18.i686                    8/12
  正在安裝    : libgnomeui-2.24.5-5.fc18.i686                              9/12
  正在安裝    : gnome-python2-gnomevfs-2.28.1-9.fc18.i686                 10/12
  正在安裝    : gnome-python2-gnome-2.28.1-9.fc18.i686                    11/12
  正在安裝    : system-config-lvm-1.1.18-1.fc18.noarch                    12/12
  Verifying   : libIDL-0.8.14-5.fc18.i686                                  1/12
  Verifying   : gnome-python2-gnome-2.28.1-9.fc18.i686                     2/12
  Verifying   : libbonobo-2.32.1-3.fc18.i686                               3/12
  Verifying   : gnome-python2-gnomevfs-2.28.1-9.fc18.i686                  4/12
  Verifying   : gnome-python2-bonobo-2.28.1-9.fc18.i686                    5/12
  Verifying   : pyorbit-2.24.0-11.fc18.i686                                6/12
  Verifying   : system-config-lvm-1.1.18-1.fc18.noarch                     7/12
  Verifying   : libgnomeui-2.24.5-5.fc18.i686                              8/12
  Verifying   : libgnome-2.32.1-5.fc18.i686                                9/12
  Verifying   : ORBit2-2.14.19-6.fc18.i686                                10/12
  Verifying   : gnome-vfs2-2.24.4-10.fc18.i686                            11/12
  Verifying   : libbonoboui-2.24.5-4.fc18.i686                            12/12
已安裝:
  system-config-lvm.noarch 0:1.1.18-1.fc18                                     
作爲依賴被安裝:
  ORBit2.i686 0:2.14.19-6.fc18                                                 
  gnome-python2-bonobo.i686 0:2.28.1-9.fc18                                    
  gnome-python2-gnome.i686 0:2.28.1-9.fc18                                     
  gnome-python2-gnomevfs.i686 0:2.28.1-9.fc18                                  
  gnome-vfs2.i686 0:2.24.4-10.fc18                                             
  libIDL.i686 0:0.8.14-5.fc18                                                  
  libbonobo.i686 0:2.32.1-3.fc18                                               
  libbonoboui.i686 0:2.24.5-4.fc18                                             
  libgnome.i686 0:2.32.1-5.fc18                                                
  libgnomeui.i686 0:2.24.5-5.fc18                                              
  pyorbit.i686 0:2.24.0-11.fc18                                                
完畢!

安裝完畢,可以使用了:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章