LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 05-09-2011, 02:48 AM   #1
panneer_dxb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 0
increase the file system size


Hi,

i have extended the 2GB of U01 . after that how to increase file system.


Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/vgroot-LogVol00
ext3 2031440 564416 1362168 30% /
/dev/mapper/vgroot-usr
ext3 8125880 2745892 4960560 36% /usr
/dev/mapper/vgroot-var
ext3 8125880 215880 7490572 3% /var
/dev/mapper/vgroot-home
ext3 3047184 70340 2819560 3% /home
/dev/mapper/vgroot-tmp
ext3 3047184 70244 2819656 3% /tmp
/dev/mapper/vgroot-opt
ext3 8125880 149632 7556820 2% /opt
/dev/sda1 vfat 204580 17412 187168 9% /boot/efi
tmpfs tmpfs 8164432 0 8164432 0% /dev/shm
/dev/mapper/vgroot-lvol02
ext3 10321208 154236 9642684 2% /u01
____________________________
lvdisplay -v /dev/vgroot/lvol02
Using logical volume(s) on command line
--- Logical volume ---
LV Name /dev/vgroot/lvol02
VG Name vgroot
LV UUID y3LMHB-GyPb-Gw2E-TWHa-lbgo-u2AC-T2tB5g
LV Write Access read/write
LV Status available
# open 1
LV Size 11.00 GB
Current LE 352
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:7
____________
 
Old 05-09-2011, 03:52 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Have a look at the man page for resize2fs/resize4fs (depending on the filesystem you configured).
Code:
man resize2fs
man resize4fs
Kind regards,

Eric
 
Old 05-09-2011, 02:02 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
resize2fs /dev/vgroot/lvol02

Should resize accordingly without having to umount the filesystem.
 
Old 06-02-2014, 12:27 AM   #4
panneer_dxb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
script erroe

Hi ,

i am getting below error while executing my script. i have attached my script also.

ps.sh: line 72: syntax error near unexpected token `done'
ps.sh: line 72: ` done'

Thanks
Attached Files
File Type: txt script.txt (1.9 KB, 17 views)

Last edited by panneer_dxb; 06-02-2014 at 12:39 AM.
 
Old 06-02-2014, 09:03 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
One of the "if" constructs in that loop is missing its "fi". I'm not sure just what you are trying to do there, so I can't be more precise.
 
  


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
[SOLVED] increase a file size? Gibzon Linux - Newbie 10 12-02-2010 06:20 AM
increase the size of a file? Gibzon Linux - General 2 12-01-2010 04:25 AM
file size increase schamana AIX 5 09-18-2007 02:44 PM
increase root file system size superraylo Linux - Hardware 5 05-29-2006 01:40 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:17 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