# Server status job

**URL:** <https://forums.suse.com/t/server-status-job/29339>\
**Category:** SLES Updates\
**Created:** [February 9, 2017, 4:07pm UTC](https://forums.suse.com/t/server-status-job/29339 "2017-02-09T16:07:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [February 9, 2017, 4:07pm UTC](https://forums.suse.com/t/server-status-job/29339/1 "2017-02-09T16:07:46Z")

</div>

Had some storage issues on the LUN where my SMT box lives, and now my  
status jobs I have in my cron job don’t all work. I get this back when  
I try to run some of them:

DBD::mysql::db do failed: Table ‘./smt/JobQueue’ is marked as crashed  
and should be repaired at /usr/lib/perl5/vendor\_perl/5.10.0/SMT/Job.pm  
line 579.

Job is this:

/usr/sbin/smt-job --create -t patchstatus -g

Any suggestions?

–  
Stevo

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [February 10, 2017, 1:54pm UTC](https://forums.suse.com/t/server-status-job/29339/2 "2017-02-10T13:54:40Z")

</div>

On 09/02/17 14:07, Stevo wrote:  
[color=blue]

> Had some storage issues on the LUN where my SMT box lives, and now my  
> status jobs I have in my cron job don’t all work. I get this back when  
> I try to run some of them:
> 
> DBD::mysql::db do failed: Table ‘./smt/JobQueue’ is marked as crashed  
> and should be repaired at /usr/lib/perl5/vendor\_perl/5.10.0/SMT/Job.pm  
> line 579.
> 
> Job is this:
> 
> /usr/sbin/smt-job --create -t patchstatus -g
> 
> Any suggestions?[/color]

I wonder if this is related to  
[https://forums.suse.com/showthread.php?8951](https://forums.suse.com/showthread.php?8951) … ?

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [February 10, 2017, 10:14pm UTC](https://forums.suse.com/t/server-status-job/29339/3 "2017-02-10T22:14:51Z")

</div>

Simon Flood sounds like they ‘said’:  
[color=blue]

> I wonder if this is related to  
> [https://forums.suse.com/showthread.php?8951](https://forums.suse.com/showthread.php?8951) … ?
> 
> HTH.[/color]  
> So my response to Simon’s comment is…

My SMT box is sles11sp4

–  
Stevo

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [February 14, 2017, 6:48pm UTC](https://forums.suse.com/t/server-status-job/29339/4 "2017-02-14T18:48:15Z")

</div>

Hi Stevo,

a classical case of “database maintenance needed”. The MYSQL database operating in the back of the SMT server expects a “repair” operation for the referenced table (database “smt”, table “JobQueue”). Lilkely other tables are affected as well.

```auto
mysqlcheck -uroot -p<mysql-root-user-password> --auto-repair --check --optimize --all-databases
```

[https://www.suse.com/support/kb/doc/?id=7004986](https://www.suse.com/support/kb/doc/?id=7004986) lists the steps you may have taken to create up-to-date backups and how to perform disaster recovery.

Regards,  
J

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [February 14, 2017, 11:32pm UTC](https://forums.suse.com/t/server-status-job/29339/5 "2017-02-14T23:32:16Z")

</div>

jmozdzen sounds like they ‘said’:  
[color=blue]

> Hi Stevo,
> 
> a classical case of “database maintenance needed”. The MYSQL database  
> operating in the back of the SMT server expects a “repair” operation  
> for the referenced table (database “smt”, table “JobQueue”). Lilkely  
> other tables are affected as well.
> 
> ## Code:
> 
> ```
> mysqlcheck -uroot -p<mysql-root-user-password> --auto-repair
> 
> ```
> 
> –check --optimize --all-databases --------------------  
> [/color]

So my response to jmozdzen’s comment is…

Thanks a ton! That fixed it!

–  
Stevo
