低调做人,高调做事!
分类: LINUX
2009-12-26 18:43:36
2、查看物理卷
[linux-5yrw]pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 279.22G 32.00M
3、查看卷组
[linux-5yrw]vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 4 0 wz--n- 279.22G 32.00M
4、查看逻辑卷
[linux-5yrw]lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol03
VG Name VolGroup00
LV UUID YhG8Fu-ZGPk-qt8D-AxgC-DzOU-dg1F-z71feI
LV Write Access read/write
LV Status unenable
# open 1
LV Size 245.97 GB
Current LE 7871
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
5、激活逻辑卷
[linux-5yrw]vgchange -ay /dev/VolGroup00
再次查看逻辑卷状态:
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol03
VG Name VolGroup00
LV UUID YhG8Fu-ZGPk-qt8D-AxgC-DzOU-dg1F-z71feI
LV Write Access read/write
LV Status available
# open 1
LV Size 245.97 GB
Current LE 7871
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
已经可以用了,剩下就是挂载了。
6、挂载逻辑卷
mount /dev/VolGroup00/LogVol03 /home/lvm
总结:
虽然数据恢复正常,但是也给我敲响了警钟!
1、数据备份太重要了,一定要做!
2、服务器尽量采用品牌服务器(DELL,HP),这个邮件服务器是组装机器。再个购买硬盘的时候一定要买企业级硬盘。