Sample Header Ad - 728x90

warning /dev/centos/root swap centos-root does not exist -- after configuring DRBD

1 vote
2 answers
40149 views
I configured DRBD on default CentOS 7.3 Installation like following: /dev/centos/home was taking all the space in sda2 so reduced it and created /dev/centos/home (20% space) and /dev/centos/drbd (remaining space using lvcreate -l 100%VG -n drbd centos) DRBD resource device is /dev/drbd0 and disk is /dev/mapper/centos-drbd formatted as ext4. Now everytime I reboot the system I get the errors: Warning: /dev/centos/root does not exist Warning: /dev/centos/swap does not exist Warning: /dev/mapper/centos-root does not exist From dracut shell I run : $ lvm vgscan $ lvm vgchange -ay $ exit and system boots fine. But It fails again at reboot. Any solution? ---------- UPDATE: Found the cause, drbd device was causing the issue. I removed it from both servers and it fixed the 2nd server but not the 1st one. blkid still shows wrong UUID and Type of /dev/sda2 $ blkid /dev/sda1: UUID="bdfa3672-b24b-41ec-88f8-d0f0a81057d1" TYPE="xfs" /dev/sda2: UUID="d8d241f07976f3ce" TYPE="drbd" /dev/mapper/centos-swap: UUID="3c8653bb-060a-4e46-8eaa-ce51637752ee" TYPE="swap" /dev/mapper/centos-root: UUID="93941d8b-22e0-4ad7-8666-1ce8ba8d1109" TYPE="xfs" /dev/mapper/centos-home: UUID="63c9a5ad-9b4b-4852-8e95-22b356d8729a" TYPE="xfs"
Asked by bakasan (21 rep)
Feb 19, 2018, 12:15 AM
Last activity: Mar 2, 2023, 03:51 PM