[Frugalware-darcs] frugalware-current: lvm2-2.02.25-2-i686

VMiklos vmiklos at frugalware.org
Sun Jun 10 14:04:42 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=frugalware-current;a=darcs_commitdiff;h=20070610115957-e2957-e45610706cb23919d7c0266614b21e4e9ade3d18.gz;

[lvm2-2.02.25-2-i686
VMiklos <vmiklos at frugalware.org>**20070610115957
 README.Frugalware: improved the "extending" section, added a "removing" section
] {
hunk ./source/apps/lvm2/README.Frugalware 1
+=== Creating
+
hunk ./source/apps/lvm2/README.Frugalware 50
-Later you can easily extend this like:
+Create a filesystem on it as usual, ie. for ext3:
hunk ./source/apps/lvm2/README.Frugalware 53
-lvextend -L+100G /dev/vg/home
+mke2fs -j /dev/vg/home
hunk ./source/apps/lvm2/README.Frugalware 56
-And now the only task is to create a filesystem on it as usual, ie. for ext3:
+And now the only task is to mount it as usual, ie:
hunk ./source/apps/lvm2/README.Frugalware 59
-mke2fs -j /dev/vg/home
+mount /dev/vg/home /mnt/target/home
+----
+
+=== Extending
+
+You alrady saw how to extend a volume group. Extending a logical volume is a
+bit more complex, but still easy.
+
+If you use ext3:
+
+----
+umount /mnt/target/home
+lvextend -L+900M /dev/vg/home
+resize2fs /dev/vg/home
+mount /dev/vg/home /mnt/target/home
+----
+
+NOTE: According to the manpage of resize2fs, it would have support resizing
+without umounting, but this does not seem to work.
+
+If you use reiserfs:
+
+----
+lvextend -L+900M /dev/vg/home
+resize_reiserfs /dev/vg/home
+----
+
+=== Removing
+
+To remove a logical volume:
+
+----
+lvremove /dev/vg/home
+----
+
+To remove a physical volume from a volume group:
+
+----
+vgreduce vg /dev/hdc1
+----
+
+To remove a volume group:
+
+----
+vgremove vg
}


More information about the Frugalware-darcs mailing list