Re: [zfs-discuss] zpool scrub on b123

2011-04-18 Thread Edward Ned Harvey
> From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- > boun...@opensolaris.org] On Behalf Of Karl Rossing > > So i figured out after a couple of scrubs and fmadm faulty that drive > c9t15d0 was bad. > > My pool now looks like this: > NAME STATE READ WRITE CKSUM

Re: [zfs-discuss] zpool scrub on b123

2011-04-18 Thread Roy Sigurd Karlsbakk
> I'm going to replace c9t15d0 with a new drive. > > I find it odd that zfs needed to resilver the drive after the reboot. > Shouldn't the resilvered information be kept across reboots? the iostat data, as returned from iostat -en, are not kept over a reboot. I don't know if it's possible to kee

Re: [zfs-discuss] zpool scrub on b123

2011-04-18 Thread Karl Rossing
So i figured out after a couple of scrubs and fmadm faulty that drive c9t15d0 was bad. I then replaced the drive using -bash-3.2$ pfexec /usr/sbin/zpool offline vdipool c9t15d0 -bash-3.2$ pfexec /usr/sbin/zpool replace vdipool c9t15d0 c9t19d0 The drive resilvered and I rebooted the server, j

Re: [zfs-discuss] Bootable root pool?

2011-04-18 Thread Cindy Swearingen
Hi Darren, Yes, a bootable root pool must be created on a disk slice. You can use a cache device, but not a log device, and the cache device must be a disk slice. See the output below. Thanks, Cindy # zpool add rpool log c0t2d0s0 cannot add to 'rpool': root pool can not have multiple vdevs o

[zfs-discuss] Bootable root pool?

2011-04-18 Thread Darren Kenny
Hi, As I understand it there were restrictions on a bootable root pool where it cannot be defined to use whole-disk configurations for a single disk, or multiple disks which are mirrored. Does it still apply that you need to define such pools as using slices, ie. by either defining a partition (i

Re: [zfs-discuss] SEEK_HOLE returns the whole sparse file size?

2011-04-18 Thread Jeff liu
在 2011-4-18,下午6:03, Joerg Schilling 写道: > "jeff.liu" wrote: > >> Hello List, >> >> I am trying to fetch the data/hole info of a sparse file through the >> lseek(SEEK_HOLE/SEEK_DATA) >> stuff, the result of fpathconf(..., _PC_MIN_HOLE_SIZE) is ok, so I think >> this interface is supported >>

Re: [zfs-discuss] [storage-discuss] zfs over iscsi not recovering from timeouts

2011-04-18 Thread Bing Zhao
Hi Tuomas: Before you run "zpool clear", please make sure that the os device name exists in the output of 'iscsiadm list target -S'. #iscsiadm list target -S Target: iqn.1986-03.com.sun:02:test Alias: - TPGT: 1 ISID: 402a Connections: 1 LUN: 0 Vendor: SUN

Re: [zfs-discuss] SEEK_HOLE returns the whole sparse file size?

2011-04-18 Thread Joerg Schilling
"jeff.liu" wrote: > Hello List, > > I am trying to fetch the data/hole info of a sparse file through the > lseek(SEEK_HOLE/SEEK_DATA) > stuff, the result of fpathconf(..., _PC_MIN_HOLE_SIZE) is ok, so I think this > interface is supported > on my testing ZFS, but SEEK_HOLE always return the spa

Re: [zfs-discuss] SEEK_HOLE returns the whole sparse file size?

2011-04-18 Thread jeff.liu
Victor Latushkin wrote: > On Apr 18, 2011, at 11:22 AM, jeff.liu wrote: > >> Hello List, >> >> I am trying to fetch the data/hole info of a sparse file through the >> lseek(SEEK_HOLE/SEEK_DATA) >> stuff, the result of fpathconf(..., _PC_MIN_HOLE_SIZE) is ok, so I think >> this interface is suppo

Re: [zfs-discuss] SEEK_HOLE returns the whole sparse file size?

2011-04-18 Thread Victor Latushkin
On Apr 18, 2011, at 11:22 AM, jeff.liu wrote: > Hello List, > > I am trying to fetch the data/hole info of a sparse file through the > lseek(SEEK_HOLE/SEEK_DATA) > stuff, the result of fpathconf(..., _PC_MIN_HOLE_SIZE) is ok, so I think this > interface is supported > on my testing ZFS, but SE

[zfs-discuss] SEEK_HOLE returns the whole sparse file size?

2011-04-18 Thread jeff.liu
Hello List, I am trying to fetch the data/hole info of a sparse file through the lseek(SEEK_HOLE/SEEK_DATA) stuff, the result of fpathconf(..., _PC_MIN_HOLE_SIZE) is ok, so I think this interface is supported on my testing ZFS, but SEEK_HOLE always return the sparse file total size instead of t