growing root partition

From cpwiki.net
Revision as of 06:39, 4 December 2015 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Check Point Profressional Services


Example

20GB disk space


[Expert@chkpfw1:0]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current
                     4.9G  3.6G  1.1G  77% /
/dev/hda1             289M   24M  251M   9% /boot
tmpfs                 217M     0  217M   0% /dev/shm
/dev/mapper/vg_splat-lv_log
                     6.8G  3.7G  2.9G  57% /var/log


adding 6 gig...

[Expert@chkpfw1:0]# lvresize -L +6GB vg_splat/lv_current
 Extending logical volume lv_current to 11.00 GB
 Logical volume lv_current successfully resized
[Expert@chkpfw1:0]# resize2fs /dev/mapper/vg_splat-lv_current
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/vg_splat-lv_current is mounted on /; on-line resizing required
Performing an on-line resize of /dev/mapper/vg_splat-lv_current to 2883584 (4k) blocks.
The filesystem on /dev/mapper/vg_splat-lv_current is now 2883584 blocks long.