LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-30-2012, 11:05 PM   #1
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Rep: Reputation: 3
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
 
Old 08-31-2012, 12:45 AM   #2
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java fun (firefox plugin problems with x86_x64 system) epsilon72 Linux - Software 1 03-24-2007 01:36 AM
is there any fun() available in linux to find system uptime without using sysinfo uppala MEPIS 2 06-15-2005 09:45 AM
Fun with Samba and file permissions atrivis42 Linux - Networking 2 07-06-2004 03:55 AM
Checksum errors and Fun with System Halts Jasen Linux - General 3 02-10-2003 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration