Added sleep after iscsi targets are connected to let disks initialize.
This commit is contained in:
parent
87b2350bae
commit
ffe51ea0b1
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ define iscsi::connect($portal) {
|
||||||
|
|
||||||
exec { "iscsi-connect-${name}":
|
exec { "iscsi-connect-${name}":
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
command => "iscsiadm --mode discovery --type sendtargets --portal ${portal} && iscsiadm --mode node --targetname ${name} --portal ${portal} --login",
|
command => "iscsiadm --mode discovery --type sendtargets --portal ${portal} && iscsiadm --mode node --targetname ${name} --portal ${portal} --login && sleep 5",
|
||||||
onlyif => "! iscsiadm --mode session | egrep '${portal}:[0-9]*,[0-9]* ${name}'\$",
|
onlyif => "! iscsiadm --mode session | egrep '${portal}:[0-9]*,[0-9]* ${name}'\$",
|
||||||
require => Service["iscsid"],
|
require => Service["iscsid"],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue