Re: [zfs-discuss] dual protocal on one file system?

2011-03-16 Thread Paul Kraus
On Tue, Mar 15, 2011 at 11:00 PM, Edward Ned Harvey
opensolarisisdeadlongliveopensola...@nedharvey.com wrote:

 BTW, what is the advantage of the kernel cifs server as opposed to samba?
 It seems, years ago, somebody must have been standing around and saying
 There is a glaring deficiency in samba, and we need to solve it.

Complete integration with AD/NTFS from the client perspective. In
other words, the Sun CIFS server really does look like a genuine NTFS
volume shared via CIFS in terms of ACLs. Snapshots even show up as
previous versions in explorer.

I have never seen SAMBA provide more than just authentication
integration with AD.

The in kernel CIFS server is also supposed to be much faster,
although I have not tested that yet.

-- 
{1-2-3-4-5-6-7-}
Paul Kraus
- Senior Systems Architect, Garnet River ( http://www.garnetriver.com/ )
- Sound Coordinator, Schenectady Light Opera Company (
http://www.sloctheater.org/ )
- Technical Advisor, RPI Players
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] dual protocal on one file system?

2011-03-16 Thread Ross Walker
On Mar 16, 2011, at 8:13 AM, Paul Kraus p...@kraus-haus.org wrote:

 On Tue, Mar 15, 2011 at 11:00 PM, Edward Ned Harvey
 opensolarisisdeadlongliveopensola...@nedharvey.com wrote:
 
 BTW, what is the advantage of the kernel cifs server as opposed to samba?
 It seems, years ago, somebody must have been standing around and saying
 There is a glaring deficiency in samba, and we need to solve it.
 
Complete integration with AD/NTFS from the client perspective. In
 other words, the Sun CIFS server really does look like a genuine NTFS
 volume shared via CIFS in terms of ACLs. Snapshots even show up as
 previous versions in explorer.
 
I have never seen SAMBA provide more than just authentication
 integration with AD.
 
The in kernel CIFS server is also supposed to be much faster,
 although I have not tested that yet.

Samba has all those features as well. It has native support for different 
platform ACLs (Linux/Solaris/BSD) and supports mapping POSIX perms with 
platform ACLs to present a quasi NT ACL that reflects the native permissions of 
the host.

Samba even has modules for mapping NT RIDs to Nix UIDs/GIDs as well as a module 
that supports Previous Versions using the hosts native snapshot method.

The one glaring deficiency Samba has though, in Sun's eyes not mine, is that it 
runs in user space, though I believe that's just the cover song for It wasn't 
invented here.

-Ross

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS

2011-03-16 Thread Fred Liu
Always show info like 'operation not supported'.
Any workaround?

Thanks.

Fred
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS's ACL

2011-03-16 Thread Fred Liu
It is from ZFS ACL.

Thanks.

Fred

From: Fred Liu
Sent: Wednesday, March 16, 2011 9:57 PM
To: ZFS Discussions
Subject: GNU 'cp -p' can't work well with ZFS-based-NFS

Always show info like 'operation not supported'.
Any workaround?

Thanks.

Fred
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS's ACL

2011-03-16 Thread Jason
Use the Solaris cp (/usr/bin/cp) instead

On Wed, Mar 16, 2011 at 8:59 AM, Fred Liu fred_...@issi.com wrote:
 It is from ZFS ACL.



 Thanks.



 Fred



 From: Fred Liu
 Sent: Wednesday, March 16, 2011 9:57 PM
 To: ZFS Discussions
 Subject: GNU 'cp -p' can't work well with ZFS-based-NFS



 Always show info like ‘operation not supported’.

 Any workaround?



 Thanks.



 Fred

 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS's ACL

2011-03-16 Thread Fred Liu
Yeah. But we are on Linux NFS client. ;-(

Is it doable to build SUN cp in Linux? Where can I find the source code?

Thanks.

Fred

-Original Message-
From: jason.brian.k...@gmail.com [mailto:jason.brian.k...@gmail.com] On Behalf 
Of Jason
Sent: Wednesday, March 16, 2011 10:06 PM
To: Fred Liu
Cc: ZFS Discussions
Subject: Re: [zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS's ACL

Use the Solaris cp (/usr/bin/cp) instead

On Wed, Mar 16, 2011 at 8:59 AM, Fred Liu fred_...@issi.com wrote:
 It is from ZFS ACL.



 Thanks.



 Fred



 From: Fred Liu
 Sent: Wednesday, March 16, 2011 9:57 PM
 To: ZFS Discussions
 Subject: GNU 'cp -p' can't work well with ZFS-based-NFS



 Always show info like 'operation not supported'.

 Any workaround?



 Thanks.



 Fred

 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss



___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS's ACL

2011-03-16 Thread David Magda
On Wed, March 16, 2011 10:08, Fred Liu wrote:
 Yeah. But we are on Linux NFS client. ;-(

 Is it doable to build SUN cp in Linux? Where can I find the source code?

Are you using NFSv4? Also, what version of GNU coreutils are you using
('cp' is usually part of the coreutils package)? What distribution and
version?



P.S. Please try to not top post.

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS's ACL

2011-03-16 Thread Fred Liu
Sorry. I put post in cc.
I use NFSv3(linux 2.4 kernel) coreutils-8.9.

Thanks.

Fred

-Original Message-
From: David Magda [mailto:dma...@ee.ryerson.ca] 
Sent: Wednesday, March 16, 2011 10:29 PM
To: Fred Liu
Cc: ZFS Discussions
Subject: Re: [zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS's ACL

On Wed, March 16, 2011 10:08, Fred Liu wrote:
 Yeah. But we are on Linux NFS client. ;-(

 Is it doable to build SUN cp in Linux? Where can I find the source code?

Are you using NFSv4? Also, what version of GNU coreutils are you using
('cp' is usually part of the coreutils package)? What distribution and
version?



P.S. Please try to not top post.


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS's ACL

2011-03-16 Thread Joerg Schilling
Fred Liu fred_...@issi.com wrote:

 Sorry. I put post in cc.
 I use NFSv3(linux 2.4 kernel) coreutils-8.9.

On Linux, NFSv3 does not support ACLs at all.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS

2011-03-16 Thread Roy Sigurd Karlsbakk
/usr/bin/cp will work - the path on OpenIndiana has gnu in first, which is a 
bad thing imho 

- Original Message -





Always show info like ‘operation not supported’. 

Any workaround? 



Thanks. 



Fred 
___ 
zfs-discuss mailing list 
zfs-discuss@opensolaris.org 
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss 



-- 
Vennlige hilsener / Best regards 

roy 
-- 
Roy Sigurd Karlsbakk 
(+47) 97542685 
r...@karlsbakk.net 
http://blogg.karlsbakk.net/ 
-- 
I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er 
et elementært imperativ for alle pedagoger å unngå eksessiv anvendelse av 
idiomer med fremmed opprinnelse. I de fleste tilfeller eksisterer adekvate og 
relevante synonymer på norsk. 
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] detach configured log devices?

2011-03-16 Thread Jim Mauro
With ZFS, Solaris 10 Update 9, is it possible to
detach configured log devices from a zpool?

I have a zpool with 3 F20 mirrors for the ZIL. They're
coming up corrupted. I want to detach them, remake
the devices and reattach them to the zpool.

Thanks
/jim

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] detach configured log devices?

2011-03-16 Thread Ray Van Dolson
On Wed, Mar 16, 2011 at 09:33:58AM -0700, Jim Mauro wrote:
 With ZFS, Solaris 10 Update 9, is it possible to
 detach configured log devices from a zpool?
 
 I have a zpool with 3 F20 mirrors for the ZIL. They're
 coming up corrupted. I want to detach them, remake
 the devices and reattach them to the zpool.

Yup, as long as your zpool has been updated to the correct version.

Ray
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] detach configured log devices?

2011-03-16 Thread Bryan Horstmann-Allen
+--
| On 2011-03-16 12:33:58, Jim Mauro wrote:
| 
| With ZFS, Solaris 10 Update 9, is it possible to
| detach configured log devices from a zpool?
| 
| I have a zpool with 3 F20 mirrors for the ZIL. They're
| coming up corrupted. I want to detach them, remake
| the devices and reattach them to the zpool.

Yes, you can, using zpool remove.

If they're faulted and you can't import the pool, use import -m.

Cheers.
-- 
bdha
cyberpunk is dead. long live cyberpunk.
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] detach configured log devices?

2011-03-16 Thread Cindy Swearingen

Hi Jim,

Yes, the Solaris 10 9/10 release supports log device removal.

http://download.oracle.com/docs/cd/E19253-01/819-5461/gazgw/index.html

See Example 4-3 in this section.

The ability to import a pool with a missing log device is not yet
available in the Solaris 10 release.

Thanks,

Cindy

On 03/16/11 10:33, Jim Mauro wrote:

With ZFS, Solaris 10 Update 9, is it possible to
detach configured log devices from a zpool?

I have a zpool with 3 F20 mirrors for the ZIL. They're
coming up corrupted. I want to detach them, remake
the devices and reattach them to the zpool.

Thanks
/jim

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] GNU 'cp -p' can't work well with ZFS-based-NFS

2011-03-16 Thread Cameron Hanover
I thought this explained it well.
http://www.cuddletech.com/blog/pivot/entry.php?id=939
'NFSv3, ACL's and ZFS' is the relevant part.

I've told my customers that run into this to use the noacl mount option.

-
Cameron Hanover
chano...@umich.edu

Fill with mingled cream and amber, 
I will drain that glass again. 
Such hilarious visions clamber 
Through the chamber of my brain — 
Quaintest thoughts — queerest fancies 
Come to life and fade away; 
What care I how time advances? 
I am drinking ale today.
—-Edgar Allan Poe

On Mar 16, 2011, at 9:56 AM, Fred Liu wrote:

 Always show info like ‘operation not supported’.
 
 Any workaround?
 
  
 
 Thanks.
 
  
 
 Fred
 
 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Invisible snapshot/clone

2011-03-16 Thread Peter Jeremy
I am in the process of upgrading from FreeBSD-8.1 with ZFSv14 to
FreeBSD-8.2 with ZFSv15 and, following a crash, have run into a
problem with ZFS claiming a snapshot or clone exists that I can't
find.

I was transferring a set of snapshots from my primary desktop to a
backup host (both ZFSv14) using:
  zfs send -I zroot/home@20110210bu -R zroot/home@20110317bu | \
ssh backup_host zfs recv -vd zroot
and whilst that was in progress, I did a 'df -k' on backup_host.
At this point, both the df and the zfs recv wedged unkillably.

zfs list showed that the last snapshot on the destination system
was zroot/home@20110309, so I did a rollback to it (which reported
no error) and ran:
  zfs send -I zroot/home@20110309 -R zroot/home@20110317bu | \
ssh backup_host zfs recv -vd zroot
which reported:
receiving incremental stream of zroot/home@20110310 into zroot/home@20110310
cannot restore to zroot/home@20110310: destination already exists
warning: cannot send 'zroot/home@20110310': Broken pipe

I cannot find anything by that name (or any snapshots later than
zroot/home@20110309 or any clones) and cannot destroy
zroot/home@20110309:

# zfs rollback zroot/home@20110309
# zfs destroy zroot/home@20110309
cannot destroy 'zroot/home@20110309': dataset already exists
# zfs destroy -r zroot/home@20110309
cannot destroy 'zroot/home@20110309': snapshot is cloned
no snapshots destroyed
# zfs destroy -R zroot/home@20110309
cannot destroy 'zroot/home@20110309': snapshot is cloned
no snapshots destroyed
# zfs destroy -frR zroot/home@20110309
cannot destroy 'zroot/home@20110309': snapshot is cloned
no snapshots destroyed
# zfs list -t all |grep home@20110310
# zfs get all | grep origin
# zfs get all | grep home@20110310
# 

I have tried rebooting, upgrading the pool from v14 to v15 and
export/import without success.  Does anyone have any other suggestions?

zpool history -i looks like:

2011-03-17.08:02:57 zfs rollback zroot/home@20110210bu
2011-03-17.08:02:59 zfs recv -vd zroot
2011-03-17.08:02:59 [internal replay_inc_sync txg:872817696] dataset = 973
2011-03-17.08:02:59 [internal reservation set txg:872817697] 0 dataset = 469
...
2011-03-17.08:09:41 [internal snapshot txg:872817974] dataset = 1203
2011-03-17.08:09:42 [internal replay_inc_sync txg:872817975] dataset = 1208
2011-03-17.08:09:42 [internal reservation set txg:872817976] 0 dataset = 469
2011-03-17.08:09:42 [internal property set txg:872817977] compression=10 
dataset = 469
2011-03-17.08:09:42 [internal property set txg:872817977] mountpoint=/home 
dataset = 469
2011-03-17.08:09:50 [internal destroy_begin_sync txg:872817980] dataset = 1208
2011-03-17.08:09:51 [internal destroy txg:872817983] dataset = 1208
2011-03-17.08:09:51 [internal reservation set txg:872817983] 0 dataset = 0
2011-03-17.08:09:51 [internal snapshot txg:872817984] dataset = 1212
2011-03-17.08:09:52 [internal replay_inc_sync txg:872817985] dataset = 1217
2011-03-17.08:09:52 [internal reservation set txg:872817986] 0 dataset = 469
2011-03-17.08:09:52 [internal property set txg:872817987] compression=10 
dataset = 469
2011-03-17.08:09:52 [internal property set txg:872817987] mountpoint=/home 
dataset = 469
system wedged here
2011-03-17.08:35:01 [internal rollback txg:872818038] dataset = 469
2011-03-17.08:35:01 zfs rollback zroot/home@20110309
2011-03-17.08:35:14 zfs recv -vd zroot
2011-03-17.08:36:37 [internal pool scrub txg:872818059] func=1 mintxg=0 
maxtxg=872818059
2011-03-17.08:36:41 zpool scrub zroot
2011-03-17.09:17:27 [internal pool scrub done txg:872818513] complete=1
2011-03-17.09:19:44 [internal rollback txg:872818542] dataset = 469
2011-03-17.09:19:45 zfs rollback zroot/home@20110309
2011-03-17.10:51:38 [internal rollback txg:872819603] dataset = 469
2011-03-17.10:51:39 zfs rollback zroot/home@20110309
2011-03-17.10:54:11 zpool upgrade zroot
2011-03-17.10:59:12 [internal rollback txg:872819688] dataset = 469
2011-03-17.10:59:12 zfs rollback zroot/home@20110309
2011-03-17.11:16:38 [internal rollback txg:872819895] dataset = 469
2011-03-17.11:16:39 zfs rollback zroot/home@20110309
2011-03-17.11:16:54 zpool export zroot
2011-03-17.11:17:31 zpool import zroot
2011-03-17.11:30:13 [internal rollback txg:872819992] dataset = 469
2011-03-17.11:30:13 zfs rollback zroot/home@20110309
2011-03-17.12:01:02 zfs recv -vd zroot
2011-03-17.12:03:57 [internal rollback txg:872820399] dataset = 469
2011-03-17.12:03:57 zfs rollback zroot/home@20110309

-- 
Peter Jeremy


pgpQBYUCWUiu1.pgp
Description: PGP signature
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Invisible snapshot/clone

2011-03-16 Thread Edward Ned Harvey
 From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss-
 boun...@opensolaris.org] On Behalf Of Peter Jeremy
 
 I am in the process of upgrading from FreeBSD-8.1 with ZFSv14 to
 FreeBSD-8.2 with ZFSv15 and, following a crash, have run into a
 problem with ZFS claiming a snapshot or clone exists that I can't
 find.

This was a bug that was fixed somewhere between zpool v15 and v22.  If there
is an incremental send in progress, and the system crashes for some reason,
then you have this invisible clone laying around somewhere...  It prevents
any further incrementals from succeeding... It hogs disk space ... It's
difficult to find and destroy unless you know what you're looking for.

To find it, run zdb -d, and search for something with a %
Something like:  zdb -d tank | grep %

And then you can zfs destroy the thing.  P.S.  Every time I did this, the
zfs destroy would complete with some sort of error message, but then if you
searched for the thing again, you would see that it actually completed
successfully.

P.S.  If your primary goal is to use ZFS, you would probably be better
switching to nexenta or openindiana or solaris 11 express, because they all
support ZFS much better than freebsd.  If instead, your primary goal is to
do something free-bsd-ish, and it's just coincidence that an old version of
ZFS happens to be the best filesystem available in freebsd, so be it.
Freebsd is good in its own ways...  Even an old version of ZFS is better
than EXT3 or UFS.   ;-)
 

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] detach configured log devices

2011-03-16 Thread webdawg
Jim,

You should state your zfs version.

Web...

Date: Wed, 16 Mar 2011 12:33:58 -0400
From: Jim Mauro james.ma...@oracle.com
To: zfs-discuss@opensolaris.org
Subject: [zfs-discuss] detach configured log devices?
Message-ID: 2120fb95-809c-4f13-928b-898a7b937...@oracle.com
Content-Type: text/plain; charset=us-ascii

With ZFS, Solaris 10 Update 9, is it possible to
detach configured log devices from a zpool?

I have a zpool with 3 F20 mirrors for the ZIL. They're
coming up corrupted. I want to detach them, remake
the devices and reattach them to the zpool.

Thanks
/jim

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss