AnsweredAssumed Answered

disks path issue

Question asked by littonpeng on Sep 21, 2013
Latest reply on Sep 22, 2013 by nabeel
I use the /dev/disk/by-path as the disks directory in my cluster. But after reboot the node, the disk directory change to /dev/sd* and one more sp offline. Can i fix the disk path to use /dev/disk/by-path? Thanks.

Before reboot:
<pre>
[root@ps02-dgzmt ~]# /opt/mapr/server/mrconfig disk list
ListDisks resp: status 0 count=9
ListDisks /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:2:0
        DG 0: Single SingleDisk1 Online
        DG 1: Raid0 Stripe1-2 Online
        DG 2: Concat Concat1-3 Online
        SP 0: name SP1, Online, size 8233022 MB, free 8177894 MB, path /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:2:0
ListDisks /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:5:0
        DG 0: Single SingleDisk4 Online
        DG 1: Raid0 Stripe4-2 Online
        DG 2: Concat Concat4-3 Online
        SP 0: name SP2, Offline, size 8583165 MB, free 0 MB, path /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:5:0
ListDisks /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:8:0
        DG 0: Single SingleDisk7 Online
        DG 1: Raid0 Stripe7-2 Online
        DG 2: Concat Concat7-3 Online
        SP 0: name SP3, Online, size 8237118 MB, free 8196134 MB, path /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:8:0
ListDisks /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:3:0
        DG 0: Single SingleDisk2 Online
        DG 1: Raid0 Stripe1-2 Online
        SP 0: name SP1, Online, size 8233022 MB, free 8177894 MB, path /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:2:0
ListDisks /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:4:0
        DG 0: Single SingleDisk3 Online
        DG 1: Raid0 Stripe1-2 Online
        SP 0: name SP1, Online, size 8233022 MB, free 8177894 MB, path /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:2:0
ListDisks /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:6:0
        DG 0: Single SingleDisk5 Online
        DG 1: Raid0 Stripe4-2 Online
        SP 0: name SP2, Offline, size 8583165 MB, free 0 MB, path /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:5:0
ListDisks /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:7:0
        DG 0: Single SingleDisk6 Online
        DG 1: Raid0 Stripe4-2 Online
        SP 0: name SP2, Offline, size 8583165 MB, free 0 MB, path /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:5:0
ListDisks /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:10:0
        DG 0: Single SingleDisk9 Online
        DG 1: Raid0 Stripe7-2 Online
        SP 0: name SP3, Online, size 8237118 MB, free 8196134 MB, path /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:8:0
ListDisks /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:9:0
        DG 0: Single SingleDisk8 Online
        DG 1: Raid0 Stripe7-2 Online
        SP 0: name SP3, Online, size 8237118 MB, free 8196134 MB, path /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:8:0
</pre>


After reboot (I replaced one disk /dev/disk/by-path/pci-0000:02:00.0-scsi-0:2:6:0 and reboot):
<pre>
[root@ps02-dgzmt conf]# /opt/mapr/server/mrconfig disk list
ListDisks resp: status 0 count=8
ListDisks /dev/sdb
        DG 0: Single SingleDisk1 Online
        DG 1: Raid0 Stripe1-2 Online
        DG 2: Concat Concat1-3 Online
        SP 0: name SP1, Online, size 8233022 MB, free 8137779 MB, path /dev/sdb
ListDisks /dev/sde
        DG 0: Single SingleDisk4 Online
        DG 1: Raid0 Stripe4-2 Offline
        DG 2: Concat Concat4-3 Offline
        SP 0: name SP2, Offline, size 8583165 MB, free 0 MB, path /dev/sde
ListDisks /dev/sdh
        DG 0: Single SingleDisk7 Online
        DG 1: Raid0 Stripe7-2 Online
        DG 2: Concat Concat7-3 Online
        SP 0: name SP3, Offline, size 8583165 MB, free 0 MB, path /dev/sdh
ListDisks /dev/sdc
        DG 0: Single SingleDisk2 Online
        DG 1: Raid0 Stripe1-2 Online
        SP 0: name SP1, Online, size 8233022 MB, free 8137779 MB, path /dev/sdb
ListDisks /dev/sdd
        DG 0: Single SingleDisk3 Online
        DG 1: Raid0 Stripe1-2 Online
        SP 0: name SP1, Online, size 8233022 MB, free 8137779 MB, path /dev/sdb
ListDisks /dev/sdg
        DG 0: Single SingleDisk6 Online
        DG 1: Raid0 Stripe4-2 Offline
        SP 0: name SP2, Offline, size 8583165 MB, free 0 MB, path /dev/sde
ListDisks /dev/sdi
        DG 0: Single SingleDisk8 Online
        DG 1: Raid0 Stripe7-2 Online
        SP 0: name SP3, Offline, size 8583165 MB, free 0 MB, path /dev/sdh
ListDisks /dev/sdj
        DG 0: Single SingleDisk9 Online
        DG 1: Raid0 Stripe7-2 Online
        SP 0: name SP3, Offline, size 8583165 MB, free 0 MB, path /dev/sdh

Outcomes