- 论坛徽章:
- 1
|
我弄了个磁盘上去,
把它fdisk为一个pri,剩余的做exp.
分别为/dev/sdb1和/dev/sdb2
似乎sdb2挂载不上去...
- [root@TestVMDK /]#
- [root@TestVMDK /]#
- [root@TestVMDK /]# fdisk -l
-
- Disk /dev/sda: 53.7 GB, 53687091200 bytes
- 255 heads, 63 sectors/track, 6527 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: 0x000c11eb
-
- Device Boot Start End Blocks Id System
- /dev/sda1 * 1 64 512000 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/sda2 64 6528 51915776 8e Linux LVM
-
- Disk /dev/sdb: 7516 MB, 7516192768 bytes
- 255 heads, 63 sectors/track, 913 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: 0xc69ba245
-
- Device Boot Start End Blocks Id System
- /dev/sdb1 1 262 2103490+ 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/sdb2 262 913 5229158 5 Extended
-
- Disk /dev/mapper/vg_testvmdk-lv_root: 51.0 GB, 51044679680 bytes
- 255 heads, 63 sectors/track, 6205 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/vg_testvmdk-lv_swap: 2113 MB, 2113929216 bytes
- 255 heads, 63 sectors/track, 257 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@TestVMDK /]#
- [root@TestVMDK /]#
- [root@TestVMDK /]# cat /etc/fstab
-
- #
- # /etc/fstab
- # Created by anaconda on Tue Aug 8 21:24:05 2017
- #
- # 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
- #
- /dev/mapper/vg_testvmdk-lv_root / ext4 defaults 1 1
- UUID=be9769ec-c440-4cb5-9f82-4d2e5ca496e2 /boot ext4 defaults 1 2
- /dev/mapper/vg_testvmdk-lv_swap swap swap defaults 0 0
- 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/sdb1 /opt/one ext4 defaults 0 0
- /dev/sdb2 /opt/two ext4 defaults 0 0
- [root@TestVMDK /]#
- [root@TestVMDK /]#
- [root@TestVMDK /]#
- [root@TestVMDK /]# df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/mapper/vg_testvmdk-lv_root
- 47G 1.9G 43G 5% /
- tmpfs 499M 0 499M 0% /dev/shm
- /dev/sda1 477M 34M 418M 8% /boot
- /dev/sdb1 2.0G 3.1M 1.9G 1% /opt/one
- [root@TestVMDK /]#
- [root@TestVMDK /]#
- [root@TestVMDK /]#
-
复制代码
|
|