{
    "mode": "man",
    "parameter": "rescan-scsi-bus",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/rescan-scsi-bus/8/json",
    "generated": "2026-05-30T07:11:40Z",
    "synopsis": "rescan-scsi-bus.sh [ -l ] [ -w ] [ -c ] [ -r ] [ host...  ]",
    "sections": {
        "NAME": {
            "content": "rescan-scsi-bus.sh - rescan the SCSI bus.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "rescan-scsi-bus.sh [ -l ] [ -w ] [ -c ] [ -r ] [ host...  ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "rescan-scsi-bus.sh  is  a program that is used to rescan the SCSI bus using the SCSI add-sin‐\ngle-device feature of the Linux SCSI layer.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-l",
                    "content": "",
                    "flag": "-l"
                },
                {
                    "name": "-L",
                    "content": "--luns=LIST\nScan only LUNs in LIST.\n",
                    "flag": "-L"
                },
                {
                    "name": "-w",
                    "content": "--ids=LIST\nScan only device IDs in LIST.\n",
                    "flag": "-w"
                },
                {
                    "name": "-i --issue-lip",
                    "content": "Issue a FibreChannel LIP reset (default: disabled).\n",
                    "flag": "-i",
                    "long": "--issue-lip"
                },
                {
                    "name": "-r --remove",
                    "content": "Enables removing of devices (default: disabled).\n",
                    "flag": "-r",
                    "long": "--remove"
                },
                {
                    "name": "--forceremove",
                    "content": "Remove and readd every device (dangerous).\n",
                    "long": "--forceremove"
                },
                {
                    "name": "-c",
                    "content": "--channels=LIST\nScan only channels in LIST.\n\nhost, --hosts=LIST\nIf host adapters are given, only these are scanned (default: all).\n",
                    "flag": "-c"
                },
                {
                    "name": "--nooptscan",
                    "content": "Don't stop looking for LUNs if 0 is not found.\n",
                    "long": "--nooptscan"
                },
                {
                    "name": "--color",
                    "content": "Use coloured prefixes OLD/NEW/DEL.\n\nLIST is a comma separated list  of  single  values  and  ranges  (no  spaces  allowed),  e.g.\n0,2-3,8,10-15.\n",
                    "long": "--color"
                }
            ]
        },
        "AUTHOR": {
            "content": "rescan-scsi-bus.sh was written by Kurt Garloff <garloff@suse.de>.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "This  program is free software. You can use it under the terms of the GNU GPL (General Public\nLicense) Version 2 (or any later version, at your option).  Note, that the GNU  GPL  implies,\nthat there is NO WARRANTY at all.  Full text of the GPL can be found in /usr/share/common-li‐\ncenses/GPL file.\n",
            "subsections": []
        },
        "AVAILABILITY": {
            "content": "rescan-scsi-bus.sh is available from",
            "subsections": [
                {
                    "name": "http://www.garloff.de/kurt/linux/scsidev/",
                    "content": "March 1998                        RESCAN-SCSI-BUS.SH(8)"
                }
            ]
        }
    },
    "summary": "rescan-scsi-bus.sh - rescan the SCSI bus.",
    "flags": [
        {
            "flag": "-l",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-L",
            "long": null,
            "arg": null,
            "description": "--luns=LIST Scan only LUNs in LIST."
        },
        {
            "flag": "-w",
            "long": null,
            "arg": null,
            "description": "--ids=LIST Scan only device IDs in LIST."
        },
        {
            "flag": "-i",
            "long": "--issue-lip",
            "arg": null,
            "description": "Issue a FibreChannel LIP reset (default: disabled)."
        },
        {
            "flag": "-r",
            "long": "--remove",
            "arg": null,
            "description": "Enables removing of devices (default: disabled)."
        },
        {
            "flag": "",
            "long": "--forceremove",
            "arg": null,
            "description": "Remove and readd every device (dangerous)."
        },
        {
            "flag": "-c",
            "long": null,
            "arg": null,
            "description": "--channels=LIST Scan only channels in LIST. host, --hosts=LIST If host adapters are given, only these are scanned (default: all)."
        },
        {
            "flag": "",
            "long": "--nooptscan",
            "arg": null,
            "description": "Don't stop looking for LUNs if 0 is not found."
        },
        {
            "flag": "",
            "long": "--color",
            "arg": null,
            "description": "Use coloured prefixes OLD/NEW/DEL. LIST is a comma separated list of single values and ranges (no spaces allowed), e.g. 0,2-3,8,10-15."
        }
    ],
    "examples": [],
    "see_also": []
}