在 Oracle VM Server 中,我们创建了第二个分区/dev/sdb
,现在我们想在其上创建 ext4 文件系统,但mkfs -t ext4 /dev/sdb2
返回此信息:
mke2fs 1.43-WIP (20-Jun-2013) /dev/sdb2 is apparently in use by the system; will not make a filesystem here!
结果如下parted
:
[root@OVSGRIENSU ~]# parted /dev/sdb
GNU Parted 2.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: IBM ServeRAID M5210e (scsi)
Disk /dev/sdb: 999GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 53.7GB 53.7GB ext4
2 53.7GB 999GB 945GB datos1
如您所见,该磁盘由 RAID 控制器 IBM ServerRAID M5210e 处理。这是一个磁盘阵列,让操作系统看到每个磁盘的唯一方法就是这个。
我们如何为 /dev/sdb2 创建文件系统?
编辑:@anx 请求的数据:
mount
/dev/sdb1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda2 on /boot type ext4 (rw)
/dev/sda1 on /boot/efi type vfat (rw,umask=0077,shortname=winnt)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
xenfs on /proc/xen type xenfs (rw)
none on /var/lib/xenstored type tmpfs (rw)
/dev/sda4 on /mnt/datos1 type ext4 (rw)
dmraid -r
no raid disks
猫/proc/mdstat
Personalities :
unused devices: <none>