Visit Our UNIX and Linux User Community


lvextend on ext3 resizing

 
Thread Tools Search this Thread
Operating Systems Linux SuSE lvextend on ext3 resizing
# 1  
Old 10-26-2009
lvextend on ext3 resizing

Hi all

IM very curious about one thing
Im currently playing with a test server SLES x64 SP2, and I got to a serious issue which is really sorry for the word pissing me off. Smilie

I created an pv, then vg and finaly some lv's which is fine.

I mounted then and everything worked fine till....

my vg have some free unallocated space so I wanted to try out the offline resizing for ext3 lv.

kernel 2.6.10
e2fsprogs 1.38


used
1. umount /tmp
2. lvexted -L50G /dev/vg00/lvol01
3. e2fsck -f /dev/vg00/lvol01
4. resize2fs /dev/vg00/lvol01
5. mount /dev/vg00/lvol01 /tmp

The actuall problem is that by using df -h /tmp the size of the lv has increased, still the free space wasnt showed correctly as an example

Before

Size Used Aval.
5 GB 4.5 GB 0.5 GB

After resize
55GB 54.5 GB 0.5 GB

TO fix this issue I had simply to reboot the server which isnt very handy

Just for an example I tried the same on my Workstation with Fedora12 BETA!!!

just wow online resizing
lvextend, resize2fs and thats all

I read some articles that from e2fsprogs version 1.39 you are able to resize ext3 online still It cannot be true that I need to reboot the whole linux enteprise class server so the changes can take place.

I also tried the tip with removing the Journaling option still the issue remains the same tune2fs -O ^has_journal and tune2fs -O has_journal

I would be very thankfull for any tips or recommendation

Have a nice day

Previous Thread | Next Thread
Test Your Knowledge in Computers #36
Difficulty: Easy
Moving processes from the main memory of a memory-constrained Linux computer to disk is called 'swapping'.
True or False?

10 More Discussions You Might Find Interesting

1. Red Hat

LVextend problem

So, we are facing problem with extending LV... We had 2x300GB in mirror on IBM Xserver for rootvg. We failed one of the disks and replaced it with 600GB, rebuild it and did it with the other disk the same... Extended Virtual drive on RAID to 600GB. After that we have shut down the server and... (1 Reply)
Discussion started by: protein
1 Replies

2. UNIX for Advanced & Expert Users

Lv not useable after lvextend - high I/O

Hello, on an Ubuntu 12.04 NAS there are some lvm's VG #PV #LV #SN Attr VSize VFree vg01 1 2 0 wz--n- 930,45g 411,83g LV VG Attr LSize Origin Snap% Move Log Copy% Convert lv-iscsi vg01 -wi-a- 500,00g lv-root vg01... (0 Replies)
Discussion started by: darktux
0 Replies

3. HP-UX

Some doubts about resizing fs's in HP-UX

Hello, I'm new to HP-UX and I'm not sure about some concepts related to resizing fs's under this OS. First of all I'm only asking about resizing ONLINE, it means, without having to umount the fs nor rebooting, etc. Q1. I've read that in order to resize a fs online there are 2 requirements:... (3 Replies)
Discussion started by: asanchez
3 Replies

4. Solaris

Resizing a disk

I'm used to using AIX but a new box running Solaris I need a little help with. The disk are presented from a SAN, the disk needing to change is presented as 148GBs drive which was allocated to a file system as the same. I need to change that without losing any data. I know I can change the disk... (7 Replies)
Discussion started by: ltlawnman
7 Replies

5. Solaris

Parition Resizing

Is there a way to take space from the /opt slice (/dev/dsk/c1t0d0s5) and then put it in the /var (/dev/dsk/c1t0d0s1)? In theory, I should be able to ufsdump /opt and /var to another drive. Use disk label to resize those two slices (ex. take 10G from opt and add to /var) and then newfs and dump back... (1 Reply)
Discussion started by: adelsin
1 Replies

6. Solaris

lvextend in solaris 10

Hi all, I wish to extend my logical volumn, previously i am using the command lvextend in HPUX, but hows in solaris 10 ? Thank you (1 Reply)
Discussion started by: SmartAntz
1 Replies

7. UNIX for Dummies Questions & Answers

Mounting fs ext3

I'm trying to find a correct command that will mount a filesystem ext3 the device /dev/sda1 to mount point /mnt/usb but not allow any programs to run from it. I want to be honest as I've read the forum rules... This is a homework question BUT, i'm generally interested in the correct process and... (3 Replies)
Discussion started by: CasperQuiet
3 Replies

8. Filesystems, Disks and Memory

Help with resizing partitions

Hi First post :o I have recently used Acronis (Backup software for data backup and disaster recovery in Windows and Linux - Acronis) to create identical systems that I need to build. Everything works OK, but one of the machine has a bigger harddisk (250G) than the one I used to create the... (2 Replies)
Discussion started by: forte712
2 Replies

9. AIX

Resizing VG with mirror

Dear Friends, I would like to know if there is any chance to expand a Volume Group, If this VG have a mirror. If there is any chance to do this what would be the safer way to avoid lost any data. Sorry about my English.:D Thanks a lot. (1 Reply)
Discussion started by: chrispaz
1 Replies

10. UNIX for Dummies Questions & Answers

/ext2 and /ext3

Hi all, I was installing linux, so i want to know the basic difference between /ext2 and /ext3 filetype.. what is the significance of using /ext2 and /ext3 pls clarify Thanks Vasikaran (2 Replies)
Discussion started by: vasikaran
2 Replies

Featured Tech Videos