smartctl megaraid,N ( how to find the right value for N ? )











up vote
0
down vote

favorite












we run the smartctl on sdb disk



smartctl -a /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/sdb failed: DELL or MegaRaid controller, please try adding '-d megaraid,N'


according to the output from smartctl we change it to



 smartctl -a -d megaraid,0 /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: TOSHIBA
Product: MG04SCA20ENY
.
.


and I set the - 0 , according to the first bus ( from smartctl --scan )



smartctl  --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device
/dev/bus/0 -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device
/dev/bus/0 -d megaraid,12 # /dev/bus/0 [megaraid_disk_12], SCSI device
/dev/bus/0 -d megaraid,13 # /dev/bus/0 [megaraid_disk_13], SCSI device
/dev/bus/0 -d megaraid,14 # /dev/bus/0 [megaraid_disk_14], SCSI device
/dev/bus/0 -d megaraid,16 # /dev/bus/0 [megaraid_disk_16], SCSI device


but I am not sure if this value "0" is the right value



am I right here ?










share|improve this question






















  • Not sure what you mean by "right" value. If you want to identify which disk is attached to which megaraid port, look at the vendor/productid value. If there's no label on your physical disk, attach it somewhere else to find out which disk is which (or remove all other disks).
    – dirkt
    Dec 2 at 10:26










  • what I mean is that - for example lets take the - megaraid,0 , this include the value - 0 , so I took it for N
    – yael
    Dec 2 at 10:33






  • 1




    Yes, you can use 0, or 12, or 13, or 14, or 16 for N. If your scan output isn't complete, possibly even more numbers. And you already tried with 0, and it worked. So try the others, too. How many harddisks have you connected to this controller?
    – dirkt
    Dec 2 at 11:01










  • I accept this , so you can post an answer and I will vote for it
    – yael
    Dec 2 at 11:52















up vote
0
down vote

favorite












we run the smartctl on sdb disk



smartctl -a /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/sdb failed: DELL or MegaRaid controller, please try adding '-d megaraid,N'


according to the output from smartctl we change it to



 smartctl -a -d megaraid,0 /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: TOSHIBA
Product: MG04SCA20ENY
.
.


and I set the - 0 , according to the first bus ( from smartctl --scan )



smartctl  --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device
/dev/bus/0 -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device
/dev/bus/0 -d megaraid,12 # /dev/bus/0 [megaraid_disk_12], SCSI device
/dev/bus/0 -d megaraid,13 # /dev/bus/0 [megaraid_disk_13], SCSI device
/dev/bus/0 -d megaraid,14 # /dev/bus/0 [megaraid_disk_14], SCSI device
/dev/bus/0 -d megaraid,16 # /dev/bus/0 [megaraid_disk_16], SCSI device


but I am not sure if this value "0" is the right value



am I right here ?










share|improve this question






















  • Not sure what you mean by "right" value. If you want to identify which disk is attached to which megaraid port, look at the vendor/productid value. If there's no label on your physical disk, attach it somewhere else to find out which disk is which (or remove all other disks).
    – dirkt
    Dec 2 at 10:26










  • what I mean is that - for example lets take the - megaraid,0 , this include the value - 0 , so I took it for N
    – yael
    Dec 2 at 10:33






  • 1




    Yes, you can use 0, or 12, or 13, or 14, or 16 for N. If your scan output isn't complete, possibly even more numbers. And you already tried with 0, and it worked. So try the others, too. How many harddisks have you connected to this controller?
    – dirkt
    Dec 2 at 11:01










  • I accept this , so you can post an answer and I will vote for it
    – yael
    Dec 2 at 11:52













up vote
0
down vote

favorite









up vote
0
down vote

favorite











we run the smartctl on sdb disk



smartctl -a /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/sdb failed: DELL or MegaRaid controller, please try adding '-d megaraid,N'


according to the output from smartctl we change it to



 smartctl -a -d megaraid,0 /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: TOSHIBA
Product: MG04SCA20ENY
.
.


and I set the - 0 , according to the first bus ( from smartctl --scan )



smartctl  --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device
/dev/bus/0 -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device
/dev/bus/0 -d megaraid,12 # /dev/bus/0 [megaraid_disk_12], SCSI device
/dev/bus/0 -d megaraid,13 # /dev/bus/0 [megaraid_disk_13], SCSI device
/dev/bus/0 -d megaraid,14 # /dev/bus/0 [megaraid_disk_14], SCSI device
/dev/bus/0 -d megaraid,16 # /dev/bus/0 [megaraid_disk_16], SCSI device


but I am not sure if this value "0" is the right value



am I right here ?










share|improve this question













we run the smartctl on sdb disk



smartctl -a /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/sdb failed: DELL or MegaRaid controller, please try adding '-d megaraid,N'


according to the output from smartctl we change it to



 smartctl -a -d megaraid,0 /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: TOSHIBA
Product: MG04SCA20ENY
.
.


and I set the - 0 , according to the first bus ( from smartctl --scan )



smartctl  --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device
/dev/bus/0 -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device
/dev/bus/0 -d megaraid,12 # /dev/bus/0 [megaraid_disk_12], SCSI device
/dev/bus/0 -d megaraid,13 # /dev/bus/0 [megaraid_disk_13], SCSI device
/dev/bus/0 -d megaraid,14 # /dev/bus/0 [megaraid_disk_14], SCSI device
/dev/bus/0 -d megaraid,16 # /dev/bus/0 [megaraid_disk_16], SCSI device


but I am not sure if this value "0" is the right value



am I right here ?







linux rhel disk fdisk smartctl






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 2 at 10:23









yael

2,3301956




2,3301956












  • Not sure what you mean by "right" value. If you want to identify which disk is attached to which megaraid port, look at the vendor/productid value. If there's no label on your physical disk, attach it somewhere else to find out which disk is which (or remove all other disks).
    – dirkt
    Dec 2 at 10:26










  • what I mean is that - for example lets take the - megaraid,0 , this include the value - 0 , so I took it for N
    – yael
    Dec 2 at 10:33






  • 1




    Yes, you can use 0, or 12, or 13, or 14, or 16 for N. If your scan output isn't complete, possibly even more numbers. And you already tried with 0, and it worked. So try the others, too. How many harddisks have you connected to this controller?
    – dirkt
    Dec 2 at 11:01










  • I accept this , so you can post an answer and I will vote for it
    – yael
    Dec 2 at 11:52


















  • Not sure what you mean by "right" value. If you want to identify which disk is attached to which megaraid port, look at the vendor/productid value. If there's no label on your physical disk, attach it somewhere else to find out which disk is which (or remove all other disks).
    – dirkt
    Dec 2 at 10:26










  • what I mean is that - for example lets take the - megaraid,0 , this include the value - 0 , so I took it for N
    – yael
    Dec 2 at 10:33






  • 1




    Yes, you can use 0, or 12, or 13, or 14, or 16 for N. If your scan output isn't complete, possibly even more numbers. And you already tried with 0, and it worked. So try the others, too. How many harddisks have you connected to this controller?
    – dirkt
    Dec 2 at 11:01










  • I accept this , so you can post an answer and I will vote for it
    – yael
    Dec 2 at 11:52
















Not sure what you mean by "right" value. If you want to identify which disk is attached to which megaraid port, look at the vendor/productid value. If there's no label on your physical disk, attach it somewhere else to find out which disk is which (or remove all other disks).
– dirkt
Dec 2 at 10:26




Not sure what you mean by "right" value. If you want to identify which disk is attached to which megaraid port, look at the vendor/productid value. If there's no label on your physical disk, attach it somewhere else to find out which disk is which (or remove all other disks).
– dirkt
Dec 2 at 10:26












what I mean is that - for example lets take the - megaraid,0 , this include the value - 0 , so I took it for N
– yael
Dec 2 at 10:33




what I mean is that - for example lets take the - megaraid,0 , this include the value - 0 , so I took it for N
– yael
Dec 2 at 10:33




1




1




Yes, you can use 0, or 12, or 13, or 14, or 16 for N. If your scan output isn't complete, possibly even more numbers. And you already tried with 0, and it worked. So try the others, too. How many harddisks have you connected to this controller?
– dirkt
Dec 2 at 11:01




Yes, you can use 0, or 12, or 13, or 14, or 16 for N. If your scan output isn't complete, possibly even more numbers. And you already tried with 0, and it worked. So try the others, too. How many harddisks have you connected to this controller?
– dirkt
Dec 2 at 11:01












I accept this , so you can post an answer and I will vote for it
– yael
Dec 2 at 11:52




I accept this , so you can post an answer and I will vote for it
– yael
Dec 2 at 11:52










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










Yes, you can use 0, or 12, or 13, or 14, or 16 for N.



If your scan output isn't complete, possibly even more numbers.



And you already tried with 0, and it worked. So try the others, too.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f485463%2fsmartctl-megaraid-n-how-to-find-the-right-value-for-n%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    Yes, you can use 0, or 12, or 13, or 14, or 16 for N.



    If your scan output isn't complete, possibly even more numbers.



    And you already tried with 0, and it worked. So try the others, too.






    share|improve this answer

























      up vote
      2
      down vote



      accepted










      Yes, you can use 0, or 12, or 13, or 14, or 16 for N.



      If your scan output isn't complete, possibly even more numbers.



      And you already tried with 0, and it worked. So try the others, too.






      share|improve this answer























        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        Yes, you can use 0, or 12, or 13, or 14, or 16 for N.



        If your scan output isn't complete, possibly even more numbers.



        And you already tried with 0, and it worked. So try the others, too.






        share|improve this answer












        Yes, you can use 0, or 12, or 13, or 14, or 16 for N.



        If your scan output isn't complete, possibly even more numbers.



        And you already tried with 0, and it worked. So try the others, too.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 2 at 12:15









        dirkt

        16.3k21335




        16.3k21335






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f485463%2fsmartctl-megaraid-n-how-to-find-the-right-value-for-n%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            サソリ

            広島県道265号伴広島線

            Setup Asymptote in Texstudio