From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Перенос сервера
Date: Fri, 22 Apr 2005 08:40:51 +0400
Message-ID: <42688053.8030001@stc.donpac.ru> (raw)
In-Reply-To: <1794136090.20050421133428@mail.ru>
Беляев Владимир Николаевич пишет:
> Здравствуйте!
>
> Как можно (и можно ли) сделать такую штуку:
> 1. В виртуальной машине ставлю и полностью настраиваю Мастер.
> 2. Когда придет новая машина - переношу все туда.
> Собственно, вопрос именно в переносе - как сделать и какие будут
> проблемы
Когда-то писал себе следующую инструкцию:
------------------------------------------------------------------------
1. Создание эталонной системы
1.1. Загрузиться в rescue-режиме (минимум ALC 2.3)
1.2. Проверить, что система смонтирована в /mnt
1.3. Создать или примонтировать готовый каталог (/data) для сохранения
системы
1.4. Выполнить команды:
cd /mnt
find ./ | cpio -o | gzip -9 -c > /data/system.img
2. Установка эталонной системы
2.1. Загрузиться в rescue-режиме
2.2. Подключить каталог с эталонной системой (/data)
2.3. Создать следующие разделы:
/dev/hda1 / не менее 70М
/dev/hda5 swap не менее ОЗУ*2
/dev/hda6 /usr не менее 250М
/dev/hda7 /var не менее 500М
/dev/hda8 /home не менее 100М
2.4. Сооздать файловые системы и смонтировать их в /mnt
2.5. Выполнить команды:
cd /mnt
cat /data/system.img | gzip -d -c | cpio -i --make-directories
chroot /mnt /bin/bash
grub-install /dev/hda
2.6. Если установка производилась не на /dev/hda или диск был размечен
иначе, отредактировать файлы:
/etc/fstab
/etc/mtab
/boot/grub/menu.lst
/boot/grub/device.map
2.7. Если установка производилась на SCSI-устройство или RAID, выполнить
команды:
mount /proc
rm /boot/initrd-2.4.20-alt5-up.img
mkinitrd /boot/initrd-2.4.20-alt5-up.img 2.4.20-alt5-up
------------------------------------------------------------------------
С тех пор все несколько изменилось, т.к. я познал прелести LVM :) - чего
и Вам советую.
ALT Rescue его не умеет, а инсталлятор не умеет размещать / на LVM.
Посему я сделал себе эталонный минимальный ALM24, у которого все, кроме
/boot на LVM, сделал несколько готовых initrd (под IDE, под один живой
SCSI и VMware :) ), т.к. делать их просто, но неприятно, и клонирую это
дело средствами Кноппикса :)
Было бы замечательно, если бы новый ALT поддерживал LVM и его аналоги в
rescue - честно говоря, большего от инсталлятора мне и не надо :)
--
С уважением, Прокопьев Евгений
next prev parent reply other threads:[~2005-04-22 4:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-21 7:34 Беляев Владимир Николаевич
2005-04-21 7:44 ` Slava Dubrovskiy
2005-04-21 7:48 ` Slava Dubrovskiy
2005-04-21 7:44 ` Michael Isachenkov
2005-04-28 19:40 ` [Comm] " Michael Shigorin
2005-04-22 4:40 ` Eugene Prokopiev [this message]
2005-04-22 6:49 ` Re[2]: [Comm] " Беляев Владимир Николаевич
2005-04-22 6:08 ` Eugene Prokopiev
2005-04-22 7:04 ` Alexey I. Froloff
2005-04-23 10:15 ` Eugene Prokopiev
2005-04-23 10:40 ` Andrey Rahmatullin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42688053.8030001@stc.donpac.ru \
--to=prokopiev@stc.donpac.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git