码迷,mamicode.com
首页 > 其他好文 > 详细

How to add a new disk to LVM

时间:2015-08-29 23:08:39      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:

转自:http://blog.itpub.net/7191998/viewspace-772060/

1.check old diskspace and device list
df -hal
free -m
fdisk -l

2.add a new hardsik into server
fdisk /dev/sdb(hdb)
action: n #create a new partition
action: p #primary partition
action: 1-4 # how many partition
action: enter #default is ok

action: t # change a partition‘s system id
action: 8e # Linux LVM

action: w #save and exit
3.active the new disk as below or reboot
partprobe ro reboot
fdisk -l

4.check the LVM -create the PV and add into Group
vgs
pvcreate /dev/sdb1
vgextend VolGroup /dev/sdb1
vgdisplay

5.create and resize and effect LV
lvresize -L +21.96G /dev/VolGroup00/LogVol00
resize2fs /dev/VolGroup00/LogVol00

How to add a new disk to LVM

标签:

原文地址:http://www.cnblogs.com/baxk/p/4770007.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!