LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File System Fun (https://www.linuxquestions.org/questions/linux-newbie-8/file-system-fun-4175424884/)

malak33 08-30-2012 11:05 PM

File System Fun
 
I'm using CentOS 6.3 trying to figure somethings out that I'm having a hard time with. Looking for help here.
I want to know how to take
Code:

[root@CentOSLabGUI /]# df
Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_centoslabgui-lv_root
                      18618236  2344436  15328036  14% /
tmpfs                  905352      444    904908  1% /dev/shm
/dev/sda1              495844    52532    417712  12% /boot
[root@CentOSLabGUI /]#

the vg /dev/mapper/vg_centoslabgui-lv_root
and resize it to allow me to add another pv and so on. I know how to do all this from a clean harddrive. Also I'm trying to learn how to do this in the terminal no GUI. If you need anymore info let me know. Thanks guys

malak33 08-31-2012 12:45 AM

haha found a solution to the question right here on these forums
i used this
Code:

Shrinking volume from 10G to 9G:

While online enlarging is no problem, you have to umount for shrinking!
Code:
# umount /dev/vg_blah/lv_blah
Perform a check of the filesystem...
Code:
# e2fsck -f /dev/vg_blah/lv_blah
Resize the filesystem first.
Code:
# resize2fs /dev/vg_blah/lv_blah 9G
Then reduce the size of the logical volume.
Code:
# lvreduce -L -1G /dev/vg_blah/lv_blah



All times are GMT -5. The time now is 05:21 AM.