I removed iptables, installed it again and rebooted my centos server ; after that my access to the domains on server has denied. When I checked console There was an error:

fsck.ext4: No such file or directory while trying to open /dev/mapper/vg_servername-lv_root the superblock could not read or does not describe a correct ext2 file system ...

I have tryed yum update to check if there was something removed unwanted update that but when I run this code it says :

Another app is currently holding the yum lock:waiting for it to exit...
The other application is : yum ...

And it waits for a long time doing nothing and keep writing this.
I'm really stocked at this I read some articles in other forums some of them were not this problem and some other did not work or I couldn't understand them.Please.. if anyone can help me with this, I'll be appreciate that.

Content of /etc/fstab :


Content of /proc/mounts :


Content of /proc/partitions :


Answers to @Ryan Babchishin 's questions:
Does the system fail to boot? no
Are you using a rescue/live CD to gather this information? no I just have console accessibility and all I see is from there.
How did you access the root filesystem?console(vmware vSphare)
Why is the filesystem readonly? I don't know I did just what I said, nothing else.
Did you try a manual fsck?Yes it says the problem that I told at the top of the question.

  • 1
    Can you add the content of /etc/fstab, /proc/mounts and /proc/partitions? Add also the output of: pvs;vgs;lvs – Mircea Vutcovici Sep 27 '16 at 11:35
  • @Mircea Vutcovici I updated my answer with your requests except the output of: pvs;vgs;lvs That I didn't understand What you mean? – SAM Sep 27 '16 at 12:02
  • 1
    You just need to run them. They will display the LVM volume configuration. – Mircea Vutcovici Sep 27 '16 at 12:39
  • 1
    Your current problem is related to the disk volume configuration. May be a filesystem corruption. I can not see any reason to point to iptables re-installation. I think that the problem just surfaced when you restarted the server. – Mircea Vutcovici Sep 27 '16 at 12:46
  • @Mircea Vutcovici I wrote them in console but It says command not found.Yes the problem appeared just after I restarted the server. – SAM Sep 27 '16 at 13:18

SAM & I worked the problem out in chat...

  1. Boot from CentOS iso in rescue mode
  2. Configure networking
  3. Mount filesystems (on LVM) (from menu, automatic)
  4. chroot to mounted root
  5. Do a yum update - just because
  6. Install missing lvm2 and dependancies
  7. Run vgscan and vgchange -ay - just because
  8. Rebuild initramfs. System froze with no errors before switching to root fs without this step.
  9. Reboot and all is good

The VM runs fine now. No idea how this happened.

  • Thank you for your answer.But it's avirtual server and I don't have direct access to server to boot it from disk or anything.Look I'm really not familiar with these stuffs I just know some linux commands.I'm in the situation that only have access to the vSphare client console to write some commands, that's my first and last accessibility.When I write 'vgscan' it says no command found.Also I'm not able to use yum command as I said in the question. – SAM Sep 28 '16 at 0:24
  • If there is any solution for the problem I'll be appreciate that so much you tell me with this level of my knowledge Otherwise I have some important files in DirectAdmin If you tell me how can I zip them and download them as a backup from the console to my computer I'll be thank you so much. – SAM Sep 28 '16 at 0:26
  • @SAM I'll try. Please answer my questions in the comments below your question. – Ryan Babchishin Sep 28 '16 at 0:58
  • @SAM I still need more info. But if the server is running and you have ssh, then you can use scp or sftp or rsync to transfer your files. Or perhaps you can attach your virtual disk to another VM to access the files. – Ryan Babchishin Sep 28 '16 at 2:52
  • I tried this "apt-get install lvm2 dmsetup mdadm reiserfsprogs xfsprogs" to install LVM but it can't find "apt-get" command.I answered your questions in comment;No the system reboots but after that I face this problem and I said I'm not familiar with linux I just did that damn re-installing iptables and after reboot the problem occurred.It looks like your professional;If yoou need me to answer your questions separately I'll do that under your above comment. I'm really in trouble please help me if you can, I'm sure this problem may occur for some other people. – SAM Sep 28 '16 at 10:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.