What creates the /dev/disk/by-path links for the mitaka lvm - iscsi cinder volumes?

asked 2016-06-10 07:19:26 -0500

randall.crook gravatar image

I am losing the /dev/disk/by-path links for the instances cinder volumes when I reboot the server. (Using a packstack --allinone setup). I can see the lvm lv's in /dev/disk/by-id and I can see what the instances are asking for when I go to start them and I can manually create the links as a work around but what ever process is supposed to create them automatically is not.

what should be there:

lrwxrwxrwx. 1 root root 10 Jun 10 21:33 ip-10.1.1.29:3260-iscsi-iqn.2010-10.org.openstack:volume-c8bc2d31-6473-45d7-97f8-17a129c6e936-lun-0 -> ../../dm-4
lrwxrwxrwx. 1 root root 10 Jun 10 21:35 ip-10.1.1.29:3260-iscsi-iqn.2010-10.org.openstack:volume-ea0d69f8-9441-49b1-9947-d3136c83e92d-lun-0 -> ../../dm-3
lrwxrwxrwx. 1 root root  9 Jun 10 20:49 ip-10.1.254.1:3260-iscsi-iqn.2001-04.com.crookware:storage.disk1.sys1.a-lun-0 -> ../../sdb
lrwxrwxrwx. 1 root root 10 Jun 10 20:49 ip-10.1.254.1:3260-iscsi-iqn.2001-04.com.crookware:storage.disk1.sys1.a-lun-0-part1 -> ../../sdb1
lrwxrwxrwx. 1 root root  9 Jun 10 20:49 ip-10.1.254.1:3260-iscsi-iqn.2001-04.com.crookware:storage.disk1.sys1.a-lun-1 -> ../../sdc
lrwxrwxrwx. 1 root root  9 Jun 10 20:49 ip-10.1.254.3:3260-iscsi-iqn.2005-10.org.freenas.ctl:cinder-lun-0 -> ../../sdd
lrwxrwxrwx. 1 root root  9 Jun 10 20:49 pci-0000:00:1f.1-ata-1.0 -> ../../sr0
lrwxrwxrwx. 1 root root  9 Jun 10 20:49 pci-0000:02:00.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx. 1 root root 10 Jun 10 20:49 pci-0000:02:00.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx. 1 root root 10 Jun 10 20:49 pci-0000:02:00.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx. 1 root root 10 Jun 10 20:49 pci-0000:02:00.0-scsi-0:0:0:0-part3 -> ../../sda3

what ends up there after a reboot:

lrwxrwxrwx. 1 root root  9 Jun 10 20:49 ip-10.1.254.1:3260-iscsi-iqn.2001-04.com.crookware:storage.disk1.sys1.a-lun-0 -> ../../sdb
lrwxrwxrwx. 1 root root 10 Jun 10 20:49 ip-10.1.254.1:3260-iscsi-iqn.2001-04.com.crookware:storage.disk1.sys1.a-lun-0-part1 -> ../../sdb1
lrwxrwxrwx. 1 root root  9 Jun 10 20:49 ip-10.1.254.1:3260-iscsi-iqn.2001-04.com.crookware:storage.disk1.sys1.a-lun-1 -> ../../sdc
lrwxrwxrwx. 1 root root  9 Jun 10 20:49 ip-10.1.254.3:3260-iscsi-iqn.2005-10.org.freenas.ctl:cinder-lun-0 -> ../../sdd
lrwxrwxrwx. 1 root root  9 Jun 10 20:49 pci-0000:00:1f.1-ata-1.0 -> ../../sr0
lrwxrwxrwx. 1 root root  9 Jun 10 20:49 pci-0000:02:00.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx. 1 root root 10 Jun 10 20:49 pci-0000:02:00.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx. 1 root root 10 Jun 10 20:49 pci-0000:02:00.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx. 1 root root 10 Jun 10 20:49 pci-0000:02:00.0-scsi-0:0:0:0-part3 -> ../../sda3

Using CentOS 7 as the server OS.

If anyone can point me in the direction of how these links are created it would be mush appreciated. (I have checked udev rules but nothing in them seems close to what is ... (more)

edit retag flag offensive close merge delete