fetus Diary
2008/01/10(木) - Reshape のあと
Reshape が終わると Array Size はいい感じに拡大するけど…
[root@SUZURI ~]# mdadm --detail /dev/md1
/dev/md1:
Version : 00.90.03
Creation Time : Thu Oct 25 08:30:46 2007
Raid Level : raid5
Array Size : 1220456960 (1163.92 GiB 1249.75 GB)
Device Size : 244091392 (232.78 GiB 249.95 GB)
Raid Devices : 6
Total Devices : 6
Preferred Minor : 1
Persistence : Superblock is persistent
[root@SUZURI ~]# pvdisplay
--- Physical volume ---
PV Name /dev/md1
VG Name VolGroupSuzuri
PV Size 698.35 GB / not usable 7.31 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 22347
Free PE 0
Allocated PE 22347
LVM は昔の容量のまま認識しているので、
[root@SUZURI ~]# pvresize /dev/md1
[root@SUZURI ~]# pvdisplay
--- Physical volume ---
PV Name /dev/md1
VG Name VolGroupSuzuri
PV Size 1.14 TB / not usable 12.31 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 37245
Free PE 14898
Allocated PE 22347
pvresize で (LVM にとっての物理ドライブの)容量を正しい値に。
あとは、lvresize で Logical Volume のサイズを変更して、ファイルシステムをリサイズしてやるだけ。
[root@SUZURI ~]# lvresize -l +14898 /dev/VolGroupSuzuri/LogVolRitsukoData
Rounding up size to full physical extent 14.56 GB
Extending logical volume LogVolRitsukoData to 1.12 TB
Logical volume LogVolRitsukoData successfully resized
[root@SUZURI ~]# e2fsck -f /dev/mapper/VolGroupSuzuri-LogVolRitsukoData
[root@SUZURI ~]# resize2fs /dev/mapper/VolGroupSuzuri-LogVolRitsukoData
まあ、この辺は(mdadm 周りと違って)何も見なくても覚えているけど。
コメント
コメントはありません。