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

你可能感兴趣的:(linux下 LVM卷扩容)