vmware esx下linux系统的磁盘扩展,VMWare ESX Server下LINUX完美增加硬盘空间(LVM)(亲测成功)...

[root@*****~]# fdisk /dev/sda

The number of cylinders for this disk is set to39162.

There is nothing wrong with that, but this is larger than1024,

and could in certain setups cause problemswith:

1) software that runs at boot time (e.g., old versions ofLILO)

2) booting and partitioning software from otherOSs

(e.g., DOS FDISK,OS/2 FDISK)

#输入n,新建分区

Command (m for help):n

#输入P,主分区

Command action

e  extended

p  primary partition(1-4)

p

#目前是sda第三个分区输入3

Partition number (1-4): 3

#敲回车,默认就行了(如果要分多个分区,这儿就制定数值)

First cylinder (39163-110960, default 39163):

Using default value 39163

Last cylinder or +size or +sizeM or +sizeK (39163-110960,default 110960):

Using default value 110960

#这里输入t

Command (m for help): t

#这里选择第三个分区

Partition number (1-4): 3

#指定分区的格式为8e(LVM)

Hex code (type L to list codes): 8e

Changed system type of partition 3 to 8e (LinuxLVM)

#输入p查看一下

Command (m for help): p

Disk /dev/sda: 912.6 GB, 912680550400 bytes

255 heads, 63 sectors/track, 110960 cylinders

Units = cylinders of 16065 * 512 = 8225280bytes

DeviceBoot     Start        End     Blocks  Id System

/dev/sda1  *          1         13     104391  83 Linux

/dev/sda2             14      39162  314464342+ 8e LinuxLVM

/dev/sda3          39163     110960  576717435  8e LinuxLVM

#这里输入w,保存退出

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error16: (这里有个小报错,不用管它).

The kernel still uses the old table.

The new table will be used at the next reboot.

Syncing disks.

#重启使其生效

[root@***** ~]# reboot

Broadcast message from root (pts/1) (Tue May 15 12:12:272012):

The system is going down for reboot NOW!

[root@***** ~]#

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值