AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 510302
Accepted
Justin S
Justin S
Asked: 2013-05-24 07:46:48 +0800 CST2013-05-24 07:46:48 +0800 CST 2013-05-24 07:46:48 +0800 CST

如何从 CentOS 6 中删除附加的 FC LUN?

  • 772

我们有一个在 Centos 6 服务器上运行的 Qlogic QLE2560 HBA。我需要远程删除附加的 LUN。我没有在设备上安装任何来自 qlogic 的软件。它们是连接到 P200 G3 SAN 的 2 个 LUN,我找不到任何关于如何删除它们的操作系统文档。

[root@server class]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: AMCC     Model: 9650SE-8LP DISK  Rev: 4.10
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: WDC WD1003FBYX-0 Rev: 01.0
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: WDC WD1003FBYX-0 Rev: 01.0
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: Slimtype Model: DVD A  DL8A4SH   Rev: HP54
  Type:   CD-ROM                           ANSI SCSI revision: 05
Host: scsi7 Channel: 00 Id: 00 Lun: 00
  Vendor: HP       Model: P2000 G3 FC      Rev: T230
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi7 Channel: 00 Id: 00 Lun: 01
  Vendor: HP       Model: P2000 G3 FC      Rev: T230
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi5 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: ST3000DM001-1CH1 Rev: CC26
  Type:   Direct-Access                    ANSI SCSI revision: 05


[root@server ~]# lsmod | grep ql
qla2xxx_conf          335368  1 
qla2xxx              1023916  0 
intermodule            37892  2 qla2xxx_conf,qla2xxx


[root@server ~]# cat /proc/scsi/qla2xxx/7 
QLogic PCI to Fibre Channel Host Adapter for QLE2560:
        Firmware version 4.06.03 , Driver version 8.02.23-fo
BIOS version 3.13
FCODE version 3.19
EFI version 2.24
Flash FW version 5.07.00 8080
ISP: ISP2532, Serial# BFD1238D93292
Request Queue = 0x63a600000, Response Queue = 0x63bff0000
Request Queue count = 4096, Response Queue count = 512
Total number of active commands = 0
Total number of interrupts = 174363060
    Device queue depth = 0x20
Number of free request entries = 1456
Number of mailbox timeouts = 0
Number of ISP aborts = 0
Number of loop resyncs = 0
Number of retries for empty slots = 0
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
Number of reqs in failover_q= 0
Host adapter:loop state = <READY>, flags = 0x185a43
Dpc flags = 0x0
MBX flags = 0x0
Link down Timeout = 030
Port down retry = 030
Login retry count = 030
Commands retried with dropped frame(s) = 0
Product ID = 0000 0000 0000 0000


SCSI Device Information:
scsi-qla0-adapter-node=20000024ff0caf40;
scsi-qla0-adapter-port=21000024ff0caf40;
scsi-qla0-target-0=217000c0ff144101;

FC Port Information:
scsi-qla0-port-0=208000c0ff144101:217000c0ff144101:010000:81;
scsi-qla0-port-1=208000c0ff144101:257000c0ff144101:010100:82;
scsi-qla0-port-2=5001438012098edf:5001438012098ede:010200:1;
scsi-qla0-port-3=50014380120999bd:50014380120999bc:010300:2;
scsi-qla0-port-4=5001438012098e8b:5001438012098e8a:010400:83;

SCSI LUN Information:
(Id:Lun)  * - indicates lun is not registered with the OS.
( 0: 0): Total reqs 6258578, Pending reqs 0, flags 0x2, Dflags 0x0, 0:0:81 00
( 0: 1): Total reqs 6825301, Pending reqs 0, flags 0x2, Dflags 0x0, 0:0:81 00
centos6
  • 2 2 个回答
  • 4475 Views

2 个回答

  • Voted
  1. Best Answer
    sciurus
    2013-05-30T21:12:33+08:002013-05-30T21:12:33+08:00

    请参阅Red Hat 的存储管理指南中的第 24.4 节删除存储设备。

    • 2
  2. ewwhite
    2013-05-30T18:25:56+08:002013-05-30T18:25:56+08:00

    你能显示的输出df -h吗?

    一般来说:

    umount the volume's mount point
    
    # Assuming Multipath, get the drives associated with the LUN [ie sdc, sdj etc]
    multipath -l <mpathalias>
    
    # Flush the multipath device
    multipath -f <mpathalias>
    
    # Verify that the above drives are no longer used by ANYTHING
    # Do this for EACH drive
    lsof /dev/sdX    #Where X = drive designation above
    
    # Delete the drives.
    # Do this for EACH drive
    echo 1 > /sys/block/sdX/device/delete  #Where X = drive designation above
    
    # Unmap the volume on the SAN
    
    # Re-scan then list multipath to make sure it doesn’t find the volume
    # you just removed
    multipath
    multipath -l
    
    • 1

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve