New luns without reboot

I manage to assign 6 LUNS to my RedHat box and I didn’t wanted to reboot it in order to start partitioning new disks:

This was the initial situation:

[root@server ~]# fdisk -l | grep ^Disk
Disk /dev/cciss/c0d0: 299.9 GB, 299966445568 bytes

Executing this little for:

[root@server ~]# for i in `ls /sys/class/scsi_host/` ; do echo "- - -" > /sys/class/scsi_host/$i/scan; done

The situation became this:

[root@server ~]# fdisk -l | grep ^Disk
Disk /dev/cciss/c0d0: 299.9 GB, 299966445568 bytes
Disk /dev/sda: 499 MB, 499974144 bytes
Disk /dev/sdb: 499 MB, 499974144 bytes
Disk /dev/sdc: 599.9 GB, 599999971328 bytes
Disk /dev/sdd: 1024.0 GB, 1024000000000 bytes
Disk /dev/sde: 86.5 GB, 86599467008 bytes

Enjoy!

1 thoughts on “New luns without reboot

Lascia un commento