- 论坛徽章:
- 0
|
本帖最后由 LouisJi 于 2011-03-02 09:21 编辑
如下:
# fdisk -l /dev/mapper/mpath1
Disk /dev/mapper/mpath1: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/mapper/mpath1p1 1 26108 209712478+ 83 Linux
# mkfs -t ext3 /dev/mapper/mpath1p1
mke2fs 1.39 (29-May-2006)
Could not stat /dev/mapper/mpath1p1 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
更新:
实验证明,上面的问题是由于对 多路径聚合后的 mpathXX 执行 fdisk,这么做是错的,
正确的做法是 fdisk /dev/sda (sda为多条路径中的一个),或者使用kpartx 来分区 |
|