Инструменты пользователя

Инструменты сайта


os:centos

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
os:centos [29.03.2023 13:18] – [dracut warning: You might want to regenerate your initramfs] viacheslavos:centos [30.07.2024 19:21] (текущий) – внешнее изменение 127.0.0.1
Строка 1: Строка 1:
 +====== CentOS ======
 +===== CentOS 7 =====
 +<code bash>
 +# Обновление
 +yum update -y
 +#Поставить mlocate и mc
 +yum install mc mlocate -y
 +# Задать статический IP
 +nmtui
 +# Показать IP-адрес:
 +hostname -I
 +# Показать информацию о системе
 +hostnamectl
 +rpm --query centos-release
 +</code>
  
 +==== Hyper-V Linux Integration Services ====
 +<code bash>
 +curl -O -J https://download.microsoft.com/download/6/8/F/68FE11B8-FAA4-4F8D-8C7D-74DA7F2CFC8C/lis-rpms-4.2.3-4.tar.gz
 +tar xvzf lis-rpms-4.2.3-4.tar.gz
 +cd LISISO
 +./install.sh
 +reboot
 +rm lis-rpms-4.2.3-4.tar.gz
 +rm -rf LISISO
 +</code>
 +
 +==== Очистка раздела /boot ====
 +<code bash>
 +# Посмотреть ядра в системе
 +rpm -q kernel
 +# Очистить (оставить 2 ядра)
 +yum install yum-utils
 +package-cleanup --oldkernels --count=2
 +# Внести в конфиг, чтобы было одновременно не больше 2 ядер
 +sed -i '/installonly_limit=/c installonly_limit=2' /etc/yum.conf
 +</code>
 +https://linuxconfig.org/how-to-remove-old-unused-kernels-on-centos-linux
 +
 +
 +==== Установить MATE ====
 +[[http://browncoati.com/posts/centos_7_with_mate.html|Installing MATE on CentOS 7 from the command line]]
 +
 +If you want to run MATE on CentOS 7, I'd suggest opting for the "minimal" package option during initial installation (or at least not selecting an alternative desktop environment).
 +<code bash>
 +# Install the epel repository:
 +yum install epel-release
 +# Install the X Window System:
 +yum groupinstall "X Window system"
 +# Install the MATE desktop:
 +yum groupinstall "MATE Desktop"
 +# Change systemd default.target to graphical.target:
 +ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
 +# Switch to your new desktop environment:
 +systemctl isolate graphical.target
 +</code>
 +
 +==== dracut warning: You might want to regenerate your initramfs ====
 +Предыстория: VM c Битриксом мигрировала с ESXi 5.5 на Hyper-V 2019 c помощью Starwind V2V converter, а потом диск был сконвертирован из .vhd в .vhdx. После запуска система пишет, что\\
 +<color #ff7f27>dracut-initqueue Warning: /dev/disk/by-label/bxRoot does not exist</color> и, после попытки продолжить загрузку,\\
 +<color #ff7f27>dracut-initqueue Warning: You might want to regenerate your initramfs</color>\\
 +{{:os:pasted:20230329-131253.png}}
 +
 +Так как в загрузочном меню ядро было ''3.10.0-1160.76.1.el7.x86_64'', поэтому надо перезагрузить VM, выбрать пункт загрузочного меню со словом rescue, залогиниться под рутом, выполнить команду
 +<code bash>
 +dracut -f /boot/initramfs-3.10.0-1160.76.1.el7.x86_64.img 3.10.0-1160.76.1.el7.x86_64
 +</code>
 +и перезагрузиться. Дальше можно спокойно обновлять систему, чистить ''/boot'' от старья и т. д.
 +
 +[[https://www.cjcheema.com/2019/06/17/how-to-recover-or-rebuild-initramfs-in-centos-7-linux/|How to recover or rebuild initramfs in CentOS 7 Linux]]\\
 +[[https://exebit.wordpress.com/2015/11/20/centos-7-dracut-boot-recovery/|Centos 7 dracut boot recovery]]
 +===== CentOS 6 =====
 +
 +==== Veeam Backup & Replication prerequisites ====
 +<code bash>
 +yum update
 +</code>
 +<WRAP center round info 100%>
 +For proper Linux file system indexing, Veeam Backup & Replication requires several utilities to be installed on the VM: mlocate, gzip, and tar.
 +</WRAP>
 +<code bash>
 +yum install mlocate -y
 +</code>
 +
 +==== Ссылки ====
 +[[https://github.com/rharmonson/richtech/wiki/CentOS-6.5-Minimal-x86_64-Base-Installation-Guide|CentOS 6.5 Minimal x86_64 Base Installation Guide]]
 +
 +[[http://howtoit.ru/linux/centos/item/14-centos-6-nastroyka-seti.html|CentOS 6: настройка сети]]
 +
 +[[https://www.microsoft.com/en-us/download/details.aspx?id=46842|Linux Integration Services Version 4.0 for Hyper-V]]
 +
 +[[http://www.andrew-kirkpatrick.com/2013/01/how-to-install-centos-6-on-microsoft-hyper-v/|How to install CentOS 6 on Microsoft Hyper-V virtualization]]

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki