(re) A varredura do dispositivo scsi funciona durante a varredura do host scsi no centOS 6.9

1

Hoje adicionei 1 GB de espaço extra a um disco virtual (basicamente estendido) em esxi VM. Eu segui 2 abordagens para obter o novo espaço reconhecido:

  1. echo "- - -" > /sys/class/scsi_host/host2/scan
  2. echo 1 > /sys/class/scsi_disk/2:0:1:0/device/rescan

A primeira abordagem não funciona, a segunda funcionou.

Alguma opinião?

Eu não li a documentação na árvore de fontes do kernel, que pode ter o que eu quero.

    
por Junaid Shahid 25.10.2017 / 19:20

1 resposta

0

Como "val0x00ff" já compartilhou o link que contém a resposta exata:

communities.vmware.com/thread/492752

Once you've changed the disk's size in VMware and did not reboot your server, rescan your SCSI devices as such. First, check the name(s) of your scsi devices.

$ ls /sys/class/scsi_device/

Then rescan the scsi bus. Below you can replace the '0:0:0:0′ with the actual scsi bus name found with the previous command. Each colon is prefixed with a slash, which is what makes it look weird.

$ echo 1 > /sys/class/scsi_device/0:0:0:0/device/rescan

That will rescan the current scsi bus and the disk size that has changed will show up.

    
por 26.10.2017 / 11:57

Tags

yii\base\ErrorException
Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Core Warning – yii\base\ErrorException

PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20190902/memcached.so (/usr/lib/php/20190902/memcached.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/memcached.so.so (/usr/lib/php/20190902/memcached.so.so: cannot open shared object file: No such file or directory))

$_GET = [
    'id' => '864194',
    'url' => 'rescanning-scsi-device-works-while-scanning-scsi-host-doesnt-on-centos-6-9',
];

$_COOKIE = [
    '_csrf-frontend' => '3a0d70fa920bc50686d0a249bd3722c7ece4cd70fc90d7b6b9da13a15f4b14e3a:2:{i:0;s:14:"_csrf-frontend";i:1;s:32:"s1G1rEp2zkOl08-R5b6o-D6OpVKSJm5p";}',
    'advanced-frontend' => 'mu8p5kgkti1qv5g2c9imkcrajh',
];

$_SESSION = [
    '__flash' => [],
];