Rescan SCSI bus (no reboot)

Just self memo. How to attach new SCSI disk without reboot (debian):

# check what hosts do you have
ls /sys/class/scsi_host
host0 host1 host2 host3

# change 'host0' to 'host1' or any next number that you need
echo "- - -" > /sys/class/scsi_host/host0/scan

and done ...

$ fdisk -l

extend lvm2 filesystem

Just self memo

# Added new physical partition /dev/sda3
# create a physical volume out of it
$ pvcreate /dev/sda3


# Now, add it to the volume group
#that my logical volume is on
$ vgextend VolGroup00 /dev/sda3


# Now that the volume group has more
# disk space, the logical volume can grow
$ lvextend -L+11G /dev/VolGroup00/LogVol00


# Ok, last of all, I want to filesystem to
# recognize that more space is available
$ fsadm resize /dev/VolGroup00/LogVol00

# sweet, I have more space now
$ df -h