2013年3月5日 星期二

ext3/4 現有系統改用外部 journal device


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

沒有留言:

張貼留言