When adding a new hard disk to a running VM, do I still need to scan for new SCSI devices?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
End Goal
To automate the addition/extension/formatting of a new disk onto a running Linux host using vSphere and Ansible.
Dilemma
I'm not a huge fan of writing such automation when I don't fully understand the commands and what they're doing.
My current knowledge of adding a new disk on a running Linux VM requires a scan/rescan of the SCSI devices. However, I can't seem to find information (may be my google-fu running low today) on why I need to run the following commands when on a system where I've not run them I can run lsblk and see the new disk already there.
Find Host Bus Number
grep mpt /sys/class/scsi_host/host?/proc_name
Force a SCSI scan
echo "- - -" > /sys/class/scsi_host/host0/scan
Question
Is the scanning portion of this process still needed?
System I was just working on was running kernel 3.10.0. When new disks are added they are added as SCSI disks.
Let me know if I need to clarify anything.
vmware disk ansible scsi lsblk
add a comment |Â
up vote
0
down vote
favorite
End Goal
To automate the addition/extension/formatting of a new disk onto a running Linux host using vSphere and Ansible.
Dilemma
I'm not a huge fan of writing such automation when I don't fully understand the commands and what they're doing.
My current knowledge of adding a new disk on a running Linux VM requires a scan/rescan of the SCSI devices. However, I can't seem to find information (may be my google-fu running low today) on why I need to run the following commands when on a system where I've not run them I can run lsblk and see the new disk already there.
Find Host Bus Number
grep mpt /sys/class/scsi_host/host?/proc_name
Force a SCSI scan
echo "- - -" > /sys/class/scsi_host/host0/scan
Question
Is the scanning portion of this process still needed?
System I was just working on was running kernel 3.10.0. When new disks are added they are added as SCSI disks.
Let me know if I need to clarify anything.
vmware disk ansible scsi lsblk
Do you have VMWare tools (or openvmtools) installed & running?
â Jeff Schaller
4 mins ago
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
End Goal
To automate the addition/extension/formatting of a new disk onto a running Linux host using vSphere and Ansible.
Dilemma
I'm not a huge fan of writing such automation when I don't fully understand the commands and what they're doing.
My current knowledge of adding a new disk on a running Linux VM requires a scan/rescan of the SCSI devices. However, I can't seem to find information (may be my google-fu running low today) on why I need to run the following commands when on a system where I've not run them I can run lsblk and see the new disk already there.
Find Host Bus Number
grep mpt /sys/class/scsi_host/host?/proc_name
Force a SCSI scan
echo "- - -" > /sys/class/scsi_host/host0/scan
Question
Is the scanning portion of this process still needed?
System I was just working on was running kernel 3.10.0. When new disks are added they are added as SCSI disks.
Let me know if I need to clarify anything.
vmware disk ansible scsi lsblk
End Goal
To automate the addition/extension/formatting of a new disk onto a running Linux host using vSphere and Ansible.
Dilemma
I'm not a huge fan of writing such automation when I don't fully understand the commands and what they're doing.
My current knowledge of adding a new disk on a running Linux VM requires a scan/rescan of the SCSI devices. However, I can't seem to find information (may be my google-fu running low today) on why I need to run the following commands when on a system where I've not run them I can run lsblk and see the new disk already there.
Find Host Bus Number
grep mpt /sys/class/scsi_host/host?/proc_name
Force a SCSI scan
echo "- - -" > /sys/class/scsi_host/host0/scan
Question
Is the scanning portion of this process still needed?
System I was just working on was running kernel 3.10.0. When new disks are added they are added as SCSI disks.
Let me know if I need to clarify anything.
vmware disk ansible scsi lsblk
vmware disk ansible scsi lsblk
edited 4 mins ago
Jeff Schaller
35.2k952115
35.2k952115
asked 9 mins ago
Odinson
184
184
Do you have VMWare tools (or openvmtools) installed & running?
â Jeff Schaller
4 mins ago
add a comment |Â
Do you have VMWare tools (or openvmtools) installed & running?
â Jeff Schaller
4 mins ago
Do you have VMWare tools (or openvmtools) installed & running?
â Jeff Schaller
4 mins ago
Do you have VMWare tools (or openvmtools) installed & running?
â Jeff Schaller
4 mins ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480261%2fwhen-adding-a-new-hard-disk-to-a-running-vm-do-i-still-need-to-scan-for-new-scs%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Do you have VMWare tools (or openvmtools) installed & running?
â Jeff Schaller
4 mins ago