Difference between revisions of "/usr/bin/rescan-scsi-bus.sh"
Jump to navigation
Jump to search
↑ https://github.com/hreinecke/sg3_utils/blob/master/scripts/rescan-scsi-bus.sh
(→Remove) |
|||
Line 32: | Line 32: | ||
== Remove block devices: rescan-scsi-bus.sh --remove == | == Remove block devices: rescan-scsi-bus.sh --remove == | ||
<pre> | <pre> | ||
− | View current block devices: | + | View current block devices: lsblk |
rescan-scsi-bus.sh --remove or rescan-scsi-bus.sh -r | rescan-scsi-bus.sh --remove or rescan-scsi-bus.sh -r | ||
Line 43: | Line 43: | ||
4 device(s) removed. | 4 device(s) removed. | ||
− | View block devices after command execution: | + | View block devices after command execution: lsblk |
multipath -ll | multipath -ll |
Revision as of 12:15, 17 December 2019
rescan-scsi-bus.sh
[1] included in sg3-utils
package.
rescan-scsi-bus.sh -h
rescan-scsi-bus.sh --alltargets or rescan-scsi-bus.sh -a ... ... 32 new or changed device(s) found. 0 remapped or resized device(s) found. 0 device(s) removed.
rescan-scsi-bus.sh Scanning SCSI subsystem for new devices Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning for device 0 0 0 0 ... .../... Scanning host 1 for all SCSI target IDs, all LUNs Scanning host 2 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning for device 2 0 0 0 ... .../... Scanning host 3 for all SCSI target IDs, all LUNs 0 new or changed device(s) found. 0 remapped or resized device(s) found. 0 device(s) removed.
rescan-scsi-bus.sh -i --issue-lip
Remove block devices: rescan-scsi-bus.sh --remove
View current block devices: lsblk rescan-scsi-bus.sh --remove or rescan-scsi-bus.sh -r sg10 changed: LU not available (PQual 1) REM: Host: scsi3 Channel: 00 Id: 00 Lun: 07 DEL: Vendor: NETAPP Model: LUN C-Mode Rev: 9600 Type: Direct-Access ANSI SCSI revision: 05 0 new or changed device(s) found. 0 remapped or resized device(s) found. 4 device(s) removed. View block devices after command execution: lsblk multipath -ll 3600a09803831416c592b4f566453774e dm-3 ##,## size=250G features='2 pg_init_retries 50' hwhandler='0' wp=rw
Related commands: blkid
multipath -f
multipath -w
pvcreate
Activities
- Understand differences between
pvscan
which list all physical volumes and rescan-scsi-bus.sh - Read Change log: https://github.com/hreinecke/sg3_utils/blob/master/scripts/rescan-scsi-bus.sh
See also
- Block devices:
blkid
(UUID),lshw -class disk
,hwinfo --disk
,udevadm
,rescan-scsi-bus.sh
,LUN
,hdparm
,findfs
, Add a new disk lsblk
,pvscan
lspci
,lsscsi
,smartctl
,fdisk
,parted
,Kpartx
,pvdiplay
,pvs
,udisksctl
,/dev/sd, nvme list
- Fibre Channel: HBA,
multipath-tools
,multipath
,multipath -ll
,/etc/multipath.conf
multipathd
rescan-scsi-bus.sh
powermt
Device mapper
dmsetup ls
, - File systems: clustered file system,
tune2fs
mkfs.ext4
,superblock, e2fsck,resize2fs
,mount
,df
,umount
, UUID,fstab
Advertising: