{"id":764,"date":"2010-05-21T07:00:28","date_gmt":"2010-05-21T11:00:28","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=764"},"modified":"2013-03-20T08:42:48","modified_gmt":"2013-03-20T12:42:48","slug":"open-devmptctl-no-such-device-make-sure-mptctl-is-loaded-into-the-kernel","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/open-devmptctl-no-such-device-make-sure-mptctl-is-loaded-into-the-kernel","title":{"rendered":"open \/dev\/mptctl: No such device. Make sure mptctl is loaded into the kernel"},"content":{"rendered":"<p><strong>The &#8220;mptctl&#8221; kernel module is required to check the RAID status on a Linux server using &#8220;mpt-status&#8221; tool.<\/strong><\/p>\n<p>You may receive &#8220;\/dev\/mptctl: No such device&#8221; message OR &#8220;Make sure mptctl is loaded into the kernel&#8221; while checking the RAID status which indicates that the module is not loaded in the kernel OR the device &#8220;\/dev\/mptctl&#8221; is not created.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># mpt-status <\/span>\r\n <span style=\"color: #0000ff;\">open \/dev\/mptctl: No such device <\/span>\r\n <span style=\"color: #0000ff;\">Are you sure your controller is supported by mptlinux? <\/span>\r\n <span style=\"color: #0000ff;\">Make sure mptctl is loaded into the kernel<\/span><\/pre>\n<\/blockquote>\n<p>To create the mptctl device, execute:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># mknod \/dev\/mptctl c 10 22<\/span><\/pre>\n<\/blockquote>\n<p>and verify it by<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># ls -la <\/span>\r\n <span style=\"color: #0000ff;\">\/dev\/mptctl crw------- 1 root root 10, 220 Apr 12 08:05 \/dev\/mptctl<\/span><\/pre>\n<\/blockquote>\n<p>Once the device is created, load the module in the kernel using modprobe<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># modprobe mptctl<\/span><\/pre>\n<\/blockquote>\n<p>and verify it using lsmod which should list the following modules along with it&#8217;s details<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># lsmod |grep mptctl <\/span>\r\n <span style=\"color: #0000ff;\">mptctl <\/span>\r\n <span style=\"color: #0000ff;\">mptbase <\/span>\r\n <span style=\"color: #0000ff;\">scsi_mod<\/span><\/pre>\n<\/blockquote>\n<p>Add the module in \/etc\/rc.modules file to load the module in kernel on every reboot.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">modprobe mptctl<\/span><\/pre>\n<\/blockquote>\n<p>Save the file. This will make sure the module is loaded in the kernel on every server reboot.<\/p>\n<p>Once done, you will be able to check the RAID status by executing the &#8216;mpt-status&#8217; command and it should show something like the following:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># mpt-status<\/span>\r\n <span style=\"color: #0000ff;\">ioc0 vol_id 0 type IM, 2 phy, 465 GB, state OPTIMAL, flags ENABLED <\/span>\r\n <span style=\"color: #0000ff;\">ioc0 phy 1 scsi_id 1 ATA ST3 CC38, 10 GB, state ONLINE, flags NONE <\/span>\r\n <span style=\"color: #0000ff;\">ioc0 phy 0 scsi_id 4 ATA ST3 CC38, 10 GB, state ONLINE, flags NONE<\/span><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The &#8220;mptctl&#8221; kernel module is required to check the RAID status on a Linux server using &#8220;mpt-status&#8221; tool.<br \/>\nYou may receive &#8220;\/dev\/mptctl: No such device&#8221; message OR &#8220;Make sure mptctl is loaded into the kernel&#8221; while checking the RAID status which indicates that the module is not loaded in the kernel OR the device &#8220;\/dev\/mptctl&#8221; is not created.<\/p>\n<p># mpt-status<br \/>\n open \/dev\/mptctl: No such device<br \/>\n Are you sure your controller is supported by mptlinux?<br \/>\n Make sure mptctl is loaded into the kernel<\/p>\n<p>To create the mptctl device, execute:<\/p>\n<p># [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[854,855,856,853,804,806,803],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/764"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=764"}],"version-history":[{"count":13,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/764\/revisions"}],"predecessor-version":[{"id":2205,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/764\/revisions\/2205"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}