error while extending xfs partition

General support questions
Post Reply
einor
Posts: 19
Joined: 2015/05/22 12:53:04

error while extending xfs partition

Post by einor » 2018/11/20 13:28:41

Hello,

Tried to expand the only (root) partition (non-LVM) on virtual machine using Gparted. Extending was OK, but after reboot I got Emergency Mode with bunch of errros like:
xfs(sda2) metadata i/o error…
xfs(sda2) metadata corruption detected at ..
xfs(sda2) unmount and run xfs_repair

Will xfs_repair help ? Or what else I can do ?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: error while extending xfs partition

Post by TrevorH » 2018/11/20 13:33:34

As far as I know, your options are:

xfs_repair
format and reinstall
power it off and go home

Before you run it though I would check that you've done what you think you were trying to do - for example, did you accidentally tell it to "expand" it from 50GB to 50MB and it's made it smaller?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

einor
Posts: 19
Joined: 2015/05/22 12:53:04

Re: error while extending xfs partition

Post by einor » 2018/11/20 13:39:00

About go home I already know, and this is not an option.
I expanded from 50GB to 90GB, could be a problem that for some reason /dev/sda1 is a swap partition there ? (data on /dev/sda2).
P.S. I did "test expand" on another virtual machine and got same error…
P.P.S. xfs_repair helps

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: error while extending xfs partition

Post by tunk » 2018/11/20 15:37:48

By "xfs_repair helps" do you mean the problem is solved?
If not, can you mount the partition (in read-only mode) if you boot from a live CD?
If so, then you may make a copy of your data.

einor
Posts: 19
Joined: 2015/05/22 12:53:04

Re: error while extending xfs partition

Post by einor » 2018/11/21 07:34:26

tunk wrote:
2018/11/20 15:37:48
By "xfs_repair helps" do you mean the problem is solved?
If not, can you mount the partition (in read-only mode) if you boot from a live CD?
If so, then you may make a copy of your data.
Yes, problem is solved using xfs_repair. I also thought about booting from live CD if it didn't.

Post Reply