我在将逻辑驱动器安装到 RHEL VM 上的文件夹时遇到问题。以下是我采取的步骤:
1. added a new drive to my computer (allocated more space to the VM)
2. created partition, sdb1, using 'fdisk /dev/sdb' and set to "linux LVM" (8e)
3. formatted sdb1 to ext3 with following cmd: mkfs.ext3 /dev/sdb1
4. added sdb1 to volume: vgextend /dev/sdb1
5. Created Logical volume: lvcreate -L 10G VolGroup00
6. Mounted: mount -t ext3 /dev/VolGroup00/lvol0 /test
mount 命令给出了以下错误:
mount: wrong fs type, bad option, bad superblock on /dev/VolGroup00/lvol0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
当我跑步时dmesg | tail
我得到:
VFS: Can't find ext3 filesystem on dev dm-2.
我做错了什么吗?我不知道为什么找不到 ext3 文件系统,因为我确实创建了它。我已经重做了两次了。
答案1
正如 Sami Laine 指出的那样,我在物理卷上创建了文件系统,但没有在逻辑卷上创建。这是我忘记的命令:
mke2fs -j /dev/VolGroup00/lvol0