This command will list all physical disks attached to the MegaRAID controller. Look for the disk you want to monitor and note its PD (Physical Disk) number.
The primary cause of this error is the way the MegaRAID controller manages disks. When a disk is part of a RAID array, the MegaRAID controller presents a virtual disk to the operating system, hiding the individual physical disks. As a result, smartctl cannot access the physical disk's SMART data directly. This command will list all physical disks attached
smartctl -d megaraid,2 --all /dev/sda
megacli -pdlist -a0