<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Вопрос по работе LVM и resize2fs в Gentoo_amd64]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=36067&amp;type=atom" />
	<updated>2014-09-27T20:31:07Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=36067</id>
		<entry>
			<title type="html"><![CDATA[Re: Вопрос по работе LVM и resize2fs в Gentoo_amd64]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=423866#p423866" />
			<content type="html"><![CDATA[<p>для будущих поколений, ещё можно обратить внимание на ключик -r lvresize...</p>]]></content>
			<author>
				<name><![CDATA[Fat-Zer]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11911</uri>
			</author>
			<updated>2014-09-27T20:31:07Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=423866#p423866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопрос по работе LVM и resize2fs в Gentoo_amd64]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=422382#p422382" />
			<content type="html"><![CDATA[<div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">--- Logical volume ---<br />&nbsp; LV Path&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /dev/vg00sda2/name_home<br />&nbsp; LV Name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name_home<br />&nbsp; VG Name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vg00sda2<br />&nbsp; LV UUID&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7LEKSJ-SMwi-3LrZ-vijW-Q8e0-MaV6-5RdTE2<br />&nbsp; LV Write Access&nbsp; &nbsp; &nbsp; &nbsp; read/write<br />&nbsp; LV Creation host, time livecd, 2014-09-07 01:04:46 +0400<br />&nbsp; LV Status&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; available<br />&nbsp; # open&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1<br />&nbsp; LV Size&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 100.00 GiB<br />&nbsp; Current LE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;25600<br />&nbsp; Segments&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1<br />&nbsp; Allocation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;inherit<br />&nbsp; Read ahead sectors&nbsp; &nbsp; &nbsp;auto<br />&nbsp; - currently set to&nbsp; &nbsp; &nbsp;256<br />&nbsp; Block device&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;253:3<br />&nbsp; &nbsp;<br />T1000 ~ # df -h /home/<br />Filesystem&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Size&nbsp; Used Avail Use% Mounted on<br />/dev/mapper/vg00sda2-name_home&nbsp; &nbsp;99G&nbsp; &nbsp;60M&nbsp; &nbsp;94G&nbsp; &nbsp;1% /home<br />T1000 ~ # umount /home/<br />T1000 ~ # e2fsck -f /dev/vg00sda2/name_home <br />e2fsck 1.42.10 (18-May-2014)<br />Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure<br />Pass 3: Checking directory connectivity<br />Pass 4: Checking reference counts<br />Pass 5: Checking group summary information<br />/dev/vg00sda2/name_home: 12/6553600 files (0.0% non-contiguous), 459350/26214400 blocks<br />T1000 ~ # resize2fs /dev/vg00sda2/name_home 10G<br />resize2fs 1.42.10 (18-May-2014)<br />Resizing the filesystem on /dev/vg00sda2/name_home to 2621440 (4k) blocks.<br />The filesystem on /dev/vg00sda2/name_home is now 2621440 blocks long.</p><p>T1000 ~ # mount /home/<br />T1000 ~ # df -h /home/<br />Filesystem&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Size&nbsp; Used Avail Use% Mounted on<br />/dev/mapper/vg00sda2-name_home&nbsp; 9.8G&nbsp; &nbsp;36M&nbsp; 9.2G&nbsp; &nbsp;1% /home<br />T1000 ~ # umount /home/<br />T1000 ~ # lvreduce -L -88G /dev/vg00sda2/name_home <br />&nbsp; WARNING: Reducing active logical volume to 12.00 GiB<br />&nbsp; THIS MAY DESTROY YOUR DATA (filesystem etc.)<br />Do you really want to reduce name_home? [y/n]: y<br />&nbsp; Size of logical volume vg00sda2/name_home changed from 100.00 GiB to 12.00 GiB.<br />&nbsp; Logical volume name_home successfully resized<br />T1000 ~ # e2fsck -f /dev/vg00sda2/name_home <br />e2fsck 1.42.10 (18-May-2014)<br />Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure<br />Pass 3: Checking directory connectivity<br />Pass 4: Checking reference counts<br />Pass 5: Checking group summary information<br />/dev/vg00sda2/name_home: 12/655360 files (0.0% non-contiguous), 83120/2621440 blocks<br />T1000 ~ # resize2fs /dev/vg00sda2/name_home <br />resize2fs 1.42.10 (18-May-2014)<br />Resizing the filesystem on /dev/vg00sda2/name_home to 3145728 (4k) blocks.<br />The filesystem on /dev/vg00sda2/name_home is now 3145728 blocks long.</p><p>T1000 ~ # mount /home/<br />T1000 ~ # df -h /home/<br />Filesystem&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Size&nbsp; Used Avail Use% Mounted on<br />/dev/mapper/vg00sda2-name_home&nbsp; &nbsp;12G&nbsp; &nbsp;40M&nbsp; &nbsp;12G&nbsp; &nbsp;1% /home<br /></div></p></div></div><p>Вот я мешок&nbsp; <img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" />&nbsp; e2fsck перед изменение размера ФС кто делать будет?<br />А параметр -f запускает e2fsck автоматом перед ресайзом. <br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"># resize2fs /dev/vg00sda2/name_home 10G<br />Please run &#039;e2fsck -f /dev/vg00sda2/name_home&#039; first.</div><br />Я &#039;first&#039; почему-то перевел как &#039;после&#039; перепутав с &#039;after&#039;.<br />Всё разобрался. <br />kostik87 Спасибо огромное! <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[AntiduPb]]></name>
				<uri>https://linuxforum.ru/profile.php?id=33159</uri>
			</author>
			<updated>2014-09-14T11:49:17Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=422382#p422382</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопрос по работе LVM и resize2fs в Gentoo_amd64]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=422381#p422381" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>AntiduPb пишет:</cite><blockquote><p>Не работает. Даже если файловую систему сделать 50Гб а том 100Гб. Собственно проблема в том что resize2fs без параметра -f даже не пытатеся менять размер ФС.</p></blockquote></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br /> --- Logical volume ---<br />&nbsp; LV Path&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /dev/vg0/lv_test<br />&nbsp; LV Name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lv_test<br />&nbsp; VG Name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vg0<br />&nbsp; LV UUID&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tSoXvE-f5Az-yy02-NTyy-dmwC-mS04-ka3O8S<br />&nbsp; LV Write Access&nbsp; &nbsp; &nbsp; &nbsp; read/write<br />&nbsp; LV Creation host, time gentoo, 2014-09-14 14:56:10 +0400<br />&nbsp; LV Status&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; available<br />&nbsp; # open&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br />&nbsp; LV Size&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10,00 GiB<br />&nbsp; Current LE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2621440<br />&nbsp; Segments&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1<br />&nbsp; Allocation&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;inherit<br />&nbsp; Read ahead sectors&nbsp; &nbsp; &nbsp;auto<br />&nbsp; - currently set to&nbsp; &nbsp; &nbsp;256<br />&nbsp; Block device&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;253:13<br />#<br /># mkfs.ext4 /dev/vg0/lv_test <br />mke2fs 1.42.10 (18-May-2014)<br />Creating filesystem with 2621440 4k blocks and 655360 inodes<br />Filesystem UUID: 5b237186-307b-42fe-8521-4300b6087edb<br />Superblock backups stored on blocks: <br />&nbsp; &nbsp; &nbsp; &nbsp; 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632</p><p>Allocating group tables: done&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />Writing inode tables: done&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />Creating journal (32768 blocks): done<br />Writing superblocks and filesystem accounting information: done<br />#<br /># mkdir /tmp/lv_test<br /># mount /dev/vg0/lv_test /tmp/lv_test/<br /># df -h /tmp/lv_test/<br />Файловая система&nbsp; &nbsp; &nbsp; &nbsp; Размер Использовано&nbsp; Дост Использовано% Cмонтировано в<br />/dev/mapper/vg0-lv_test&nbsp; &nbsp;9,8G&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 23M&nbsp; 9,2G&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1% /tmp/lv_test<br />#<br /># e2fsck -f /dev/vg0/lv_test <br />e2fsck 1.42.10 (18-May-2014)<br />Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure<br />Pass 3: Checking directory connectivity<br />Pass 4: Checking reference counts<br />Pass 5: Checking group summary information<br />/dev/vg0/lv_test: 11/655360 files (0.0% non-contiguous), 79663/2621440 blocks<br />#<br /># resize2fs /dev/vg0/lv_test 5G<br />resize2fs 1.42.10 (18-May-2014)<br />Resizing the filesystem on /dev/vg0/lv_test to 1310720 (4k) blocks.<br />The filesystem on /dev/vg0/lv_test is now 1310720 blocks long.<br />#<br /># mount /dev/vg0/lv_test /tmp/lv_test/<br /># df -h /tmp/lv_test/<br />Файловая система&nbsp; &nbsp; &nbsp; &nbsp; Размер Использовано&nbsp; Дост Использовано% Cмонтировано в<br />/dev/mapper/vg0-lv_test&nbsp; &nbsp;4,8G&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20M&nbsp; 4,6G&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1% /tmp/lv_test</p><br /><p># lvreduce -L -4G /dev/vg0/lv_test <br />&nbsp; WARNING: Reducing active logical volume to 6,00 GiB<br />&nbsp; THIS MAY DESTROY YOUR DATA (filesystem etc.)<br />Do you really want to reduce lv_test? [y/n]: y<br />&nbsp; Size of logical volume vg0/lv_test changed from 10,00 GiB (2621440 extents) to 6,00 GiB (1572864 extents).<br />&nbsp; Logical volume lv_test successfully resized</p><p># e2fsck -f /dev/vg0/lv_test<br />e2fsck 1.42.10 (18-May-2014)<br />Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure<br />Pass 3: Checking directory connectivity<br />Pass 4: Checking reference counts<br />Pass 5: Checking group summary information<br />/dev/vg0/lv_test: 11/327680 files (0.0% non-contiguous), 58462/1310720 blocks<br />#<br /># resize2fs /dev/vg0/lv_test <br />resize2fs 1.42.10 (18-May-2014)<br />Resizing the filesystem on /dev/vg0/lv_test to 1572864 (4k) blocks.<br />The filesystem on /dev/vg0/lv_test is now 1572864 blocks long.<br />#<br /># mount /dev/vg0/lv_test /tmp/lv_test/<br /># df -h /tmp/lv_test/<br />Файловая система&nbsp; &nbsp; &nbsp; &nbsp; Размер Использовано&nbsp; Дост Использовано% Cмонтировано в<br />/dev/mapper/vg0-lv_test&nbsp; &nbsp;5,8G&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20M&nbsp; 5,5G&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1% /tmp/lv_test<br /></div></p></div></div>]]></content>
			<author>
				<name><![CDATA[kostik87]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34705</uri>
			</author>
			<updated>2014-09-14T11:04:44Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=422381#p422381</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопрос по работе LVM и resize2fs в Gentoo_amd64]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=422379#p422379" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kostik87 пишет:</cite><blockquote><p>В таком случае проблема в том, что файловая система размером в 100Gb не &quot;влезает&quot; в 100Gb дисковое пространство, нужно было, к примеру уменьшить её до 90Gb, затем уменьшить логический том до 100Gb и затем расширить файловую систему на весь размер логического тома</p></blockquote></div><p>Не работает. Даже если файловую систему сделать 50Гб а том 100Гб. Собственно проблема в том что resize2fs без параметра -f даже не пытатеся менять размер ФС. <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /></p>]]></content>
			<author>
				<name><![CDATA[AntiduPb]]></name>
				<uri>https://linuxforum.ru/profile.php?id=33159</uri>
			</author>
			<updated>2014-09-14T10:51:58Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=422379#p422379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопрос по работе LVM и resize2fs в Gentoo_amd64]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=422374#p422374" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>AntiduPb пишет:</cite><blockquote><p>Терабайт и уменьшаем до 100 Гигов.</p></blockquote></div><p>В таком случае проблема в том, что файловая система размером в 100Gb не &quot;влезает&quot; в 100Gb дисковое пространство, нужно было, к примеру уменьшить её до 90Gb, затем уменьшить логический том до 100Gb и затем расширить файловую систему на весь размер логического тома, т.е.:<br /></p><div class="codebox"><pre><code># umount /home
# resize2fs /dev/vg00/home 90G
# lvresize -L100G /dev/vg00/home
# resize2fs /dev/vg00/home
# mount /home</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kostik87]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34705</uri>
			</author>
			<updated>2014-09-14T10:10:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=422374#p422374</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопрос по работе LVM и resize2fs в Gentoo_amd64]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=422373#p422373" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kostik87 пишет:</cite><blockquote><div class="quotebox"><cite>AntiduPb пишет:</cite><blockquote><p>Вопрос: где я накосячил?</p></blockquote></div><div class="quotebox"><cite>AntiduPb пишет:</cite><blockquote><p>Увеличиваем /home</p></blockquote></div><div class="quotebox"><cite>AntiduPb пишет:</cite><blockquote><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br /># resize2fs /dev/vg00/home 100G<br /># lvresize -L100G /dev/vg00/home<br /></div></p></blockquote></div><p>А вас не смущает тот факт, что вы в начале вводите команду для увепличения содержимого контейнера, т.е. файловой системы, а затем увеличиваете сам контейнер, т.е. LVM том. Либо вы ошиблись при создании темы на форуме, либо это вообще всё странно.</p></blockquote></div><p>Тьфу блин перепутал, <strong>ПРОШУ ПРОЩЕНИЯ!</strong> Раздел был 2.5 Терабайт и уменьшаем до 100 Гигов.<br />Поправил.<br />Я знаю что если нужно увеличить, то сначала увеличиваем размер тома а потом размер ФС, а если уменьшить то наоборот сначала размер ФС уменьшаем а потом размер тома.</p>]]></content>
			<author>
				<name><![CDATA[AntiduPb]]></name>
				<uri>https://linuxforum.ru/profile.php?id=33159</uri>
			</author>
			<updated>2014-09-14T09:59:46Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=422373#p422373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопрос по работе LVM и resize2fs в Gentoo_amd64]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=422367#p422367" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>AntiduPb пишет:</cite><blockquote><p>Вопрос: где я накосячил?</p></blockquote></div><div class="quotebox"><cite>AntiduPb пишет:</cite><blockquote><p>Увеличиваем /home</p></blockquote></div><div class="quotebox"><cite>AntiduPb пишет:</cite><blockquote><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br /># resize2fs /dev/vg00/home 100G<br /># lvresize -L100G /dev/vg00/home<br /></div></p></blockquote></div><p>А вас не смущает тот факт, что вы в начале вводите команду для увепличения содержимого контейнера, т.е. файловой системы, а затем увеличиваете сам контейнер, т.е. LVM том. Либо вы ошиблись при создании темы на форуме, либо это вообще всё странно.</p>]]></content>
			<author>
				<name><![CDATA[kostik87]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34705</uri>
			</author>
			<updated>2014-09-14T04:17:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=422367#p422367</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопрос по работе LVM и resize2fs в Gentoo_amd64]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=422364#p422364" />
			<content type="html"><![CDATA[<p>Видимо, здесь:<br /></p><div class="quotebox"><blockquote><p>resize2fs - ext2/ext3/ext4 file system resizer</p></blockquote></div><p><a href="http://linux.die.net/man/8/resize2fs">http://linux.die.net/man/8/resize2fs</a><br />Для манипуляции размерами томов LVM нужно использовать <a href="http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html">что-то вроде этого</a>.</p>]]></content>
			<author>
				<name><![CDATA[yars]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22799</uri>
			</author>
			<updated>2014-09-14T03:19:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=422364#p422364</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Вопрос по работе LVM и resize2fs в Gentoo_amd64]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=422362#p422362" />
			<content type="html"><![CDATA[<p>Приветствую всех <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /><br />Решил я тут поковырять LVM, до этого как-то не сталкивался с ним (знал что это но сам не работал - небыло потребности). И решил как обычно начать с Gentoo и консоли. Собрал, поставил, работает. Далее решил попробовать поиграться с ресайзом разделов. Уменьшаем /home (он занимает 2.5 Терабайта):<br /></p><div class="codebox"><pre><code># umount /home
# resize2fs /dev/vg00/home 100G
# lvresize -L100G /dev/vg00/home
# mount /home</code></pre></div><p>и на home улетают все файлы с ФС<br />при этом если в команду &quot;# resize2fs /dev/vg00/home 100G&quot; добавить параметр -f (force тобиш) ФС ресайзится и все нормально, но в манах в инете нигде этот параметр не упоминается.<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"># man resize2fs<br />***<br />-f&nbsp; &nbsp; &nbsp;Forces resize2fs to proceed with the filesystem resize operation, overriding some safety checks<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; which resize2fs normally enforces.<br />***<br /></div><br />Дословно:<br />Насильно выполняет операцию ресайза файловой системы, и перезапустить некоторые проверки проверики которые обычно выполняются.<br />Я правильно перевел/понял?<br />Но во всех манах она работает без этого параметра.<br />Вопрос: где <strong>я</strong> накосячил?</p><p>Заранее спасибо <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[AntiduPb]]></name>
				<uri>https://linuxforum.ru/profile.php?id=33159</uri>
			</author>
			<updated>2014-09-14T00:59:42Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=422362#p422362</id>
		</entry>
</feed>
