Questions tagged [zfsonlinux]

zfsonlinux provides a native Linux kernel port of the ZFS filesystem so that ZFS may run natively on Linux. It is very different from ZFS-fuse which provides ZFS on top of a userspace-filesystem layer. The ZFS On Linux project is hosted on zfsonlinux.org.

zfsonlinux provides a native Linux kernel port of the ZFS filesystem so that ZFS may run natively on Linux. It is very different from ZFS-fuse which provides ZFS on top of a userspace-filesystem layer.

The ZFS On Linux project is hosted on zfsonlinux.org.

268 questions
7
votes
1 answer

ZFS Heavy Write Amplification due to Free Space Fragmentation

I have setup ZFS RAID0 for PostgreSQL database. The Storage and Instances are in AWS EC2 and EBS volumes. NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT pgpool 479G 289G 190G - 70% 60% 1.00x ONLINE …
The Coder
  • 171
  • 1
  • 4
7
votes
1 answer

How can I remove dedup from my pool without running out of RAM?

I have a server with 8 disk bays filled with 3 TB disks. Using 4 mirrored vdevs of 2 disks each, this gives me 12 TB of redundant storage. Here's the issue - I read somewhere that I needed "x GBs of RAM for each TB of deduped data" (paraphrasing). I…
Hubro
  • 1,138
  • 4
  • 16
  • 35
7
votes
2 answers

How to change the drive reference in a zfs pool from /dev/sdX to /dev/disk/by-id (ata-XXXXXX)

In the example below, how can the devices in the second mirror be changed so they they reference the /dev/disk/by-id instead of /dev/sdX? user@pc:~$ sudo zpool status pool: storage state: ONLINE scan: scrub repaired 0 in 8h30m with 0 errors on…
Greg
  • 1,657
  • 5
  • 27
  • 38
7
votes
1 answer

How to add more physical disks to a mirror vdev (to increase redundancy)?

Can more physical drives be added to mirror vdevs after a zpool has been created? For example, if a zpool is created using: zpool create test_pool mirror /dev/sd0 /dev/sd1 mirror /dev/sd2 /dev/sd3 Can more drives be added to the vdevs to increase…
Greg
  • 1,657
  • 5
  • 27
  • 38
7
votes
1 answer

zfs - hotspare, replace, detach: ressource is busy

I'm pretty new to zfsonlinux. I've just succeeded in setting up a brand new server, with a Debian ROOT on ZFS. All is working fine, but I've got an issue with hot spare and replacing disks. Here is my pool: NAME STATE …
4wk_
  • 310
  • 3
  • 15
7
votes
0 answers

Recovering/importing ZFS Linux pool with duplicate pool name

I did something very stupid today in attempting to add a third mirror to an existing Linux zpool named backup. Suffice it to say that I made a couple errors because I don't really do much admin with my ZFS other than swap disks every couple years. …
Athanasius
  • 171
  • 3
6
votes
2 answers

At my wits end. What could cause my server to randomly hard reset? (Seems to be related to ZFS)

I have a server that I built years ago that has worked like a champ. But within the past few months it has started to become seriously unstable with no discernible pattern. I have been debugging it and swapping out parts to no avail. I have replaced…
Zhro
  • 349
  • 2
  • 12
6
votes
2 answers

Create zfs pool that allows replacing one of the disks with a slightly smaller disk

This is a question regarding zfs on Linux (CentOS 7). I have a very simple setup with two 8 TB disks, one disk mirroring the other. zpool create -f -o ashift=12 $zpoolName mirror $disksById In case one of the disk needs to be replaced, the…
joaerl
  • 397
  • 1
  • 3
  • 11
6
votes
1 answer

Is the size reported by `zfs send` exact or estimated?

Consider the following command and the output: zfs send -Pvi \ tank/vms/langara@zfsnap-2016-05-11_00.00.00--1w \ tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w \ | dd > /dev/null Run 1: incremental zfsnap-2016-05-11_00.00.00--1w…
Ryan J
  • 355
  • 4
  • 11
6
votes
1 answer

Does zfs send scrub the sent data?

To my knowledge ZFS as a filesystem checks for data errors during each access to the data. I would therefore assume that it actually performs something like a scrub before sending the data thereby ensuring the integrity of the sent data. My…
Blackclaws
  • 296
  • 1
  • 2
  • 6
6
votes
1 answer

ZFS keeps faulting the same device

Our storage server has some problems, just ago we had a broken disk (WD 4TB RE SAS), though the raidcontroller (LSI MegaRAID 9271-8i) kept the disk online (status : ok). Only Media error showed 1 error. We decided to be save and replace the disk,…
SvennD
  • 749
  • 5
  • 18
6
votes
3 answers

ZFS - Recover or repair a corrupted file in a snapshot from backup?

A pool has suffered permanent data corruption to file data that's part of a snapshot. If the file data was part of the filesystem (and not part of any snapshot), I could simply recover the file from a suitable backup copy. How can I recover or…
Kenny Evitt
  • 209
  • 4
  • 12
6
votes
1 answer

How does quota usage for ZFS on Linux work?

I have a user who according to ZFS is at their quota. However, I cannot find how they are using all of their space. This file system has no descendant file systems and according to the man page the userquota space calculation does not include space…
84104
  • 12,905
  • 6
  • 45
  • 76
6
votes
4 answers

ZFS on linux upgrade from 0.6.2 to 0.6.3 made my zpool unreadable help translate CentOS to Ubuntu commands

After upgrading my ubuntu 13.10 server using sudo apt-get upgrade and rebooting, my zpool wouldn't show. messier@ANDERSON:~$ sudo zpool status no pools available messier@ANDERSON:~$ sudo zpool import zpool: ../../lib/libzfs/libzfs_import.c:356:…
Reissem
  • 63
  • 1
  • 4
6
votes
1 answer

ZFS on Linux/Ubuntu: Help importing a zpool after Ubuntu upgrade from 13.04 to 13.10, device IDs have changed

I have updated Ubuntu from version 13.04 to version 13.10, only to discover that the SATA disks IDs have changed, and my ZFS pool now fails. On new Ubuntu 13.10 the disk IDs are now ata-* instead of scsi-SATA_*. This is the pool status after the…
Manolo
  • 63
  • 1
  • 4
1 2
3
17 18