error in resize

saeedsaberi4426

New Member
Joined
Aug 30, 2024
Messages
2
Reaction score
0
Credits
24
i resized a root directory on a server on sda3 after that i got these errors :

[24970.292627] buffer I/O error on device sda3, logical block 18471150

[24970.760386] Aborting journal on device sda3-8

[24970.760738] Buffer I/O error on dev sda3, logical block 9994240, lost sync page write

[24970.761038] JDB2: Error -5 detected when updating journal superblock for sda3-8.

[24971.260356] EXT4-fs error (device sda3):ext4_journal_check_start:83:comm rs:main Q:reg: Detected aborted journal

[24971.262413] EXT4-fs (sda3): Remounting filesystem read-only
 


i resized a root directory on a server
Hello and welcome to forums!

Resizing root partition is done from live USB or live DVD and the exact procedure involves resizing file system prior and after to resizing root partition.

How exactly did you resize root partition?
Did you resize it to consume more space or less space?
Are you using LVM or disk encryption?
 
Hello and welcome to forums!

Resizing root partition is done from live USB or live DVD and the exact procedure involves resizing file system prior and after to resizing root partition.

How exactly did you resize root partition?
Did you resize it to consume more space or less space?
Are you using LVM or disk encryption?
hello and thank you very much for your answer .i wanted to resize with parted root directory in redhat 9.I decided to increase the space of the root directory from 80 to 95. But I entered 15GB in partize 3 and after exiting parted, I realized that the root space has decreased from 80 to 15, and the server keeps giving error messages. Of course, I did not restart the server. In a vm as a practice, I tried all the ways and tried almost all the fsck commands, I even reinstalled grub, but the server does not run again. The file system is also ext4.
 
I tried all the ways and tried almost all the fsck commands, I even reinstalled grub, but the server does not run again.
You shouldn't have done anything, but shut it down and then manually resize back to original size prior running fsck, most likely some or all of the shrinked data is lost.

Also running fsck on a mounted file system is not safe, just like shrinking root partition while mounted is not safe.
Is it LVM or plain partition table? encrypted or not?

If you have backup then the best thing would be to reinstall system.
 

Members online


Top