2008年3月 4日

lvextend

XenのDomain-U割り当てエリアを拡張。
ON中だとちょっと怖いので、落とした上でDomain-0上で作業。

メモとして残す。

hiomega:/home/shibata# lvextend -L +1G /dev/vg03/hiz.luky.org-swap
  Extending logical volume hiz.luky.org-swap to 2.00 GB
  Logical volume hiz.luky.org-swap successfully resized

hiomega:/home/shibata# lvextend -L +10G /dev/vg03/hiz.luky.org-disk 
  Extending logical volume hiz.luky.org-disk to 110.00 GB
  Logical volume hiz.luky.org-disk successfully resized

hiomega:/home/shibata# vgscan 
  Reading all physical volumes.  This may take a while...
  Found volume group "vg03" using metadata type lvm2
  Found volume group "vg02" using metadata type lvm2
  Found volume group "vg01" using metadata type lvm2
  Found volume group "hiomega.luky.org" using metadata type lvm2

hiomega:/home/shibata# vgdisplay vg03
  --- Volume group ---
  VG Name               vg03
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               115.04 GB
  PE Size               4.00 MB
  Total PE              29449
  Alloc PE / Size       28672 / 112.00 GB
  Free  PE / Size       777 / 3.04 GB
  VG UUID               3S0C4b-8ju3-ZZjZ-u8zH-35T1-hdN6-PWSsRJ
   
hiomega:/home/shibata# lvscan 
  ACTIVE            '/dev/vg03/hiz.luky.org-disk' [110.00 GB] inherit
  ACTIVE            '/dev/vg03/hiz.luky.org-swap' [2.00 GB] inherit
  ACTIVE            '/dev/vg01/sarutahiko.ootsuka.jp-disk' [8.00 GB] inherit
  ACTIVE            '/dev/vg01/sarutahiko.ootsuka.jp-swap' [1.00 GB] inherit
  ACTIVE            '/dev/vg01/hiz.usr.local' [70.00 GB] inherit
  ACTIVE            '/dev/hiomega.luky.org/root' [112.21 GB] inherit
  ACTIVE            '/dev/hiomega.luky.org/swap_1' [2.59 GB] inherit

hiomega:/home/shibata# resize2fs /dev/vg03/hiz.luky.org-disk
resize2fs 1.40-WIP (14-Nov-2006)
Please run 'e2fsck -f /dev/vg03/hiz.luky.org-disk' first.

hiomega:/home/shibata# e2fsck -f /dev/vg03/hiz.luky.org-disk
e2fsck 1.40-WIP (14-Nov-2006)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/vg03/hiz.luky.org-disk: 721813/13107200 files (0.7% non-contiguous), 18376362/26214400 blocks 

hiomega:/home/shibata# resize2fs /dev/vg03/hiz.luky.org-disk
resize2fs 1.40-WIP (14-Nov-2006)
Resizing the filesystem on /dev/vg03/hiz.luky.org-disk to 28835840 (4k) blocks.
The filesystem on /dev/vg03/hiz.luky.org-disk is now 28835840 blocks long.

hiomega:/home/shibata# mkswap /dev/vg03/hiz.luky.org-swap 
Setting up swapspace version 1, size = 2147479 kB
no label, UUID=4281c72f-b51d-43f9-ab45-e8062a1c1fb9

投稿者 his : 2008年3月 4日 19:05
このエントリーのトラックバックURL: http://hoop.euqset.org/blog/mt-tb2006.cgi/70653
コメント
コメントする









名前、アドレスを登録しますか?





画像の中に見える文字を入力してください。