Latest interface: 0.3.1
Latest system: 010

12 posts

Posted on 12 February 2012 @ 00:03edited 00:05 16s
While I realise this is not a zfsguru issue specifically, I'm hoping ppl here have done a similar thing to what I'm doing....

I'm trying to migrate data from a raid1 pool created in FreeNAS 8, to a RAIDZ pool created in ZFSguru, and I'm getting zfs errors in the raid1 pool that I had in FreeNAS. Is it possible that ZFSGuru is having trouble reading the pool from freenas?

Steps I took:

1. Shutdown FreeNAS and removed usb stick with OS on it.
2. Booted from ZFSguru liveCD and confirmed that the pool could be seen & imported
3. Shutdown and unplugged the two disks with the RAID1 pool
4. Booted from ZFSguru liveCD and confirmed that previous pool could not be seen.
5. Formatted left over disks and put into a raidz pool
6. Performed rootonzfs install to the raidz pool.
7. rebooted on rootonzfs, configured static network.
8. shutdown and plugged in raid1 disks
9. booted, and imported raid1 pool
This is what I now have. Tank is the new raidz pool, wayne is the original raid1 pool from freenas:

[root@hercules ~]# zpool list
tank 10.9T 1.79G 10.9T 0% 1.00x ONLINE -
wayne 928G 787G 141G 84% 1.00x ONLINE -

[root@hercules ~]# zfs list
tank 1.48G 8.88T 1.09G /tank
tank/zfsguru 406M 8.88T 34.9K /tank/zfsguru
tank/zfsguru/9.0-004 406M 8.88T 84.4M legacy
tank/zfsguru/9.0-004/usr 321M 8.88T 321M legacy
tank/zfsguru/9.0-004/var 1.16M 8.88T 1.16M legacy
tank/zfsguru/SWAP 26.6K 8.88T 26.6K -
wayne 787G 126G 787G /wayne

Now, when attempting to cp files from wayne to tank I get I/O errors on the wayne pool. I have confirmed that the same issue happens when trying to read the same files via samba:

[root@hercules /]# cp /wayne/storage/iso/LinuxMCE-8.10-final.iso /tank/iso/
cp: /wayne/storage/iso/LinuxMCE-8.10-final.iso: Input/output error
[root@hercules /]# cp /wayne/storage/iso/LinuxMCE-8.10-final.iso /tank/iso/
[root@hercules /]#

[root@hercules /]# zpool status -v wayne
pool: wayne
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
scan: none requested

wayne ONLINE 0 0 2
mirror-0 ONLINE 0 0 4
ada0p2 ONLINE 0 0 4
ada1p2 ONLINE 0 0 4

errors: Permanent errors have been detected in the following files:


However, I have noticed that if I retry the copy, it will sometimes succeed. Does this meant I have a faulty disk in the mirror pool? Is it zfsguru not reading the freenas FS properly? Do I need to upgrade the pool version to be compatible with freenas? Any Advice would be appreciated.

Support info:

Product ZFSguru 0.2.0-beta4
Product build date 2012-Jan-28 @ 17:49 UTC
Distribution type rootonzfs
System version 9.0-004 (checksum: 2b4b05aa62e3ed424b4fcb5c2c0ef96f)
FreeBSD version 9.0-RELEASE
ZFS version SPA: 28, ZPL: 5

Configuration for import:
vdev_children: 1
version: 15
pool_guid: 2525248420149582222
name: 'wayne'
state: 0
hostid: 1122724926
hostname: 'zfsguru.bsd'
type: 'root'
id: 0
guid: 2525248420149582222
type: 'mirror'
id: 0
guid: 5375711247976149828
metaslab_array: 23
metaslab_shift: 33
ashift: 9
asize: 998052462592
is_log: 0
type: 'disk'
id: 0
guid: 1601741691135298581
phys_path: '/dev/ada0p2'
whole_disk: 0
path: '/dev/dsk/ada0p2'
type: 'disk'
id: 1
guid: 12015335572032421610
phys_path: '/dev/ada1p2'
whole_disk: 0
path: '/dev/dsk/ada1p2'




12 posts

Posted on 12 February 2012 @ 01:01
Not sure if this is related, but checking the memory tab there is an error about there being no swap:

Physical memory
Physical memory Active Percent
Virtual memory 884.4 MiB (1 TiB max) -
Physical memory 8 GiB 100%
Application memory 16 MiB 0.2%
Inactive memory 7.8 MiB 0.1%
Caches 652 KiB 0%
Buffers 0 B 0%
Kernel memory 6.1 GiB 76.1%
Free memory 1.6 GiB 20.5%
Unknown allocated 256.7 MiB 3.1%

Swap memory

Warning: no swap detected! You are advised to configure a swap volume. Note that the LiveCD has no swap configured.

And this in the Kernel log:

swap_pager_getswapspace(16): failed
swap_pager_getswapspace(16): failed
swap_pager_getswapspace(16): failed
swap_pager_getswapspace(14): failed

However, the Volumes page shows:

ZFS Volumes

A ZFS Volume or ZVOL is a special file that act as a virtual hard drive. It can be used for sharing data via the iSCSI service.
Volume name Size Size (bytes) Claimed Total space Provisioning Sector size
tank/zfsguru/SWAP 2 GiB 2147483648 2.10G 2.10G thin 512 bytes


12 posts

Posted on 12 February 2012 @ 19:16
Further update, after running a scrub of the pool, all errors are now gone and I was able to copy the data.


806 posts

Posted on 14 February 2012 @ 11:02
You have corruption which corrects itself. I would highly advise running 12+ hours of MemTest86+ to verify your RAM is not causing any corruption.

While ZFS can correct some corruption caused by RAM-bitflips, you don't want to keep running like that since it degrades the protection ZFS can give in a real hardware situation combined with a RAM-error.

Another thing: you should be running SWAP. A large 8GiB SWAP file with thing provisioning is recommended. This starts using 0 bytes and only grows as the swap gets used over time. Using beta4 or beta5, you can enable swap on the ZVOL by clicking on its name and clicking the Enable swap button or whatever name I gave it. :-)

22 posts

Posted on 19 February 2019 @ 16:38
Filepedia: Best Software Downloads, Apps And Reviews!
GTA V PC Game Full Version Free Download
If you are into gaming on your personal computer, know what it can handle. Personal computer games come with system requirements, ranging from CPU speed to graphics card model and power. Always remember that the listed requirements on the box are minimums. Your system needs to be more powerful to play the game well.
Last Page

Valid XHTML 1.1