ESXI 4.1 Linux虚拟机调整扩充磁盘大小(2)

[root@download1 ~]# mkfs.ext3 /dev/sda3

mke2fs 1.39 (29-May-2006)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

5248992 inodes, 10486428 blocks

524321 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=4294967296

321 block groups

32768 blocks per group, 32768 fragments per group

16352 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000, 7962624

Writing inode tables: done

Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 28 mounts or

180 days, whichever comes first.  Use tune2fs -c or -i to override.

创建PV

[root@download1 ~]# pvcreate /dev/sda3

Physical volume "/dev/sda3" successfully created

查看PV状态

[root@download1 ~]# pvdisplay

/dev/hdc: open failed: 找不到介质

--- Physical volume ---

PV Name              /dev/sda2

VG Name              VolGroup00

PV Size              19.89 GB / not usable 19.49 MB

Allocatable          yes (but full)

PE Size (KByte)      32768

Total PE              636

Free PE              0

Allocated PE          636

PV UUID              KjvMTJ-8laN-yuwe-N0oA-jtsF-Z0oc-CnzOUX

"/dev/sda3" is a new physical volume of "40.00 GB"

--- NEW Physical volume ---

PV Name              /dev/sda3

VG Name

PV Size              40.00 GB

Allocatable          NO

PE Size (KByte)      0

Total PE              0

Free PE              0

Allocated PE          0

PV UUID              J9yLqC-vpK8-jiwd-5STl-kbRT-BGMg-UB6uPk

[root@download1 ~]# vgdisplay

/dev/hdc: open failed: 找不到介质

--- Volume group ---

VG Name              VolGroup00

System ID

Format                lvm2

Metadata Areas        1

Metadata Sequence No  3

VG Access            read/write

VG Status            resizable

MAX LV                0

Cur LV                2

Open LV              2

Max PV                0

Cur PV                1

Act PV                1

VG Size              19.88 GB

PE Size              32.00 MB

Total PE              636

Alloc PE / Size      636 / 19.88 GB

Free  PE / Size      0 / 0

VG UUID              V6H9Dr-e1mb-7E3v-uEgv-UyYX-da9Q-fD8VVp

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/20674.html