How Do I Scan a New Drive Using Linux 7?
Contents How Do I Scan a New Hard Drive in Linux? How to Scandetect New Lun’s & Scsi Disks in Linux? Scan Each Scsi Host Device Using /Sys Class File. Run the...
Contents
How do I scan a new hard drive in Linux?
How to scandetect new LUN’s & SCSI disks in Linux?
- Scan each scsi host device using /sys class file.
- Run the “rescan-scsi-bus.sh” script to detect new disks.
Must Read
How do I scan a new disk in Ubuntu?
Example for system disk without reboot:
- Rescan the bus for the new size: # echo 1 > /sys/class/block/sda/device/rescan.
- Expand your partition (works with ansible): # parted —pretend-input-tty /dev/sda resizepart F 2 Yes 100% – F for Fix – 2 for partition – Yes to confirm – 100% for whole partition.