home partition doesn't mount after resizing using lvreduce - can't read superblock
Hello,
I reduced home partition using command below: Code:
[root@sfvm08 mapper]# lvreduce -L 70G /dev/mapper/centos_sfvm03-home after that I increased root partition using command below: Code:
[root@sfvm08 mapper]# lvextend -r -l+100%FREE /dev/mapper/centos_sfvm03-root Tried to repair using command below in rescue mode: Code:
xfs_repair /dev/mapper/centos_sfvm03-home unfortunately I don't have any backup and my data is important :( Same problem on another threat is as below: http://www.linuxquestions.org/questions/linux-newbie-8/after-lvreduce-reboot-now-can't-read-superblock-4175576100/ But I need more detailed guide for my case. This is a Virtual Machine and I have access to virtualization environment so I can increase hard disk over VMWare ESXi. Does it harm hard disk? as far as I read over the similar threat, I should increase reduced LV, can someone help me more detail on how to do that? |
do you use UUID's in fstab (most Sys do now) ? they made may have been changed do to you changing its size. it is worth checking.
|
Quote:
As far as I know, one of sda sdb is XFS and another is Logical Volume |
Quote:
Hard drives can die any time. Not having backups is asking for data loss. |
Quote:
Code:
WARNING: Reducing active and open logical volume to 70.00 GiB That secondary superblock xfs_repair can't find was perhaps in the part of the FS that got chopped off when you resized. Unfortunately that other thread you linked to holds your answer. There is no good way to resize an existing xfs filesystem, and you're likely going to have to get into some data recovery methods now to get that "important" data back. And the results of those methods are far from a guaranteed success. Some further reading: http://blog.endpoint.com/2015/01/shr...-possible.html |
Quote:
Code:
blkid Code:
userx@SlackDaddy~>> cat /etc/fstab Code:
# /etc/fstab: static file system information. |
Quote:
I decreased home and increased root as you can see in first post.(whole disk was 150GB) Now I have chance to change hard disk from 150GB to 200GB over VMWare. Is it better to do so without doing exactly reverse by just increasing home again? and if yes, how shall I do it, what commands do I need I mean? |
Quote:
|
Quote:
Yes, I understand what stupid thing I did. I'm just duplicating my virtual disk of Virtual machine to have chance on my tests I will go on. So the link you shared is about what I could do before I did this horrible thing, right? |
Quote:
As Emerson suggested, undo the resize, assuming no data had been written, and the repair attempt did not make things worse - this may give you a chance at getting your data back. However, be warned, you have to put things EXACTLY as they were. The same number of extents, and everything has to be exactly where it was. Same starting sector, same starting extent, same ending extent, etc. |
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
I will try with doing reverse tasks to see if I can have my home partition back or not, if not I will go with data recovery steps (I don't have any idea about this on linux, I should read more) to recover home directory and MySQL data storage which are critical for me to have them back. |
Quote:
|
some googled links that might help
key words restore xfs partition http://www.reclaime.com/library/xfs-recovery.aspx http://serverfault.com/questions/469...ck-read-failed http://docs.cray.com/books/S-2377-22...bhdyq9i26.html |
All times are GMT -5. The time now is 11:41 PM. |