FAQ
The disk has been changed to Read Only on Red Hat Enterprise Linux (or CentOS / Ubuntu). How should I take actions?
If a problem (such as an "I/O" error) occurs during disk access to a device, the file system of a device mounted in a specific directory might be forced to be remounted with Read-Only because it is determined that a problem has occurred with the file system of the device. In this case, you can remount the file system of the device mounted in a specific directory with Read Write according to below steps.
1.Check the file system of the device mounted with Read Only (in the example below, you can confirm that "/dev/vdb" is mounted with Read-Only)
# mount -l /dev/mapper/rhel-root on / type xfs (rw,relatime,attr2,inode64,noquota) /dev/mapper/rhel-var on /var type xfs (rw,relatime,attr2,inode64,noquota) /dev/vda1 on /boot types xfs (rw,relatime,attr2,inode64,noquota) /dev/vdb on /mnt types xfs (ro,relatime,attr2,inode64,noquota) ※ ro = read only
2.Remount the file system of the device with Read Write (In the example below, "/dev/vdb" has been remounted with Read Write)
# mount -o remount,rw /dev/vdb # mount -l /dev/mapper/rhel-root on / type xfs (rw,relatime,attr2,inode64,noquota) /dev/mapper/rhel-var on /var type xfs (rw,relatime,attr2,inode64,noquota) /dev/vda1 on /boot types xfs (rw,relatime,attr2,inode64,noquota) /dev/vdb on /mnt types xfs (rw,relatime,attr2,inode64,noquota) ※ rw = read write