lvm 扩展根目录_Lvm扩展根目录容量

2

、新加一块硬盘,我的是

sdb

先创建物理卷

[root@redhat6-3

~]#

fdisk

/dev/sdb

Command

(m

for

help):

n

Command

action

e

extended

p

primary

partition

(1-4)

p

Partition

number

(1-4):

1

First

cylinder

(1-261,

default

1):

(回车,默认将所有空间分配给第一个主分区)

Using

default

value

1

Last

cylinder,

+cylinders

or

+size{K,M,G}

(1-261,

default

261):

Using

default

value

261

Command

(m

for

help):

t

(修改磁盘格式为

LVM

)

Selected

partition

1

Hex

code

(type

L

to

list

codes):

8e

Changed

system

type

of

partition

1

to

8e

(Linux

LVM)

Command

(m

for

help):

w

The

partition

table

has

been

altered!

Calling

ioctl()

to

re-read

partition

table.

Syncing

disks.

3

、再次查看磁盘情况

[root@redhat6-3

~]#

fdisk

-l

4

、将新创建的主分区创建为物理卷

[root@redhat6-3

~]#

pvcreate

/dev/sdb1


版权声明:本文为weixin_39559277原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。