Echo command is not working for New HDD discover without reboot server
Hello Friends,
I am trying
echo "- - -" /sys/class/scsi_host/host0/scan
echo "- - -" /sys/class/scsi_host/host1/scan
echo "- - -" /sys/class/scsi_host/host2/scan
for discovering newly added HDD in VM. i'm getting below error after this command.
bash: echo: write error: Invalid argument
please help, server is in running environment.
Echo command is not working for New HDD discover without reboot server
-
- Posts: 1
- Joined: 2019/06/28 22:03:37
Re: Echo command is not working for New HDD discover without reboot server
What sort of host is it running on?
Are you sure you need to do this - check the output of `dmesg` to see if it was already detected.
Are you sure you need to do this - check the output of `dmesg` to see if it was already detected.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Echo command is not working for New HDD discover without reboot server
I think you're missing the ">" in those commands:
should be:
H
Code: Select all
echo "- - -" /sys/class/scsi_host/host0/scan
echo "- - -" /sys/class/scsi_host/host1/scan
echo "- - -" /sys/class/scsi_host/host2/scan
Code: Select all
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan