View Source

{page-title}

{kb-symptom}
A backup (replication) task fails with the following error in the task logs: 
{code}failed to fetch the default request function for device
unable to set request function for device : /dev/XXX : Invalid argument{code}
!RequestFunctionError.png|border=1!
 

{kb-cause}
{color:windowtext}This error is seen when the Server Backup agent cannot determine the exact system functions necessary to communicate with the running Linux kernel. This error has multiple causes, depending on the agent version and kernel module being used.{color}{color:windowtext} {color}



{kb-resolution}

h3. {color:windowtext}4.18.0-372 kernels and newer{color}{color:windowtext} {color}

{color:windowtext}The Server Backup Agent version 6.16.5\+ requires build 269 of the L{color}{color:windowtext}inux{color}{color:windowtext} kernel module. Older module versions will result in the error specified. To resolve this error, make sure the module in use is build 269.{color}{color:windowtext} {color}

{color:#000000}The module version can be verified by running :{color}
{code}# modinfo /Path/To/Kernel/Module.ko{code}
{info}Build 269 kernel modules are currently available from the [R1Soft Beta Repository|http://beta.r1soft.com/modules/]
If you do not see the version you need, you may request it from Support.{info}

h3. {color:windowtext}5.10 kernels and newer{color}{color:windowtext} {color}

{color:windowtext}The server Backup Agent version 6.16.5\+ requires {color}{color:windowtext}initialization{color}{color:windowtext} before snapshots can be taken.  Initialization happens when the "{color}{color:windowtext}getmodule{color}{color:windowtext}" command is run. {color}{color:windowtext} {color}{color:windowtext} {color}
{color:windowtext}It's recommended to run "{color}{color:windowtext}getmodule{color}{color:windowtext}" before downloading a new kernel module from the R1Soft Repo, or Beta Repo.{color}{color:windowtext} {color}
{color:windowtext} {color}
{color:windowtext}If the module has already been downloaded, it must first be removed from the /lib/modules/r1soft directory before {color}{color:windowtext}getmodule{color}{color:windowtext} can run.{color}
{color:windowtext}After the "{color}{color:windowtext}getmodule{color}{color:windowtext}" command completes, the module may be moved back into the /lib/modules/r1soft folder. Lastly, restart the agent to continue.{color}{color:windowtext} {color}
{code}# mv /lib/modules/r1soft/hcpdriver-cki-`uname -r`*.ko /tmp/
# getmodule
# mv /tmp/hcpdriver-cki-`uname -r`*.ko /lib/modules/r1soft/
# systemctl restart sbm-agent {code}


{kb-related-articles}