Hello folks,
Is there anyway to look at the contents of a zfs volume from within Freenas? Is there a way to mount a zvol from within freenas, if so can someone post the syntax, the normal Linux "mount -t ..." didn't seem to work, I have been through the zfs man pages a number of times and not figure it out.
I was hoping to mount a certain zvol and see what data, if any is still there, fearing the worst because of an outage.
Environment context:
I have a small Freenas setup for my home network, One raid set hosting with 1 zpool and 4 zvols within that zpool which are shared out to an ESXi server using ISCSI. The ESXI and FreeNas ISCSI network is through a seperate switch and NICs, Jumbo frames enabled on the HP switch, VMware and FreeNas.
I am not 100% sure of the root cause but a few days back the ESXi lost all track of the storage, the VMs are spread out over the 4 zvols. zfs list showed all 4 zvols but restarting ISCSI on FreeNas, rescanning the ISCSI HBA on VMware did not get the volumes reattached.
I eventually removed the targets and recreated them, then a rescan allowed mounting of the zvols. Three of the 4 zvols had data and it was usable -- thank you zfs gods! -- one zvol mounted but is completely empty.
The zpool looks to be healthy:
I was also able to snapshot and clone each of the zvols, 3 out of 4 clones and original zvols mounted fine and contained data so I think Freenas is working correctly. Running the "zfs get all" command against each of the zvols looked the same to me but I don't claim to be any sort of a zfs expert.
I have included it below if anyone has the ability to spot an issue that would be great.
Thanks in advance, liking Freenas and ZFS, hoping there is a trick to get the missing data back.
Is there anyway to look at the contents of a zfs volume from within Freenas? Is there a way to mount a zvol from within freenas, if so can someone post the syntax, the normal Linux "mount -t ..." didn't seem to work, I have been through the zfs man pages a number of times and not figure it out.
I was hoping to mount a certain zvol and see what data, if any is still there, fearing the worst because of an outage.
Environment context:
I have a small Freenas setup for my home network, One raid set hosting with 1 zpool and 4 zvols within that zpool which are shared out to an ESXi server using ISCSI. The ESXI and FreeNas ISCSI network is through a seperate switch and NICs, Jumbo frames enabled on the HP switch, VMware and FreeNas.
I am not 100% sure of the root cause but a few days back the ESXi lost all track of the storage, the VMs are spread out over the 4 zvols. zfs list showed all 4 zvols but restarting ISCSI on FreeNas, rescanning the ISCSI HBA on VMware did not get the volumes reattached.
I eventually removed the targets and recreated them, then a rescan allowed mounting of the zvols. Three of the 4 zvols had data and it was usable -- thank you zfs gods! -- one zvol mounted but is completely empty.
The zpool looks to be healthy:
Code:
[root@freenas] ~# zpool status pool: fn545red state: ONLINE scan: scrub repaired 0 in 3h33m with 0 errors on Sun Nov 11 03:33:26 2018 config: NAME STATE READ WRITE CKSUM fn545red ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 gptid/d280adcb-c637-11e7-967d-0008a108f357 ONLINE 0 0 0 gptid/d3288b3d-c637-11e7-967d-0008a108f357 ONLINE 0 0 0 gptid/d3d9c19e-c637-11e7-967d-0008a108f357 ONLINE 0 0 0 errors: No known data errors
I was also able to snapshot and clone each of the zvols, 3 out of 4 clones and original zvols mounted fine and contained data so I think Freenas is working correctly. Running the "zfs get all" command against each of the zvols looked the same to me but I don't claim to be any sort of a zfs expert.
I have included it below if anyone has the ability to spot an issue that would be great.
Thanks in advance, liking Freenas and ZFS, hoping there is a trick to get the missing data back.
Code:
[root@freenas] ~# zfs get all fn545red/fnmisc NAME PROPERTY VALUE SOURCE fn545red/fnmisc type volume - fn545red/fnmisc creation Sat Nov 11 10:01 2017 - fn545red/fnmisc used 961G - fn545red/fnmisc available 2.22T - fn545red/fnmisc referenced 250G - fn545red/fnmisc compressratio 1.14x - fn545red/fnmisc reservation none default fn545red/fnmisc volsize 700G local fn545red/fnmisc volblocksize 16K - fn545red/fnmisc checksum on default fn545red/fnmisc compression lz4 inherited from fn545red fn545red/fnmisc readonly off default fn545red/fnmisc copies 1 default fn545red/fnmisc refreservation 711G local fn545red/fnmisc primarycache all default fn545red/fnmisc secondarycache all default fn545red/fnmisc usedbysnapshots 176K - fn545red/fnmisc usedbydataset 250G - fn545red/fnmisc usedbychildren 0 - fn545red/fnmisc usedbyrefreservation 711G - fn545red/fnmisc logbias latency default fn545red/fnmisc dedup off default fn545red/fnmisc mlslabel - fn545red/fnmisc sync standard default fn545red/fnmisc refcompressratio 1.14x - fn545red/fnmisc written 176K - fn545red/fnmisc logicalused 269G - fn545red/fnmisc logicalreferenced 269G - fn545red/fnmisc volmode default default fn545red/fnmisc snapshot_limit none default fn545red/fnmisc snapshot_count none default fn545red/fnmisc redundant_metadata all defaultCode:hardware specs: Build FreeNAS-9.10-RELEASE (2def9c8) Platform Intel(R) Pentium(R) CPU G4400 @ 3.30GHz Memory 12130MB