# Restarting mysql failed with error 11

**URL:** <https://forums.percona.com/t/restarting-mysql-failed-with-error-11/18119>\
**Category:** MySQL & MariaDB\
**Created:** [October 20, 2022, 5:24pm UTC](https://forums.percona.com/t/restarting-mysql-failed-with-error-11/18119 "2022-10-20T17:24:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dba1](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/dba1/32/24223_2.png) [@Dba1](https://forums.percona.com/u/Dba1)\
**Post date:** [October 20, 2022, 5:24pm UTC](https://forums.percona.com/t/restarting-mysql-failed-with-error-11/18119/1 "2022-10-20T17:24:33Z")

</div>

Hello guys  
I have seen this error multiple blogs before but the way around still confusing. I patched my server from Mariadb 10.30.35 to 10.3.36 today and everything was fine. When I tried systemctl start Mariadb I found out mariadb was unable to start.

Mysqld:can’t lock aria control file ‘/mydata /aria\_log\_control’ for exclusive use, error:11 will retry in 30 seconds  
Mysqld got error ‘could not get an exclusive lock: file is probably in use by another process’ when trying to use aria control file ‘/mydata/aria\_log\_control’

Any way around ? Is this a bug ? Please

---

<div class="post-metadata">

**Author:** ![Pep\_Pla](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pep_pla/32/9735_2.png) [@Pep\_Pla](https://forums.percona.com/u/Pep_Pla)\
**Post date:** [October 21, 2022, 7:15am UTC](https://forums.percona.com/t/restarting-mysql-failed-with-error-11/18119/2 "2022-10-21T07:15:34Z")

</div>

Hi @Dba1

Thank you for being part of the Percona Community. Could you tell me what filesystem you are using? Usually, error 11 means that the resource is not available temporarily. This kind of error messages  
are generated by the filesystem because the file is locked by another process.

Also check that you don’t have any instance of mariadb running.

Thanks,

Pep

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [October 21, 2022, 3:30pm UTC](https://forums.percona.com/t/restarting-mysql-failed-with-error-11/18119/3 "2022-10-21T15:30:11Z")

</div>

@Dba1,  
Also check if SELinux is in ENFORCING mode, if you are on CentOS/RHEL/Rocky. You might need to change to PERMISSIVE mode, since your $datadir is in a non-standard location.

---

<div class="post-metadata">

**Author:** ![Dba1](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/dba1/32/24223_2.png) [@Dba1](https://forums.percona.com/u/Dba1)\
**Post date:** [October 22, 2022, 1:20am UTC](https://forums.percona.com/t/restarting-mysql-failed-with-error-11/18119/4 "2022-10-22T01:20:32Z")

</div>

Thanks @Pep_Pla I was able to resolve yesterday. I am just coming back here. Basically when I restarted mariadb I found out that another daemon was running underground which was using resources…  
Fixed by

Systemctl stop mysqld.service. I restarted mariadb and it worked. Once again thank you

---

<div class="post-metadata">

**Author:** ![Dba1](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/dba1/32/24223_2.png) [@Dba1](https://forums.percona.com/u/Dba1)\
**Post date:** [October 22, 2022, 1:24am UTC](https://forums.percona.com/t/restarting-mysql-failed-with-error-11/18119/5 "2022-10-22T01:24:12Z")

</div>

Big thanks @matthewb you are always there. I was able to resolve just replying the trend again I know I’m late. Can you please explain what you mean my data is in standard place.

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [October 22, 2022, 4:40am UTC](https://forums.percona.com/t/restarting-mysql-failed-with-error-11/18119/6 "2022-10-22T04:40:47Z")

</div>

> [@Dba1](#):
>
> mean my data is in standard place

`/mydata/` is not standard/default. `/var/lib/mysql` is the default. SELinux usually doesn’t like it when you move things away from the default due to the security contexts.
