The “mptctl” kernel module is required to check the RAID status on a Linux server using “mpt-status” tool. You may receive “/dev/mptctl: No such device” message OR “Make sure mptctl is loaded into the kernel” while checking the RAID status which indicates that the module is not loaded in the kernel OR the device “/dev/mptctl” is not created.
[root@server ~]# mpt-statusTo create the mptctl device, execute:
open /dev/mptctl: No such device
Are you sure your controller is supported by mptlinux?
Make sure mptctl is loaded into the kernel
# mknod /dev/mptctl c 10 22and verify it by
# ls -la /dev/mptctlOnce the device is created, load the module in the kernel using modprobe
crw——- 1 root root 10, 220 Apr 12 08:05 /dev/mptctl
# modprobe mptctland verify it using lsmod which should list the following modules along with it’s details
# lsmod |grep mptctlAdd the module in /etc/rc.modules file to load the module in kernel on every reboot.
mptctl
mptbase
scsi_mod
modprobe mptctlSave the file. This will make sure the module is loaded in the kernel on every server reboot.
Once done, you will be able to check the RAID status by executing the ‘mpt-status’ command and it should show something like the following:
[root@server ~]# mpt-status
ioc0 vol_id 0 type IM, 2 phy, 465 GB, state OPTIMAL, flags ENABLED
ioc0 phy 1 scsi_id 1 ATA ST3500418AS CC38, 465 GB, state ONLINE, flags NONE
ioc0 phy 0 scsi_id 4 ATA ST3500418AS CC38, 465 GB, state ONLINE, flags NONE
No comments:
Post a Comment