Comment 4 for bug 1878752

Revision history for this message
James Page (james-page) wrote :

OK so it sees the pv* commands have a side-effect of dropping the by-dname entries, so when the charm creates the PV and then tries to use it for the VG its disappeared.

ubuntu@node-licetus:~$ sudo pvcreate /dev/disk/by-dname/bcache3
  Physical volume "/dev/disk/by-dname/bcache3" successfully created.
ubuntu@node-licetus:~$ ls -l /dev/disk/by-dname/
total 0
lrwxrwxrwx 1 root root 13 May 15 06:18 bcache1 -> ../../bcache2
lrwxrwxrwx 1 root root 13 May 15 06:18 bcache2 -> ../../bcache1
lrwxrwxrwx 1 root root 13 May 15 06:18 bcache43 -> ../../bcache3
lrwxrwxrwx 1 root root 13 May 15 06:18 nvme0n1 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 May 15 06:18 nvme0n1-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 May 15 06:18 nvme0n1-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 9 May 15 06:18 sda -> ../../sda
lrwxrwxrwx 1 root root 10 May 15 06:18 sda-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 15 06:18 sda-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 May 15 06:18 sdb -> ../../sdb
lrwxrwxrwx 1 root root 9 May 15 06:18 sdc -> ../../sdc
lrwxrwxrwx 1 root root 9 May 15 06:18 sdd -> ../../sdd