91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

lvm收縮邏輯卷空間是怎樣的

發布時間:2021-11-09 16:33:15 來源:億速云 閱讀:158 作者:柒染 欄目:建站服務器

今天就跟大家聊聊有關lvm收縮邏輯卷空間是怎樣的,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結了以下內容,希望大家根據這篇文章可以有所收獲。

[root@cspserver1 /]#  umount /softdata
[root@cspserver1 /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/RHELVG-ROOT
                       15G   12G  2.6G  82% /
tmpfs                  16G  7.8G  8.0G  50% /dev/shm
/dev/sda1             190M   40M  141M  23% /boot
/dev/mapper/RHELVG-HOME
                       20G   55M   19G   1% /home
/dev/mapper/RHELVG-OPT
                       15G   13G  1.2G  92% /opt
/dev/mapper/RHELVG-TMP
                       15G   44M   14G   1% /tmp
/dev/mapper/RHELVG-USR
                       15G  3.8G   11G  28% /usr
/dev/mapper/RHELVG-VAR
                       15G  261M   14G   2% /var

[root@cspserver1 /]# e2fsck -f /dev/mapper/RHELVG-SOFTDATA
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mapper/RHELVG-SOFTDATA: 11/2559088 files (0.0% non-contiguous), 205643/10232832 blocks
[root@cspserver1 /]# resize2fs /dev/mapper/RHELVG-SOFTDATA 10240m   (文件系統縮到10g)
resize2fs 1.41.12 (17-May-2010)
Resizing the filesystem on /dev/mapper/RHELVG-SOFTDATA to 2621440 (4k) blocks.
The filesystem on /dev/mapper/RHELVG-SOFTDATA is now 2621440 blocks long.

is already 2621440 blocks long.  Nothing to do!

[root@cspserver1 /]# lvreduce -L 10240m /dev/mapper/RHELVG-SOFTDATA    (再縮lv)
  WARNING: Reducing active logical volume to 10.00 GiB.
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce RHELVG/SOFTDATA? [y/n]: y
  Size of logical volume RHELVG/SOFTDATA changed from 39.04 GiB (9993 extents) to 10.00 GiB (2560 extents).
  Logical volume SOFTDATA successfully resized.
[root@cspserver1 /]# mount /dev/mapper/RHELVG-SOFTDATA /softdata
[root@cspserver1 /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/RHELVG-ROOT
                       15G   12G  2.6G  82% /
tmpfs                  16G  7.8G  8.0G  50% /dev/shm
/dev/sda1             190M   40M  141M  23% /boot
/dev/mapper/RHELVG-HOME
                       20G   55M   19G   1% /home
/dev/mapper/RHELVG-OPT
                       15G   13G  1.2G  92% /opt
/dev/mapper/RHELVG-TMP
                       15G   44M   14G   1% /tmp
/dev/mapper/RHELVG-USR
                       15G  3.8G   11G  28% /usr
/dev/mapper/RHELVG-VAR
                       15G  261M   14G   2% /var
/dev/mapper/RHELVG-SOFTDATA
                      9.8G   36M  9.2G   1% /softdata
[root@cspserver1 /]# pvs
  PV         VG     Fmt  Attr PSize   PFree
  /dev/sda2  RHELVG lvm2 a--u 149.80g 29.04g
[root@cspserver1 /]# lvextend -L +20480M /dev/mapper/RHELVG-OPT  (擴展邏輯卷)
  Size of logical volume RHELVG/OPT changed from 15.00 GiB (3840 extents) to 35.00 GiB (8960 extents).
  Logical volume OPT successfully resized.
[root@cspserver1 /]# resize2fs /dev/mapper/RHELVG-OPT   (將擴展的邏輯卷同步到文件系統)
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/RHELVG-OPT is mounted on /opt; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 3
Performing an on-line resize of /dev/mapper/RHELVG-OPT to 9175040 (4k) blocks.
The filesystem on /dev/mapper/RHELVG-OPT is now 9175040 blocks long.

[root@cspserver1 /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/RHELVG-ROOT
                       15G   12G  2.6G  82% /
tmpfs                  16G  7.8G  8.0G  50% /dev/shm
/dev/sda1             190M   40M  141M  23% /boot
/dev/mapper/RHELVG-HOME
                       20G   55M   19G   1% /home
/dev/mapper/RHELVG-OPT
                       35G   13G   20G  40% /opt
/dev/mapper/RHELVG-TMP
                       15G   44M   14G   1% /tmp
/dev/mapper/RHELVG-USR
                       15G  3.8G   11G  28% /usr
/dev/mapper/RHELVG-VAR
                       15G  261M   14G   2% /var
/dev/mapper/RHELVG-SOFTDATA
                      9.8G   36M  9.2G   1% /softdata
[root@cspserver1 /]#

看完上述內容,你們對lvm收縮邏輯卷空間是怎樣的有進一步的了解嗎?如果還想了解更多知識或者相關內容,請關注億速云行業資訊頻道,感謝大家的支持。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

lvm
AI

平湖市| 肇庆市| 娱乐| 安康市| 恩施市| 平和县| 怀安县| 亚东县| 沙田区| 龙陵县| 辰溪县| 平遥县| 新密市| 惠来县| 苍溪县| 马尔康县| 上犹县| 淮阳县| 六盘水市| 临漳县| 庄河市| 松溪县| 衡阳市| 泰安市| 永登县| 荥阳市| 耿马| 惠安县| 新竹县| 德格县| 茶陵县| 万山特区| 那曲县| 盘锦市| 吉首市| 灵寿县| 大冶市| 沐川县| 东乌| 随州市| 吐鲁番市|