linux下 LVM卷扩容

[root@fetch-crawler home]# fdisk -l

Disk /dev/vda: 42.9 GB, 42949672960 bytes
16 heads, 63 sectors/track, 83220 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00079a64

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           3         409      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/vda2             409       20806    10279936   8e  Linux LVM
Partition 2 does not end on cylinder boundary.

Disk /dev/mapper/VolGroup00-LogVol01: 1610 MB, 1610612736 bytes
255 heads, 63 sectors/track, 195 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup00-LogVol00: 8891 MB, 8891924480 bytes
255 heads, 63 sectors/track, 1081 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

#fdisk /dev/vda
m -> n -> p(选择主分区) -> t (选择磁盘,格式化为8e) -> w(写到磁盘中)

#mkfs -t ext3 /dev/vda3

#mount /dev/vda3 /hadoop

由于mount是临时挂载,所以需要配置开机自动挂载。
#vi /etc/fstab
/dev/vda3 (磁盘分区)            /mnt/dat(挂载目录)    ext3(文件格式)     defaults         0  0

参考文章:
http://blog.chinaunix.net/uid-22414998-id-3265818.html
http://blog.csdn.net/beiigang/article/details/8178425
http://zhoualine.iteye.com/blog/1595519
http://www.cnblogs.com/benio/archive/2010/10/13/1849946.html
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值