DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just added a new disk to my PC. As a result, I'm trying to enlarge an ext2 fs on a lv. I had added the new pv to the vg and then I extended the lv. Now I have a lv that is about 380 Gigs with a filesystem that is about 200Gigs. Here is what I typed in and here is what happend.
spot:/# resize2fs -p -f /dev/mythdisk/tvshows
resize2fs 1.35 (28-Feb-2004)
Resizing the filesystem on /dev/mythdisk/tvshows to 96436224 (4k) blocks.
Begin pass 1 (max = 1452)
Extending the inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Killed
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225
Rep:
Why did you use the -f option? Is there a specific reason to override the filesystem's checks? Have you tried it without this option and seen if it reports any problems?
I used the -f option since I didn't want it to harass me about using fsck. What's interesting is that it doesn't kill over if I resize it up to 271G. The LV is, however, 361.88G. I have tried it without the -f option and the behavior is the same. Anyway, is there a size limit on ext2 fs or is there something wrong?
I figured out what my problem was. When I repartitioned everything to put LVM on my system, I moved my swap space from hda5 to hda2. As a result, it was unable to activate the swap partition and thus would run out of memory. The system itself was killing the process so that it wouldn't run out of memory. I just wish that it would have given me a better clue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.