when disk has problem, normally you done fsck.
when fsck generates error like ext2 not recognized, please run e2fsck -b xxxx, this one what you must do:
1. linux rescue
2. fdisk /dev/sdX
3. fsck to each partition, NOT to the disk /dev/sda NOR to the swap NOR to the sda4(extended partition - 0 length partition)
If you got error about superblock, then:
4. each partition : mkfs -n -S /dev/sdXY
5. Get the superblock backup number xxxx, xxx, xxx and run : efsck -b xxxx /de/sdXY, try till succesfully
Reminder : Do not fsck to the disk /dev/sdX, but do it to the partition instead.
Wednesday, 9 March 2011
Wednesday, 2 March 2011
Linux WWPN and adding SAN disk
To rescan an entire SCSI bus and re-register all devices found:
When dealing with fibre attached storage, it is necessary to issue a LIP (loop initialization primitive) on the fabric:
shell> echo "1" > /sys/class/fc_host/host#/issue_lip
Replace the “#” with the number of the SCSI bus to be rescanned.
Note: Issueing a LIP (above) on Red Hat Enterprise Linux 5 is all that is needed to rescan fibre attached storage. Once the LIP is issued, the bus scan may take a few seconds to complete.
To rescan all other SCSI attached storage, a rescan should be issued:
shell> echo "- - -" > /sys/class/scsi_host/host#/scan
Replace the “#” with the number of the SCSI bus to be rescanned.
In addition to re-scanning the entire bus, a specific device can be added or deleted for some versions or Red Hat Enterprise Linux as specified below.
To remove a single existing device explicitly
shell> echo 1 > /sys/block//device/delete
OR, use the rescan-scsi-bus.sh under sg3-utils.rpm
To see the WWPN:
at BIOS : CTRL-Q Fast Util
at OS : qlogic : /proc/scsi/qlxxxx
emulex : /sys/class/scsi/device/driver/...../portid
When dealing with fibre attached storage, it is necessary to issue a LIP (loop initialization primitive) on the fabric:
shell> echo "1" > /sys/class/fc_host/host#/issue_lip
Replace the “#” with the number of the SCSI bus to be rescanned.
Note: Issueing a LIP (above) on Red Hat Enterprise Linux 5 is all that is needed to rescan fibre attached storage. Once the LIP is issued, the bus scan may take a few seconds to complete.
To rescan all other SCSI attached storage, a rescan should be issued:
shell> echo "- - -" > /sys/class/scsi_host/host#/scan
Replace the “#” with the number of the SCSI bus to be rescanned.
In addition to re-scanning the entire bus, a specific device can be added or deleted for some versions or Red Hat Enterprise Linux as specified below.
To remove a single existing device explicitly
shell> echo 1 > /sys/block/
OR, use the rescan-scsi-bus.sh under sg3-utils.rpm
To see the WWPN:
at BIOS : CTRL-Q Fast Util
at OS : qlogic : /proc/scsi/qlxxxx
emulex : /sys/class/scsi/device/driver/...../portid
Subscribe to:
Posts (Atom)