MDADM Cheat Sheet (2)

create a new array mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1 or… mdadm -C /dev/md0 -l1 -n2 /dev/sd[ab]1 add array to the configuration file: mdadm --detail --scan >> /etc/mdadm.conf or on debian (sigh)… mdadm --detail --scan >> /etc/mdadm/mdadm.conf can only remove failed disks from an array, so fail a disk:…

Unable to start MySQL on Ubuntu: AVC apparmor=”DENIED” operation=”open”

MySQL on Ubuntu fails to start. The following error messages are shown in the output of the journalctl -xecommand: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/proc/666999/status" pid=666999 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=124 ouid=124AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/sys/devices/system/node/" pid=666999 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=124 ouid=0audit: type=1400 audit(): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/proc/666999/status" pid=666999 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=124…
1 2 3 11