<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Перенос Centos LVM на Raid1]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=18957&amp;type=atom" />
	<updated>2012-03-18T06:47:42Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=18957</id>
		<entry>
			<title type="html"><![CDATA[Re: Перенос Centos LVM на Raid1]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=260720#p260720" />
			<content type="html"><![CDATA[<p>Вопрос, initrd ( initramfs ) содержит модуль для работы с raid? Или boot раздел не на raid/lvm ?</p>]]></content>
			<author>
				<name><![CDATA[NoXi0uZ]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9962</uri>
			</author>
			<updated>2012-03-18T06:47:42Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=260720#p260720</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Перенос Centos LVM на Raid1]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=260062#p260062" />
			<content type="html"><![CDATA[<p>вопрос актуальный!</p>]]></content>
			<author>
				<name><![CDATA[anm]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22659</uri>
			</author>
			<updated>2012-03-15T20:48:36Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=260062#p260062</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Перенос Centos LVM на Raid1]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=235643#p235643" />
			<content type="html"><![CDATA[<p>Доброго времени суток. в сети не нашел мануала, для переноса centos с lvm, поэтому попробовал разобраться сам. Есть два диск одного объема. На одном функционирующая Centos с разметкой диск по умолчанию:[;[br]<br /></p><div class="codebox"><pre><code>fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        2610    20860402+  8e  Linux LVM
Disk /dev/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes</code></pre></div><p>[br]<br />Сделал их таблицы разделов идентичными:[br]<br />sfdisk -d /dev/sda | sfdisk /dev/sdb[br]<br />сделал массив без 1 диска[br]<br /></p><div class="codebox"><pre><code>mdadm --create /dev/md/mdn --name=mdn --metadata=1.1 \
 --bitmap=internal --chunk=256 --auto=md --symlink=no \
 --run --level=raid1 --raid-devices=2 /dev/sdb2 missing</code></pre></div><p>создал lvm поверх raid:[br]<br />pvcreate -y -ff /dev/md/mdn[br]<br />и добавил его в существующую группу VolGroup00[br]<br /> vgextend VolGroup00 /dev/md/mdn[br]<br />перенес все с sda на зеркало[br]<br />pvmove -i 20 /dev/sda2[br]<br />вывел и уничтожил sda из LVM[br]<br />vgreduce VolGroup00 /dev/sda2[br]<br />pvremove /dev/sda2[br]<br />и собрал рейд:[br]<br /> mdadm /dev/md/mdn --add /dev/sda2 успешно.<br />cat /proc/mdstat[br]<br /></p><div class="codebox"><pre><code>md127 : active raid1 sda2[2] sdb2[0]
      20860334 blocks super 1.1 [2/2] [UU]
      bitmap: 1/160 pages [4KB], 64KB chunk[]</code></pre></div><p> <br />после чего отформатировал sdb1 и перенес на него содержимое /boot[br]<br />После перезагрузки получаю kernel panic;Подскажите, что нужно добавить в /etc/fstab и в /boot/grub/? И вообще правильно ли я двигаюсь?</p>]]></content>
			<author>
				<name><![CDATA[vinner]]></name>
				<uri>https://linuxforum.ru/profile.php?id=21046</uri>
			</author>
			<updated>2011-12-18T16:18:44Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=235643#p235643</id>
		</entry>
</feed>
