richliu's blog

Linux, 工作, 生活.

richliu's blog header image 2

LVM 真是好物

三月 24th, 2005 · No Comments

這幾天因為有會在資料在 Partition 移來移去, 分割, 整合的需求,
所以就選用用 LVM 做我的 File System

結果比較白爛的事情是, Reiser4 的 resize tool 沒有寫好, 所以我只能先搬到另一
顆 DISK ,將原來的 File System 改成 Reiser3 再搬回來. 又多花了半天.

增大 Partition 到是沒有花很多時間. 就 fdisk 直接切 size 之後
直接用 resize_reiserfs 去修就可以了

懶得打指令集了, 指令如下

624 pvcreate /dev/hde
625 pvdisplay
626 vgdisplay
627 vgextend data /dev/hde
628 lvdisplay
629 vgdisplay
634 lvextend -L457G /dev/data/data_lv
635 lvdisplay
636 vgdisplay
637 fdisk /dev/data/data_lv
643 resize_reiserfs /dev/data/data_lv

相關指令在我的 wikiLVM 指令說明

Update: pvcreate 建 device 時,需要移除所有的 partition 或是沒有任何資料

On this day..

Tags: ,

Related posts

Tags: Gentoo · Linux

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment