fc: Drop multipath.conf snippet
A minimalistic multipath.conf got written, but it was useless, as it is unclear if multipathd is running and there was also no config reload triggered. This patch drops this snippet. In general it's probably a better idea to leave the multipath.conf to the component managing the host. Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
This commit is contained in:
@@ -89,21 +89,6 @@ func findDisk(wwn, lun string, io ioHandler) (string, string) {
|
||||
return "", ""
|
||||
}
|
||||
|
||||
func createMultipathConf(path string, io ioHandler) {
|
||||
if _, err := os.Lstat(path); err != nil {
|
||||
data := []byte(`defaults {
|
||||
find_multipaths yes
|
||||
user_friendly_names yes
|
||||
}
|
||||
|
||||
|
||||
blacklist {
|
||||
}
|
||||
`)
|
||||
io.WriteFile(path, data, 0664)
|
||||
}
|
||||
}
|
||||
|
||||
// rescan scsi bus
|
||||
func scsiHostRescan(io ioHandler) {
|
||||
scsi_path := "/sys/class/scsi_host/"
|
||||
@@ -148,8 +133,6 @@ func searchDisk(wwns []string, lun string, io ioHandler) (string, string) {
|
||||
break
|
||||
}
|
||||
// rescan and search again
|
||||
// create multipath conf if it is not there
|
||||
createMultipathConf("/etc/multipath.conf", io)
|
||||
// rescan scsi bus
|
||||
scsiHostRescan(io)
|
||||
rescaned = true
|
||||
|
||||
Reference in New Issue
Block a user