New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to fix cpanel read-only file system?
Hi,
I have a CentOS 7 VM, cPanel and is running on red-only file system. how to safely run fsck on it.
Comments
fsck -yf [your disk/volume]
Are you sure disks on VM host are fine?
I can assure you fsck -yfN is absolutely safe.
How to check which disk/volume I have in the system?
shutdown -rF
I try this command and it is not working on CentOS 7
Are you a provider?
Run lsblk. See if the “TYPE” column says lvm.
If you want more specific information:
fdisk -l shows the PC-style partitions on each disk.
cat /proc/partitions shows the available block devices. sda, sdb and so on are hard disks. sda1 and such are partitions on these disks. dm-0 and so on are LVM logical volumes.
pvs or pvdisplay reports the volumes that are LVM physical volumes.
df shows the mounted filesystems. If a filesystem is mounted from some place like /dev/sda1, it's not on an LVM volume. If it's mounted from /dev/mapper/group-logical, it's on an LVM volume.
Google can do wonders https://unix.stackexchange.com/questions/18586/centos-check-partition-information-from-command-line
Hopefully not but with this name...
Do not type any command you find online, search on it about it on Google first, would you have typed "rm -rf /home" if I had told you so? Be careful