When adding a new hard disk to a running VM, do I still need to scan for new SCSI devices?

The name of the pictureThe name of the pictureThe name of the pictureClash 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.









share























  • Do you have VMWare tools (or openvmtools) installed & running?
    – Jeff Schaller
    4 mins ago














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.









share























  • Do you have VMWare tools (or openvmtools) installed & running?
    – Jeff Schaller
    4 mins ago












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.









share















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





share














share












share



share








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
















  • 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















active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?