Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
rb:linuxlvm [10/10/2013 15:21]
127.0.0.1 external edit
rb:linuxlvm [03/10/2018 16:27] (current)
andrew [Mount filesystems]
Line 213: Line 213:
  
  
 +==== Resize LVM ====
  
 +
 +Idea, resize /home to give more to /data.
 +
 +
 +/​dev/​mapper/​rootvg-homelv 6.6G ​ 144M  6.2G   3% /home
 +/​dev/​mapper/​rootvg-varlv 2.9G ​ 176M  2.5G   7% /var
 +/​dev/​mapper/​datavg-datalv 30G ​  ​26G ​ 2.1G  93% /data
 +
 +reduce /home lv
 +
 +umount /home
 +[root@linuxbuild01 ~]# e2fsck -f /​dev/​rootvg/​homelv
 +e2fsck 1.39 (29-May-2006)
 +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/​rootvg/​homelv:​ 11/1786400 files (9.1% non-contiguous),​ 92677/​1785856 blocks
 +
 +
 +[root@linuxbuild01 ~]# resize2fs -p /​dev/​rootvg/​homelv 2G
 +resize2fs 1.39 (29-May-2006)
 +Resizing the filesystem on /​dev/​rootvg/​homelv to 524288 (4k) blocks.
 +Begin pass 3 (max = 55)
 +Scanning inode table          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 +The filesystem on /​dev/​rootvg/​homelv is now 524288 blocks long.
 +
 +[root@linuxbuild01 ~]# 
 ===== Moving LVM filesystems ===== ===== Moving LVM filesystems =====
  

rb/linuxlvm.txt ยท Last modified: 03/10/2018 16:27 by andrew