Показаны сообщения с ярлыком linux. Показать все сообщения
Показаны сообщения с ярлыком linux. Показать все сообщения

воскресенье, апреля 21, 2013

Linux: "Give root password for maintenance"




In the event your Linux box experiences disk or file system issues you may receive a "Give root password for maintenance" prompt upon reboot. If you have your root password you can login but in the event your using 'slide' or 'sudo' for wheel access or you've just mis-placed your root password - you'll need to reset it.

To reset your root password:

1. When the GRUB loader shows during boot press the spare bar to pause boot.
2. Select your boot kernel.
3. Type 'e' to edit the default kernel line.
4. Type 'e' again on the line that starts with 'kernel'.
5. Add 'init=/bin/bash' to the end of the 'kernel' line then press enter.
6. Type 'b' to boot the modified kernel parameters.
7. Once you're at the /bin/bash prompt you will need to remount the root file system as read/write in order to edit the passwd file:
# mount -o remount,rw /
8. Change your root password:
# passwd root
9. Remount the filesystem back to read only:
# mount -o remount,ro /
10. Reboot your server using CTR-ALT-DELETE.
11. You will now be able to login with your new root password and carry out the maintenance.


четверг, января 06, 2011

гребаный Selinux

с утра отключил один из слэйвов чтоб проверить xtrabackup и накатить точную версию базки, после ристарта получаю ошибку:

110106 12:37:36 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110106 12:37:37 [Note] Plugin 'FEDERATED' is disabled.
/usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
110106 12:37:37 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.3
110106 12:37:37 InnoDB: Initializing buffer pool, size = 9.0G
110106 12:37:38 InnoDB: Completed initialization of buffer pool
110106 12:37:38 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /var/lib/mysql/ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
110106 12:37:38 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
давай перезаливать и перенастраивать, одно и тоже.
права на папку в порядке.
переустановил пару раз mysql, работает.
накатываю бэкап ошибка
без 15 восемь вспомнил что видел лог в munin на selinux на одном из серверов
точно он скотино, отрубил все поднялось

среда, октября 28, 2009

linux хуинукс

ставил libssh2
получал ошибку на ./configure

try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH

поставил libssl и libgcrypt все равно ошибка

этой ссуке надо было yum install openssl-devel.x86_64 еще сделать
заипало

среда, мая 20, 2009

install munin plugins

установил apache_accesses по мануалу, сделал ристарт картинка появилась но не меняется, оказывается надо было поправить права в /var/lib/munin/имя_сайта они автоматом рутовыми были.

apache_accesses installed , but picture doesn't refresh
i needed to change owners in /var/lib/munin/site_name for *.rrd files to munin:munin