Operating System - Linux
1752483 Members
5359 Online
108788 Solutions
New Discussion юеВ

Resizing ReiserFS on SUSE Ent 9

 
WayneKim
Frequent Advisor

Resizing ReiserFS on SUSE Ent 9

I am trying to resize/extend the file system on SUSE 9. The LUN is from HP EVA. Partitioner in YaST reads as follows:
/dev/sda 1.2TB HSV200 0 163176
/dev/sda1 999.9GB Linux native /u 0 130534
When I choose /dev/sda1 and click on Resize and try to take up the unused space, I get a "resize failed" error. Please help.
16 REPLIES 16
Ciro  Iriarte
Valued Contributor

Re: Resizing ReiserFS on SUSE Ent 9

Are you using LVM?. If you're not, you should unmount the filesystem, delete the first partition and recreate it again with the new size. As a last step, run resize_reiserfs.

Obviously, this is all without warranty :D
WayneKim
Frequent Advisor

Re: Resizing ReiserFS on SUSE Ent 9

I'm looking for a way to not have to delete the partition. Is it not possible to just claim the unused space and extend the existing file system?
GiTs_1
New Member

Re: Resizing ReiserFS on SUSE Ent 9

Umount FS. Extend partition using EVA GUI.
Use parted from shell and extend partition table.
Use resize_reiserfs.
to extend FS.
Be Smart Use Linux http://gits.bg
Maaz
Valued Contributor

Re: Resizing ReiserFS on SUSE Ent 9

1, Umount the file system
2, extend the partition using EVA GUI.
3, to recognize the new(extension) size of disk, you have to reboot the OS (SLES 10)
4, after the system boots, now using fdisk/cfdisk/yast, you can see the new(extended) disk size

But 'df -hT' still shows the old(small) size.

5, now run the following command
# resize_reiserfs /dev/sda1

To verify, run "df -hT"

Regards
WayneKim
Frequent Advisor

Re: Resizing ReiserFS on SUSE Ent 9

Am I doing the "resize" command while the file system is unmounted?
Ciro  Iriarte
Valued Contributor

Re: Resizing ReiserFS on SUSE Ent 9

resize_reiserfs can be run online, the delete/create partition procedure doesn't delete the data (it's supposed to be safe, but you never know :D)...
WayneKim
Frequent Advisor

Re: Resizing ReiserFS on SUSE Ent 9

"resize_reiserfs /dev/sda1" did not extend the file system. It still shows at 1TB and doesn't claim the 250GB unused space.

odsprismaserver:~ # df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/cciss/c0d0p2
reiserfs 5.1G 2.8G 2.3G 55% /
tmpfs tmpfs 1.7G 4.0K 1.7G 1% /dev/shm
/dev/cciss/c0d0p3
reiserfs 63G 3.1G 60G 5% /Prisma_Files
/dev/sda1 reiserfs 1000G 422G 578G 43% /u
odsprismarip:/var/db/forms
nfs 250G 13G 238G 5% /var/db/forms
odsprismaserver:~ # resize_reiserfs /dev/sda1
resize_reiserfs 3.6.19 (2003 www.namesys.com)



resize_reiserfs: On-line resizing finished successfully.

odsprismaserver:~ # df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/cciss/c0d0p2
reiserfs 5.1G 2.8G 2.3G 55% /
tmpfs tmpfs 1.7G 4.0K 1.7G 1% /dev/shm
/dev/cciss/c0d0p3
reiserfs 63G 3.1G 60G 5% /Prisma_Files
/dev/sda1 reiserfs 1000G 422G 578G 43% /u
odsprismarip:/var/db/forms
nfs 250G 13G 238G 5% /var/db/forms

Any idea??
Maaz
Valued Contributor

Re: Resizing ReiserFS on SUSE Ent 9

does the OS is at SP3 level(it should be at SP 4)
whats the output of 'SPident' ?
WayneKim
Frequent Advisor

Re: Resizing ReiserFS on SUSE Ent 9

odsprismaserver:~ # SPident

CONCLUSION: System is up-to-date!
found SLES-9-i386-SP3 + "online updates"

The system is under certain requirements to support the application that it's running. I am not able to independently upgrade the SP level of the OS as it violates the SLA of the application's vendor. Is SP4 an absolute requirement for resizing to work?