Disk /dev/vda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 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: 0x00078f9c
Device Boot Start End Blocks Id System
/dev/vda1 * 1 7833 62912512 83 Linux
Disk /dev/vdb: 536.9 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 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: 0x3a7be7cb
Device Boot Start End Blocks Id System
/dev/vdb1 1 65270 524281243+ 8e Linux LVM
Disk /dev/mapper/mailbox_vg-mailbox_lv: 536.9 GB, 536862523392 bytes
255 heads, 63 sectors/track, 65269 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
#建好了.进行格式化
[root@linuxidc ~]# mkfs -t ext4 /dev/mailbox_vg/mailbox_lv
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
32768000 inodes, 131069952 blocks
6553497 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
4000 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 34 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
#创建挂载目录,进行挂载.
[root@linuxidc ~]# mkdir /mail_mailbox
[root@linuxidc ~]# mount /dev/
Display all 179 possibilities? (y or n)
[root@linuxidc ~]# mount /dev/mailbox_vg/mailbox_lv /mail_mailbox/
[root@linuxidc ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 59G 1.9G 55G 4% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/mapper/mailbox_vg-mailbox_lv
493G 70M 467G 1% /mail_mailbox
#使用vim修改fstab的文件.让其开机自动的挂载 .
以下是后面cat /etc/fstab的内容补上,这里vim没有记录
--------------------------------------------------------------------------------------
[root@linuxidc ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Thu Aug 14 21:16:42 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=94e4e384-0ace-437f-bc96-057dd64f42ee / ext4 defaults,barrier=0 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/mailbox_vg/mailbox_lv /mail_mailbox ext4 defaults 1 2
[root@linuxidc ~]#
--------------------------------------------------------------------------------------
[root@linuxidc ~]# vim /etc/fstab
#下面进行umount然后再mount -a测试一下fstab是否正常写
[root@linuxidc ~]# umount /mail_mailbox/
[root@linuxidc ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 59G 1.9G 55G 4% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
[root@linuxidc ~]# mount -a
[root@linuxidc ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 59G 1.9G 55G 4% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/mapper/mailbox_vg-mailbox_lv
493G 70M 467G 1% /mail_mailbox
[END] 2016/9/13 9:32:31
这里到此就结束的.整合一下相关的一些步骤: