[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: zfs not detecting drive failure



Hello there,

On Mon, Sep 02, 2013 at 07:21:10PM +0500, Muhammad Yousuf Khan wrote:
> but there is a problem when i restart the machine folder on the root (name
> as pool name) of file system can b found however zfs partition is not
> mounted.
> i have to run "zfs mount -a" to remount the partition. what can be done to
> mount the zfs partition on boot.
> i know running this command /etc/rc.local would probably work but do you
> guys think is it a work around or proper way to mount the zfs on boot.

Take a look at /etc/default/zfs and, for clarification, at
/etc/init.d/zfs-*. However, this way zfs datasets will be mounted rather
late during boot. That is fine for mere data storage, but won't suffice
for storing e.g. /var. For that you could enter something along
"$local_fs +zvol +zfs" to a new file /etc/insserv.conf.d/zfs.conf,
followed by an "insserv" call.

Hmm, you mentioned you were testing on Ubuntu. Methinks there was a
zfs-mountall package available that might ease the task, but I'm not
sure about its availability ...

> one more issue that i have found. i had smaller files 2 GB each. which i
> replace by 4GB files so that i could test if i need to increase the size of
> storage at some time later. eventually all the files has been replace with
> new one successfully however when i pass the command "df -h" it showed me
> the old partition size.
> how can i re claim the remaining empty partition.

"zpool online -e pool device...", and furthermore you can set the
autoexpand property. See "man zpool" for details.

BTW, I found the "ZFS on Linux User Guide" as linked from
http://zfsonlinux.org/docs.html quite helpful, you might want to check
it out. I'm running ZFS in production use on Squeeze and Wheezy, and it
greatly helped me to get some things sorted.

HTH,
Flo


Reply to: