我有一块来自 Javelin S4(类似于 Promise NS4600N)机箱的硬盘,它被设置为单磁盘 RAID0,我曾尝试将其添加到我的 Linux Ubuntu 服务器(14.x)通用“Linux 3.13.0-49-generic”中,根据我所读到的内容,我认为 FS 类型是 xfs。我还有一个来自 Promise NS4300N 的磁盘,我可以添加(ext3)没有问题,同样的单磁盘 RAID0 格式。
每当我尝试安装 XFS 设备时,都会收到错误“功能未实现”。
fdisk -l(仅提供相关项目):
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
[...]
Disk /dev/mapper/vg002-lv001: 1999.0 GB, 1998950760448 bytes
255 heads, 63 sectors/track, 243025 cylinders, total 3904200704 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg002-lv001 doesn't contain a valid partition table
此信息与安装正常的 ext3 设备相同。
当我执行以下任何一项操作时:
sudo mount -t xfs /dev/vg002/lv001 /hdd/volume2
sudo mount -t xfs /dev/mapper/vg002-lv001
sudo mount /dev/vg002/lv001 /hdd/volume2
sudo mount /dev/mapper/vg002-lv001
I just get Function not implemented.
我已经安装了 xfsprogs 和 xfsdump
我已经尝试过 Ubuntu 服务器和 Ubuntu 桌面中的选项
我已经运行了 xfs-repair,首先使用 -n,然后不带无操作开关:
sudo xfs_repair -v /dev/mapper/vg002-lv001
Phase 1 - find and verify superblock...
- block cache size set to 758408 entries
Phase 2 - using internal log
- zero log...
zero_log: head block 195328 tail block 195328
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
Phase 5 - rebuild AG headers and trees...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- reset superblock...
Phase 6 - check inode connectivity...
- resetting contents of realtime bitmap and summary inodes
- traversing filesystem ...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- traversal finished ...
- moving disconnected inodes to lost+found ...
Phase 7 - verify and correct link counts...
Note - quota info will be regenerated on next quota mount.
XFS_REPAIR Summary Wed Aug 19 09:45:12 2015
Phase Start End Duration
Phase 1: 08/19 09:44:51 08/19 09:44:52 1 second
Phase 2: 08/19 09:44:52 08/19 09:45:02 10 seconds
Phase 3: 08/19 09:45:02 08/19 09:45:10 8 seconds
Phase 4: 08/19 09:45:10 08/19 09:45:11 1 second
Phase 5: 08/19 09:45:11 08/19 09:45:11
Phase 6: 08/19 09:45:11 08/19 09:45:11
Phase 7: 08/19 09:45:11 08/19 09:45:11
Total run time: 20 seconds
我已经做过 vgscan
Reading all physical volumes. This may take a while...
Found volume group "vg002" using metadata type lvm2
[...]
我已经验证 xfs 支持 /procs/filesystems 并且它没有 nodev(没有 /etc/filesystems)
我相信 HDD 块大小为 4096,并且已执行 getconf PAGE_SIZE,返回值为 4096
a dmesg | tail yields:
[ 1631.686429] XFS (dm-0): Corruption detected. Unmount and run xfs_repair
[ 1631.686433] XFS (dm-0): SB validate failed with error 38.
[31648.998141] XFS (dm-0): unknown mount option [csize].
[31665.514229] XFS (dm-0): unknown mount option [csize].
我还在两个不同 NAS 的两个硬盘上运行了此命令:
sudo file -s /dev/sda
/dev/sda: LVM2 PV (Linux Logical Volume Manager), UUID: KNAIIR-rtHE-ucTO-cWT4-Zke0-7NVX-7WNpD0, size: 2000331800576
sudo file -s /dev/sdc
/dev/sdc: LVM2 PV (Linux Logical Volume Manager), UUID: ANxiVX-4s1T-dtNj-vCGA-xNGE-p39E-UP0bHc, size: 1999999991808
设备上还有更多数据:
sudo lvdisplay
--- Logical volume ---
LV Path /dev/vg002/lv001
LV Name lv001
VG Name vg002
LV UUID cOl9oX-IoNh-azhW-cnxS-USa6-LpV6-sI0RKQ
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 0
LV Size 1.82 TiB
Current LE 476587
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Path /dev/vg002/nsswap
LV Name nsswap
VG Name vg002
LV UUID qidCbH-TlD0-oXPB-cb36-tPZy-3anI-7gcC2Q
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 0
LV Size 512.00 MiB
Current LE 128
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
使用 lvdisplay 命令,我确实注意到它有一个 nswap 实体,而其他 ext3 设备没有。不确定这是否意味着什么(抱歉,我有点菜鸟,或者至少不太精通管理 Linux 基础设施)。
有人对我还没有尝试过的方法有什么想法吗?有什么建议吗?数据没问题,我只是希望能够将数据从一个磁盘传输到另一个磁盘,而不必通过网络进行传输 - NAS > 工作站 > NAS - 需要很长时间。
谢谢