15
votes
Accepted
ZFS pool slow sequential read
I managed to get speeds very close to the numbers I was expecting.
I was looking for 400MB/sec and managed 392MB/sec. So I say that is problem solved. With the later addition of a cache device, I ...
11
votes
Accepted
How to add more physical disks to a mirror vdev (to increase redundancy)?
Yes. Yes they can.
Something like the following would add to an existing mirror and yield a triple-mirror, given the example above:
zpool attach test_pool /dev/sd0 /dev/sd4
zpool attach test_pool /...
8
votes
Accepted
ZFS pool degraded on reboot
You should not use /dev/sdX names for your pool configuration.
Any change in SCSI enumeration, say inserting a CDROM or a USB drive, could cause the device names to change, resulting in the errors ...
8
votes
Accepted
ZFS: device vdev wandered faulting zpool
If the issue is related to device name only, you can re-import the pool with a stable name by issuing:
zpool import data -d /dev/disk/by-id/
However, you have two disk with FAULTED/corrupted data, ...
8
votes
Accepted
Why does ZFS RAIDZ2 only use 2GB of data when I create a 1GB File
With two out of four disks for redundancy, you can simply double the user data: two disks store the original data and the same space is used for redundancy data on the two other disks. Parity is ...
6
votes
Accepted
Send email when zpool drive dies?
You can (and should) monitor your pool via zed, the ZFS event daemon
Alternatively, you can configure cron to regularly run zpool status -x, sending email when some output is printed. For example:
#!...
5
votes
Accepted
ZFS vdevs accumulate checksum errors, but individual disks do not
The 0x0 and other hexadecimal numbers appear instead of filenames and other objects when metadata is corrupted. If you cannot get rid of it by destroying the objects that are affected (I understood ...
5
votes
Accepted
ZFS disk in two pools after reboot?
Well, you lost a disk which was member of raidz1-0. And after the reboot the /dev/sd[a-m] devices got renamed, as Michael Hampton already mentioned.
ZFS is smart enough to not rely on the /dev/sdx ...
5
votes
Accepted
When does "zpool scrub" delete files automatically?
Scrub never deletes anything. If it finds errors that are repairable, it repairs then. If they are not repairable, it reports them. It never, ever deletes anything under any circumstances.
4
votes
Need to identify disk in zpool ... how?
#!/bin/sh
echo
echo $(basename $0) - Mounted Drives on $(hostname)
cat /etc/version
date
echo
diskinfo="$(glabel status | tail -n +2 | awk '{split($3,a,"p"); print a[1],$1}')"
echo "+========+======...
4
votes
Is there a zpool configuration other than raidz2 which lets me survive ANY 2 out of 4 failures?
My goal is the ability to survive any two drive failures from that four drive pool.
RAIDZ2 is the only choice you have in this scenario.
I know I can do this with a four drive raidz2 pool - that ...
4
votes
Why does ZFS RAIDZ2 only use 2GB of data when I create a 1GB File
The situation is (explained to get the idea, very simplified) this:
Let suppose ZFS use 512MB blocks. So you store on disk 1 512MB (part one of file), on disk 2 you store next 512MB, on parity 1 you ...
3
votes
Accepted
ZFS pool degraded with faulted disk, export and replace not working
It looks like you've been using names like /dev/sda to reference disks. That's generally not a good idea, because if your disks get assigned different names after a reboot or an unplug-replug cycle, ...
3
votes
Accepted
Where'd my zpool data go?
You created a zpool comprised of a stripe of four disks; basically a RAID 0 of disks.
You used SCSI /dev/sdX names and added a USB drive into the mix. This can cause SCSI enumeration issues and impact ...
3
votes
ZFS - 2 Striped mirror set to 1 mirror set, how?
Currently you cannot remove VDEV's. If you want to remove mirror-0, you basically have to make a backup, then re-create your pool, and restore.
3
votes
Accepted
Expand existing RAID1 zpool into RAID10 zpool
Yes, it's possible. The incantation you are looking for is:
zpool add poolname mirror newdisk1 newdisk2
3
votes
zfs remove wrongly added device
Unfortunately the short answer is no, you can't remove such a device.
ZFS < 0.8.x does not support removing a non-cache/slog vdev at all, while 0.8.x does support a limited vdev removal which would ...
2
votes
zpool status reports error ... what next?
Although the question is old, it might be looked at by other people.
If so, remember, the output of zpool status and zpool status -v relate to all errors experienced. That includes errors due to ...
2
votes
Unable to Import Zpool
I would not attempt to provide an answer without knowing more about the state of your pool. I recommend running the ZFS debug utility against the pool. It should provide additional information that ...
2
votes
How to delete the pool with state = Faulted?
If the pool is not imported, just go ahead and wipe the data on the actual block devices. This will in essence wipe the pool.
You don't have to wipe the whole device - just the metadata is enough.
...
2
votes
Accepted
Faulted zpool recovery - can I dd some disks to new disks to allow me to scavenge donors?
Definitely don't use dd! ZFS has a built-in command for this, which is described reasonably well in Oracle's docs. You should be able to use zpool replace tank <old device> <new device> to ...
2
votes
Increase rpool size on Solaris 11.3 ESXi Virtual Machine
Remove unneeded files, cache and free up space?
Without having any better details, that's your best course of action; especially if you don't have vSphere access, don't know Solaris and have ...
2
votes
Accepted
zpool stuck in resilvering loop
This is now resolved.
The following issue on github provided the answer:
https://github.com/zfsonlinux/zfs/issues/9551
The red flag in this case is probably the rapidly looping "starting deferred ...
2
votes
zpool status shows drives are defaulted, but they seem okay. Can I add them back?
What's in the kernel ring buffer? Can you post relevant snippets of dmesg -T?
Try a zpool clear to try to clear the transient errors.
Are these all SAS disks? Or do you have SATA mixed into this ...
2
votes
Accepted
Recover from "FAULTED" zfs pool. "-F" option seems to be ignored
If that USB device is lying about commits, all bets are off because the writes could be re-ordered, and between write re-ordering and lying about barriers, all bets are off on whether the metadata is ...
2
votes
Accepted
Why is the available space not increased when i increase the quota of the ZFS share?
After the reply of @Michael Hampton i noticed that also a refquota was set for the share (data set). After i changed the refquota with zfs set refquota=150G Volume1/releases the problem was solved.
...
2
votes
Accepted
Creative solution for a crippled zpool (aka help a dying raid to survive for 1-2 weeks)
No, ZFS currently does not support concatenated devices to be used as a mirror leg. You must first use md or lvm to concatenate the two devices, the issue zpool replace to replace one of the removed ...
2
votes
ZFS / Zpool with limited disk usage?
The df command is an ancient tool, and doesn't doesn't really understand ZFS, the output from df for a ZFS filessytem is close to worthless. ZFS has more complicated allocation then what the df ...
2
votes
Accepted
2
votes
Accepted
zpool mismatched replication level
Short answer: while slightly sub-optimal, your pool layout is not lacking in a major way - it is a legitimate configuration.
Long answer: RAIDZ vdev are atypical in how they store data compared to a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
zpool × 112zfs × 102
zfsonlinux × 17
truenas × 16
solaris × 15
freebsd × 13
ubuntu × 12
linux × 10
raidz × 8
raid × 7
hard-drive × 7
solaris-10 × 7
storage × 6
debian × 3
backup × 3
ubuntu-18.04 × 3
data-recovery × 3
mirror × 3
nexenta × 3
solaris-11 × 3
performance × 2
filesystems × 2
migration × 2
partition × 2
mdadm × 2