How to add space to /dev/mapper/root_vg-rootdir

Latest response

Hello all. I had one of my programmers ask me to increase the space on the "/" directory. Coming from a windows background I didn't think this would be difficult but I have not had a good time with this. I've been able to increase the size within fdisk to include the space I added via VMware after some time. But now im getting stuck on how to add that space to the filesystem that "/" is listed under, in this case /dev/mapper/root_vg-rootdir.

When running fdisk -l i can see that ive successfully added the new space to /dev/sda5. You can see that here:

[root@slplaygroundt1 ~]# fdisk -l

Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00063516

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    12591103     5245952   8e  Linux LVM
/dev/sda3        12591104    16793599     2101248   8e  Linux LVM
/dev/sda4        16793600   104857599    44032000    5  Extended
/dev/sda5        16795648   104857599    44030976   83  Linux

Disk /dev/mapper/root_vg-rootdir: 18.2 GB, 18241028096 bytes, 35627008 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/swap_vg-swap: 2147 MB, 2147483648 bytes, 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/home_vg-home: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

And then you can see the files system im trying to add it to here:

   [root@slplaygroundt1 ~]# df -h
Filesystem                   Size  Used Avail Use% Mounted on
/dev/mapper/root_vg-rootdir   17G  2.0G   16G  12% /
devtmpfs                     7.8G     0  7.8G   0% /dev
tmpfs                        7.8G     0  7.8G   0% /dev/shm
tmpfs                        7.8G  234M  7.6G   3% /run
tmpfs                        7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/sda1                   1014M  180M  835M  18% /boot
/dev/mapper/home_vg-home     5.0G   33M  5.0G   1% /home
tmpfs                        1.6G     0  1.6G   0% /run/user/1648050250   

Ive been pouring over documents, red hat related and not but iv gotten sorta stuck. Anyone have a clue or a pointer in the right direction?

Responses