How to remove scsi san disk?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How do I determine the device mapping of a SCSI drive to the SCSI host, bus, lun? And How to I remove the mapping to delete the SCSI drive?

I have a fibre-connected SAN. I've created a few drives on the SAN and mapped it to my linux host. The linux host sees the drives just fine. I remove the drives from linux, and left them as uninitialize disks. Whenever I run "fdisk -l", I get output:

[root@cicweb1 tmp]# /sbin/fdisk -l

Disk /dev/sda: 440.0 GB, 440076861440 bytes
255 heads, 63 sectors/track, 53502 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       53502   429650392+  8e  Linux LVM


I also get in /var/log/messages that drives that I since removed from the SAN. How to I remove these (/dev/sdb and /dev/sdc) in linux?

Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdb, sector 0
Apr 17 13:02:40 cicweb1 kernel: printk: 48 messages suppressed.
Apr 17 13:02:40 cicweb1 kernel: Buffer I/O error on device sdb, logical block 0
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdb, sector 0
Apr 17 13:02:40 cicweb1 kernel: Buffer I/O error on device sdb, logical block 0
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdb, sector 0
Apr 17 13:02:40 cicweb1 kernel: Buffer I/O error on device sdb, logical block 0
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdb, sector 8
Apr 17 13:02:40 cicweb1 kernel: Buffer I/O error on device sdb, logical block 1 Apr 17 13:02:40 cicweb1 kernel: Buffer I/O error on device sdb, logical block 2 Apr 17 13:02:40 cicweb1 kernel: Buffer I/O error on device sdb, logical block 3
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdb, sector 0
Apr 17 13:02:40 cicweb1 kernel: Buffer I/O error on device sdb, logical block 0 Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdb, sector 1169776632 Apr 17 13:02:40 cicweb1 kernel: Buffer I/O error on device sdb, logical block 146222079 Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdb, sector 1169776632 Apr 17 13:02:40 cicweb1 kernel: Buffer I/O error on device sdb, logical block 146222079
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdb, sector 0
Apr 17 13:02:40 cicweb1 kernel: Buffer I/O error on device sdb, logical block 0
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdb, sector 8
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdb, sector 0
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdc, sector 0
Apr 17 13:02:40 cicweb1 last message repeated 2 times
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdc, sector 8
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdc, sector 0
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdc, sector 1169776632 Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdc, sector 1169776632
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdc, sector 0
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdc, sector 8
Apr 17 13:02:40 cicweb1 kernel: end_request: I/O error, dev sdc, sector 0
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux