Storage Reconfiguration

For example, the following command causes the kernel to forget about the LUN on busid 3, channel 0, target 7 and LUN 1:

echo "1" > \
/sys/class/scsi_host/host3/device/3:0:7:1/delete

The busid of 3 is redundant with the 3 in host3. This format also is used, however, in contexts where the busid is required, such as in /sys/bus/scsi/devices.

To later restore only that particular LUN, execute:

echo "0 7 1" > /sys/class/scsi_host/host3/scan

To resize this same LUN, use:

echo 1 > /sys/bus/scsi/devices/3:0:7:1/rescan

To scan all channels, targets and LUNs, try:

User tags

sg MODx sysctl.conf HDFS arp cpu usage jackd Swift ansible slab glxinfo numa StorMan git wget chroot vim lenny cpanm flash grub exim4 debootstrap taskset ddos fido7 rsync SSD apt backtrace gdb find fio chromium SYN htop docker dstat backup bug newgrp iSCSI bridge top encrypt hdparm virt-install iowait ssh rpm replication sysresccd arping leap second sftp regex qemu profiling limit_conn asoundrc SpamAssassin RT build sysfs kernel puppet iops bacula pvmove graylog2 Salt nvidia swap Adaptec ps xfs initrd noop exim firefox cpu parallel conntrack nginx mysql soa core dump xargs gpg PTR deb tiger xen debian usb keyboard video quagga qcow2 java groups mariadb ip security erase openvpn etch rtsp ubuntu elliptics proxy lts nfs4 su HTTPS dhclient oprofile boot tftp .htaccess CPAN tar bash apache route CentOS search equalizer ipmi docker-compose mdadm cache dns corosync raid5 pulseaudio centos 7 sublime perlbrew lxc cluster drupal alsa hotplug virtualbox KVM pacemaker gre shellshock bonding Areca vtysh opreport DRBD opcontrol glusterfs ulimit SuperMicro MegaRAID vrrp tzdata dovecot php mkfs 3Ware NFS shorewall tool lubuntu in-addr.arpa bscan freedos OpenSSL scsi tun netfilter fail2ban vrrpd bind zRam sysctl pam alien language iptables performance LVM /etc/network/interfaces radeon cfq routing perl arch dpkg LSI rtl8723be X forwarding source sysrq squeeze OpenStack APU idmapd xhost cgroups AMD ipmitool tin PXE iostat virsh gtk lstat storage ha ardour raid vlan wordpress dhcp youtube rkhunter munin mount