For CentOS:
During booting, grub menu, press "e" and append "single " to "kernel xxxxx" line.
When get into single user mode..
1. Create journal device:
fdisk /dev/sdb, create partition for /dev/sdb1
mke2fs -O journal_dev /dev/sdb1
2. Re-mount file system with read only:
mount -o remount,ro /dev/mapper/vg00-lv00
3. Remove journal:
tune2fs -O ^has_journal /dev/mapper/vg00-lv00
4. Assign external journal device:
tune2fs -J device=/dev/sdb1 /dev/mapper/vg00-lv00
留言
張貼留言