LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2011, 12:56 PM   #1
b11singh
LQ Newbie
 
Registered: Oct 2011
Posts: 3

Rep: Reputation: Disabled
extending file system


Hello:
We have Linux 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux system. We are using NetApp for storage. We wanted to extend a file system from 200G to 300G. We extended the volume and the LUN but the file system is still not showing the new size when I do df -k. What are we missing? Thanks for your help.
Bhupinder
 
Old 10-28-2011, 01:20 PM   #2
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
You need to increase the size of the partition as well. Depending on the distribution the default tools to do this via a gui will be different. Command line I'm not as good with as I should be so try looking up the man pages of mkfs.
 
Old 10-28-2011, 01:28 PM   #3
b11singh
LQ Newbie
 
Registered: Oct 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks. I will give it a try.
 
Old 10-28-2011, 02:55 PM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by b11singh View Post
Hello:
We have Linux 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux system. We are using NetApp for storage. We wanted to extend a file system from 200G to 300G. We extended the volume and the LUN but the file system is still not showing the new size when I do df -k. What are we missing? Thanks for your help.
Bhupinder
What did you use originally to format that volume?

Show the output of the following commands...

Code:
df -h /volume
fdisk -l
pvs
lvs
vgs

Last edited by custangro; 11-01-2011 at 05:47 PM.
 
Old 10-28-2011, 03:05 PM   #5
b11singh
LQ Newbie
 
Registered: Oct 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
[oracle@dexerpdbp1 today]$ df -h /dev/sdf
Filesystem Size Used Avail Use% Mounted on
/dev/sdf 197G 184G 3.7G 99% /ebsprod/oradata/data01

[root@dexerpdbp1 ~]# fdisk -l|grep sdf
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf doesn't contain a valid partition table
Disk /dev/sdg doesn't contain a valid partition table
Disk /dev/sdi doesn't contain a valid partition table
Disk /dev/sdj doesn't contain a valid partition table
Disk /dev/sdk doesn't contain a valid partition table
Disk /dev/sdl doesn't contain a valid partition table
Disk /dev/sdn doesn't contain a valid partition table
Disk /dev/sdo doesn't contain a valid partition table
Disk /dev/sdp doesn't contain a valid partition table
Disk /dev/sdq doesn't contain a valid partition table
Disk /dev/sds doesn't contain a valid partition table
Disk /dev/sdt doesn't contain a valid partition table
Disk /dev/sdu doesn't contain a valid partition table
Disk /dev/sdv doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/sdf: 214.7 GB, 214748364800 bytes

[root@dexerpdbp1 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/dm-2 VolGroup00 lvm2 a- 29.88G 5.97G

[root@dexerpdbp1 ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LogVol00 VolGroup00 -wi-ao 7.50G
LogVol01 VolGroup00 -wi-ao 16.41G

[root@dexerpdbp1 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 2 0 wz--n- 29.88G 5.97G
 
Old 10-31-2011, 10:39 PM   #6
jemesright
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Rep: Reputation: Disabled
Unassigned is just "tag" name, but that does't mean that is the free
space.
You just run mount command and compare with your slices displayed below.
Is all slices displayed below are mounted or not, if not mount and use.
 
Old 11-01-2011, 05:48 PM   #7
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by b11singh View Post
[oracle@dexerpdbp1 today]$ df -h /dev/sdf
Filesystem Size Used Avail Use% Mounted on
/dev/sdf 197G 184G 3.7G 99% /ebsprod/oradata/data01

[root@dexerpdbp1 ~]# fdisk -l|grep sdf
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf doesn't contain a valid partition table
Disk /dev/sdg doesn't contain a valid partition table
Disk /dev/sdi doesn't contain a valid partition table
Disk /dev/sdj doesn't contain a valid partition table
Disk /dev/sdk doesn't contain a valid partition table
Disk /dev/sdl doesn't contain a valid partition table
Disk /dev/sdn doesn't contain a valid partition table
Disk /dev/sdo doesn't contain a valid partition table
Disk /dev/sdp doesn't contain a valid partition table
Disk /dev/sdq doesn't contain a valid partition table
Disk /dev/sds doesn't contain a valid partition table
Disk /dev/sdt doesn't contain a valid partition table
Disk /dev/sdu doesn't contain a valid partition table
Disk /dev/sdv doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/sdf: 214.7 GB, 214748364800 bytes

[root@dexerpdbp1 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/dm-2 VolGroup00 lvm2 a- 29.88G 5.97G

[root@dexerpdbp1 ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LogVol00 VolGroup00 -wi-ao 7.50G
LogVol01 VolGroup00 -wi-ao 16.41G

[root@dexerpdbp1 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 2 0 wz--n- 29.88G 5.97G
Doesn't look like /dev/sdf was formated using LVM right?
 
Old 11-01-2011, 08:08 PM   #8
agentbuzz
Member
 
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 131

Rep: Reputation: 25
b11singh:
Here is a good 9-page document on LVM that includes enlarging and shrinking volumes:

http://www.howtoforge.com/linux_lvm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] extending file system ehsanen77 Linux - Virtualization and Cloud 1 09-14-2010 05:48 AM
Linpus Fedora after saving files to file system, CAN'T open FILE SYSTEM from desktop! remiwa Fedora 2 01-07-2009 07:28 AM
Extending usable file size on RHEL 3 irvined Linux - Newbie 0 10-08-2007 07:21 AM
when does linux switch from realmode file system to protectedmode file system sitthar Linux - General 3 04-08-2006 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:41 AM.

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