LoginSignup
0
0

More than 3 years have passed since last update.

CentOS6.10 今より容量の少ないDISKに交換

Last updated at Posted at 2017-03-04

CentOS6.10 今より容量の少ないDISKに交換

Rescue installed systemにて起動

  • CentOS-6.10-x86_64-minimal.iso
# format
fdisk /dev/vdb
mkfs.ext4 /dev/vdb1
mkdir /vdb1
mount /dev/vdb1 /vdb1

rsync --exclude sys/ --exclude proc/ -a /mnt/sysimage /vdb1

UUIDの修正

/sbin/blkidにて/dev/vda1のUUID値を確認。

  • /boot/grub/grub.conf
  • /etc/fstab

内を修正。

(トラブル)kernel panic

Kernel panic - not syscing: Attempted to kill init!
Pid: 1, comm: init Not tainted 2.6.32.-279.5.2.el6.i686 #1

これは /boot/grub/grub.conf 内の UUID値 を更新し忘れた場合起こる。
修正しgrub-install /dev/vdaして解決

以下メモ

runlevelが空

mkinitrd \
 /boot/initramfs-2.6.32-642.15.1.el6.x86_64.img \
 2.6.32-642.15.1.el6.x86_64 \
 --force
reboot

sshdが起動しない場合

runlevel:/var/run/utmp: No such file or directory
Starting sshd: Missing privillege separation directory: /var/empty/sshd [FAILED]

mkdir /var/empty/sshd
chmod 711 /var/empty/sshd

touch: cannot touch '/var/lock/subsys/sshd': No such file or directory

mkdir -p /var/lock/subsys

起動確認

service sshd stop
service sshd start

mysqld, httpd が起動しない場合

  • 起動していない・・・。一旦あきらめることに。

/var/spool/cron: No such file or directory

  • え?
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0