Archive for the ‘Linux’ Category

Linux: Rescan the scsi bus to bring in new luns

Thursday, October 29th, 2009
The instructions are for Linux with a 2.6 kernel or higher.
cat /proc/scsi/qla2xxx/2 to see what is currently there.
sudo su -
echo "scsi-qlascan" > /proc/scsi/qla2300/2
sudo rescan-scsi-bus.sh --ids=0 --luns=
lsscsi
sudo fdisk /dev/;
sudo mkfs -t reiserfs /dev/ 1
udevinfo -q symlink -n /dev/;
Place the wwid into the multipath.conf file
Place the new mount point into the fstab.fibre file
execute sudo multipath -F
execute sudo multipath -v2
execute sudo /etc/init.d/mount.san start
Do a df and you should see the new mount.

Enjoy,
Mike Kniaziewicz

Linux/Unix: Stale File Handle

Thursday, October 29th, 2009

Here is the easiest method for handling a stale file handle:

  • An ls -ltr will show you the stale file handle.
  • Unmount the file system.
  • Remount the file system.

For more stubborn stale file handles you may have to reboot the system or take the system to single user mode if you are on a console and perform a “fsck” on the file system. A “fsck” is required when you have a hung inode.

Other methods?
Mike Kniaziewicz