Rescan a SCSI bus without rebooting
After adding a hotplug-capable HDD to Linux, whether on a VM or physical machine, # fdisk -l may not show it until reboot. Rescanning SCSI can detect it without rebooting.
25 articles on this topic
After adding a hotplug-capable HDD to Linux, whether on a VM or physical machine, # fdisk -l may not show it until reboot. Rescanning SCSI can detect it without rebooting.
Newer Linux versions use UUIDs to identify hard disks instead of device names. This prevents the system from using the wrong disk when there is more than one and a disk fails or is removed…
Disks larger than 2 TB require a GPT-capable partitioning tool. gdisk works much like fdisk and supports large disks and up to 128 partitions.
Planning storage capacity is important: without estimating the total space required, the system may run out of storage. This article shows how to calculate the requirement.
When reusing a removed GlusterFS brick, adding it may fail with /path/app or a prefix of it is already part of a volume. Here is how to resolve it.
After writing about mounting NTFS on CentOS / RHEL, I wanted to share how Linux can format a hard disk with an NTFS filesystem without using Windows.
NTFS is a Windows filesystem. ntfs-3g, led by Szabolcs Szakacsits, provides read/write support without recompiling, including a free community edition.
There are four I/O schedulers for hard disks and block devices: anticipatory, noop, deadline, and CFQ. CFQ is usually the default. To change the I/O scheduler…
On Linux software RAID 1, GRUB normally boots from the primary disk. Configure it on the secondary disk too so the system can boot if the primary fails.
smartd monitors hard disks using SMART, or Self-Monitoring, Analysis, and Reporting Technology, to analyze, check, report status, and predict whether a hard disk…
To rescan an entire SCSI bus and re-register all devices found: rescan SCSI so the system sees a new device. On some Linux systems, this also adds or removes devices.
Linux stores device files in /dev/, with names depending on device type. This article explains how to identify hard drive names and their prefixes.
Adding a hard disk to Linux is simpler than some people think, though slightly harder than in Microsoft Windows. You need to understand partitioning, filesystems, and mounting.
A major difference between NFS v4 and earlier versions is the ability to export a single directory in a way similar to an FTP or web server, such as exporting /shared.
Resolve LVM error VG meta data inconsistent by booting into rescue mode, restoring VG metadata, rescanning devices and groups, and activating the volume group.
On a VOD server, using the cfg scheduler can increase disk I/O latency when many connections arrive, leading to uneven video playback.
To reduce RAID 1 rebuild time, use: # mdadm -C /dev/md0 -l1 -n2 /dev/sda1 /dev/sda2 --bitmap=internal. --bitmap (Write-intent bitmap) reduces synchronization time…
Growing Linux software RAID is straightforward. This example adds /dev/sdd1 to a three-disk RAID 5 array at /dev/md0, then grows the array and filesystem.
This example reduces a 10 GB LVM volume to 8 GB, assuming it is mounted at /data, by shrinking the filesystem before reducing the logical volume.
Linux normally mounts USB flash drives or thumb drives automatically when you plug them in. Sometimes it does not, which can frustrate new users…
CentOS/RHEL 5 supports filesystems up to 8 TB, with 16 TB planned for the future. In practice, filesystem creation may stop at 2 TB; this article gives a workaround.
To have Linux check every partition's file system after a reboot, use these commands as root. Create /forcefsck in the root directory to force a check on the next boot…
Linux supports online SCSI rescans, allowing drives to be rescanned without restarting the system.
This is an older article brought up to date because some readers may not know what device-mapper multipathing is for. It provides multipathing for storage devices such as SAN or NAS…
To add a new SWAP partition, you need an unused partition with its type set to Linux-SWAP. For example, suppose /dev/hdb3 is unused. Steps to create SWAP…