LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   extending file system (https://www.linuxquestions.org/questions/linux-software-2/extending-file-system-910667/)

b11singh 10-28-2011 12:56 PM

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

travisdh1 10-28-2011 01:20 PM

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.

b11singh 10-28-2011 01:28 PM

Thanks. I will give it a try.

custangro 10-28-2011 02:55 PM

Quote:

Originally Posted by b11singh (Post 4510740)
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


b11singh 10-28-2011 03:05 PM

[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

jemesright 10-31-2011 10:39 PM

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.

custangro 11-01-2011 05:48 PM

Quote:

Originally Posted by b11singh (Post 4510799)
[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?

agentbuzz 11-01-2011 08:08 PM

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

http://www.howtoforge.com/linux_lvm


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