Monthly Archives: March 2012

Hvordan fjerne LUN fra Linux

Først identifiser “diskene” du skal fjerne.
[code]
# fdisk -l
Disk /dev/sdae: 644.2 GB, 644245094400 bytes
255 heads, 63 sectors/track, 78325 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdae1 1 78325 629145531 83 Linux
[/code]
Så finner du selve scsi device id’en
[code]
#scsi_id -i -g -s /block/sdae
1:0:3:2: 360060160cb902800e25025c9197adf11
[/code]
Så fjerner du devicen.
[code]
#echo 1 > /sys/class/scsi_device/1:0:3:2/device/delete
[/code]