Re: [zfs-discuss] accidentally added a drive?

2010-12-06 Thread Chris Gerhard
Alas you are hosed. There is at the moment no way to shrink a pool which is what you now need to be able to do. back up and restore I am afraid. -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org

Re: [zfs-discuss] inodes in snapshots

2010-05-28 Thread Chris Gerhard
Just to close this. It turns out you can't get the crtime over NFS so without access to the NFS server there is only limited checking that can be done. I filed CR 6956379 Unable to open extended attributes or get the crtime of files in snapshots over NFS. --chris -- This message posted

[zfs-discuss] inodes in snapshots

2010-05-19 Thread Chris Gerhard
If I create a file in a file system and then snapshot the file system. Then delete the file. Is it guaranteed that while the snapshot exists no new file will be created with the same inode number as the deleted file? --chris -- This message posted from opensolaris.org

Re: [zfs-discuss] inodes in snapshots

2010-05-19 Thread Chris Gerhard
The reason for wanting to know is to try and find versions of a file. If a file is renamed then the only way to know that the renamed file was the same as a file in a snapshot would be if the inode numbers matched. However for that to be reliable it would require the i-nodes are not reused.

Re: [zfs-discuss] Disk/Partition replacement - do partition begin/end/offsets matter?

2010-04-25 Thread Chris Gerhard
One of my pools (backup pool) has a disk which I suspect may be going south. I have a replacement disk of the same size. The original pool was using one of the partitions towards the end of the disk. I want to move the partition to the beginning of the disk on the new disk. Does ZFS

Re: [zfs-discuss] Thoughts on ZFS Pool Backup Strategies

2010-03-20 Thread Chris Gerhard
I'll say it again: neither 'zfs send' or (s)tar is an enterprise (or even home) backup system on their own one or both can be components of the full solution. Up to a point. zfs send | zfs receive does make a very good back up scheme for the home user with a moderate amount of

Re: [zfs-discuss] ZFS Import failed: Request rejected: too large for CDB

2009-11-25 Thread Chris Gerhard
Your pool is on a device that requires a 16 byte CDB to address the entire LUN. That is the LUN is more than 2Tb in size. However the host bus adapter driver that is being used does not support 16byte CDBs. Quite how you got into this situation, ie how you could create the volume I don't

Re: [zfs-discuss] zfs vbox and shared folders

2009-09-28 Thread Chris Gerhard
Not that I have seen. I use them, they work. --chris -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Re: [zfs-discuss] Which directories must be part of rpool?

2009-09-28 Thread Chris Gerhard
TMPFS was not in the first release of 4.0. It was introduced to boost the performance of diskless clients which no longer had the old network disk for their root file systems and hence /tmp was now over NFS. Whether there was a patch that brought it back into 4.0 I don't recall but I don't

Re: [zfs-discuss] ZFS pool replace single disk with raidz

2009-09-26 Thread Chris Gerhard
Alas you need the fix for: http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4852783 Until that arrives mirror the disk or rebuild the pool. --chris -- This message posted from opensolaris.org ___ zfs-discuss mailing list

Re: [zfs-discuss] This is the scrub that never ends...

2009-09-07 Thread Chris Gerhard
Looks like this bug: http://bugs.opensolaris.org/view_bug.do?bug_id=6655927 Workaround: Don't run zpool status as root. --chris -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org

Re: [zfs-discuss] zfs list improvements?

2009-01-10 Thread Chris Gerhard
My current solution is a -d option that takes a colon set of aruments min:max giving the minimum and maximum depth so zfs list -d 1:1 tank behaves like zfs list -c is described and only lists the direct children of tank. zfs list -d 1: tank Will list all the descendants of tank zfs list

[zfs-discuss] zfs list improvements?

2009-01-06 Thread Chris Gerhard
To improve the performance of scripts that manipulate zfs snapshots and the zfs snapshot service in perticular there needs to be a way to list all the snapshots for a given object and only the snapshots for that object. There are two RFEs filed that cover this:

[zfs-discuss] smf needs a THAW method?

2008-12-10 Thread Chris Gerhard
Should SMF have a THAW method that fires when a system is woken from being hibernated? I think it should. The zfs snapshot service could use this to snapshot on thaw and while it would be possible to leave a daemon around to catch the signal that would potentially leave lots of daemons around

[zfs-discuss] Scrubbing the ZIL

2008-11-21 Thread Chris Gerhard
If you have a separate ZIL device is there any way to scrub the data in it? I appreciate that the data in the ZIL is only there for a short time but since it is never read if you had a misbehaving ZIL device that was just throwing the data away you could potentially run like this for many

Re: [zfs-discuss] Kernel Panic

2008-11-17 Thread Chris Gerhard
Richard Elling wrote: Chris Gerhard wrote: My home server running snv_94 is tipping with the same assertion when someone list a particular file: Failed assertions indicate software bugs. Please file one. http://en.wikipedia.org/wiki/Assertion_(computing) A colleague pointed out

Re: [zfs-discuss] Kernel Panic

2008-11-10 Thread Chris Gerhard
My home server running snv_94 is tipping with the same assertion when someone list a particular file: ::status Loading modules: [ unix genunix specfs dtrace cpu.generic cpu_ms.AuthenticAMD.15 uppc pcplusmp scsi_vhci ufs md ip hook neti sctp arp usba qlc fctl nca lofs zfs audiosup sd cpc random

Re: [zfs-discuss] Disabling auto-snapshot by default.

2008-10-27 Thread Chris Gerhard
Tim Foster wrote: Chris Gerhard wrote: Not quite. I want to make the default for all pools imported or not to not do this and then turn it on where it makes sense and won't do harm. Aah I see. That's the complete opposite of what the desktop folk wanted then - you want to opt-in, instead

Re: [zfs-discuss] Verify files' checksums

2008-10-26 Thread Chris Gerhard
A slight nit. Using cat(1) to read the file to /dev/null will not actually cause the data to be read thanks to the magic that is mmap(). If you use dd(1) to read the file then yes you will either get the data and thus know it's blocks match their checksums or dd will give you an error if

[zfs-discuss] Disabling auto-snapshot by default.

2008-10-24 Thread Chris Gerhard
How can you disable the auto-snapshot service[s] by default without disabling the timeslider as well which appears to be the case if you disable the smf services. Setting the properly in the root pool is ok except for removable media which I don't want to have snapshots taken in the time

Re: [zfs-discuss] Disabling auto-snapshot by default.

2008-10-24 Thread Chris Gerhard
new pools. With auto-snapshot still on are all the snapshots taken as a single transaction as they would be with a recursive snapshot? Alas I've had to downgrade as Nautilus is not usable: http://blogs.sun.com/chrisg/entry/brief_visit_to_build_100 -- Chris Gerhard

Re: [zfs-discuss] Disabling auto-snapshot by default.

2008-10-24 Thread Chris Gerhard
Tim Foster wrote: Hi Chris, Chris Gerhard wrote: How can you disable the auto-snapshot service[s] by default without disabling the timeslider as well which appears to be the case if you disable the smf services. Not sure I follow - time slider depends on the auto-snapshot service

Re: [zfs-discuss] Disabling auto-snapshot by default.

2008-10-24 Thread Chris Gerhard
be respected so to turn it on you just set the property to true in the root of the pool. -- Chris Gerhard. __o __o __o Systems TSC Chief Technologist_`\,`\,`\,_ Sun Microsystems Limited (*)/---/---/ (*) Phone

[zfs-discuss] resilver speed.

2008-09-05 Thread Chris Gerhard
Is there any way to control the resliver speed? Having attached a third disk to a mirror (so I can replace the other disks with larger ones) the resilver goes at a fraction of the speed of the same operation using disk suite. However it still renders the system pretty much unusable for

Re: [zfs-discuss] resilver speed.

2008-09-05 Thread Chris Gerhard
be the case. Fortunately none of the users would know how to run the sync command. -- Chris Gerhard. __o __o __o Systems TSC Chief Technologist_`\,`\,`\,_ Sun Microsystems Limited (*)/---/---/ (*) Phone

[zfs-discuss] zpool import sees two pools

2008-08-28 Thread Chris Gerhard
I have a USB disk with a pool on it called removable. On one laptop zpool import removable works just fine but on another with the same disk attached it tells me there is more than one matching pool: : sigma TS 6 $; pfexec zpool import removable cannot import 'removable': more than one matching

Re: [zfs-discuss] zpool import sees two pools

2008-08-28 Thread Chris Gerhard
Victor Latushkin wrote: On 28.08.08 15:06, Chris Gerhard wrote: I have a USB disk with a pool on it called removable. On one laptop zpool import removable works just fine but on another with the same disk attached it tells me there is more than one matching pool: : sigma TS 6 $; pfexec zpool

Re: [zfs-discuss] How to delete hundreds of emtpy snapshots

2008-07-20 Thread Chris Gerhard
Also http://blogs.sun.com/chrisg/entry/a_faster_zfs_snapshot_massacre which I run every night. Lots of snapshots are not a bad thing it is keeping them for a long time that takes space. I'm still snapping every 10 minutes and it is great. The thing I discovered was that I really wanted to

[zfs-discuss] Re: Re: zfs send/receive incremental

2007-06-08 Thread Chris Gerhard
Starfox wrote: None of the scripts that I looked at seemed to offered any sort of error recovery. I think I'll be able to use this as a starting point (and maybe the man pages can be updated to include that you can use any common snapshot to send -i - that fact is not obvious to those

[zfs-discuss] Re: zfs send/receive incremental

2007-06-03 Thread Chris Gerhard
Oddly I posted a script that does what you want all be ti without sending it to a remote system on friday to my blog (http://blogs.sun.com/chrisg/entry/rolling_incremental_backups) which i use to backup my system to an external USB drive. --chris This message posted from opensolaris.org

[zfs-discuss] Re: how to move a zfs file system between disks

2007-05-31 Thread Chris Gerhard
It is not possible to use send and receive of the pool is not imported. It is however possible to use send and receive when the file system is not mounted. --chris This message posted from opensolaris.org ___ zfs-discuss mailing list

[zfs-discuss] Re: how to move a zfs file system between disks

2007-05-30 Thread Chris Gerhard
You can do this using zfs send and receive. See http://blogs.sun.com/chrisg/entry/recovering_my_laptop_using_zfs for an example. If the file system was remote then you would need to squeeze some ssh commands into the script but the concept is the same. This message posted from

[zfs-discuss] Re: Re: Making 'zfs destroy' safer

2007-05-21 Thread Chris Gerhard
On the other hand personally I just don't see the need for this since the @ char isn't special to the shell so I don't see where the original problem came from. It is the combination of the fear of doing something bad and the the consequence of doing that something bad that make people

[zfs-discuss] Re: Making 'zfs destroy' safer

2007-05-19 Thread Chris Gerhard
You are not alone. My preference would be for an optional -t option to zfs destroy: zfs destroy -t snapshot tank/[EMAIL PROTECTED] or zfs destroy -t snapshot -r tank/fs would delete all the snapshots below tank/fs This message posted from opensolaris.org

[zfs-discuss] Re: Reading a ZFS Snapshot

2007-05-18 Thread Chris Gerhard
I'm not sure what you want that the file system does not already provide. you can use cp to copy files out, or find(1) to find them based on time or any other attribute and then cpio to copy them out. This message posted from opensolaris.org ___

[zfs-discuss] Re: ZFS raid on removable media for backups/temporary use possible?

2007-05-08 Thread Chris Gerhard
I've used ZFS to back up my laptops to an external USB disk that formed one half of the mirror for a long while. See: http://blogs.sun.com/chrisg/entry/external_usb_disk_drive I recently stopped doing that in favour of doing the same to iSCSI luns hosted on ZFS ZVOLs on a server:

[zfs-discuss] Re: 2-way mirror or RAIDZ?

2007-02-27 Thread Chris Gerhard
As has been pointed out you want to mirror (or get more disks). I would suggest you think carefully about the layout of the disks so that you can take advantage of ZFS boot when it arrives. See http://blogs.sun.com/chrisg/entry/new_server_arrived for a suggestion. --chris This message

Re: [zfs-discuss] Re: Re: Re: Snapshots impact on performance

2006-12-13 Thread Chris Gerhard
that the system became usable again. An engineer is looking into reproducing this on a lab system. I hope they will turn up on this thread with a progress report. -- Chris Gerhard. __o __o __o Principal Engineer _`\,`\,`\,_ Sun Microsystems

[zfs-discuss] Re: Re: Re: Snapshots impact on performance

2006-12-06 Thread Chris Gerhard
One of our file servers internally to Sun that reproduces this running nv53 here is the dtrace output: unix`mutex_vector_enter+0x120 zfs`metaslab_group_alloc+0x1a0 zfs`metaslab_alloc_dva+0x10c zfs`metaslab_alloc+0x3c

[zfs-discuss] Re: weird thing with zfs

2006-12-05 Thread Chris Gerhard
What os is this? What is the hardware? can you try running format with efi_debug set. You have to run format using a debugger and patch the variable. Here is how using mdb (set a break point in main so that the dynamic linker has done it's stuff, then update the value of efi_debug to be 1,

[zfs-discuss] Re: zfs sharenfs inheritance

2006-11-03 Thread Chris Gerhard
An alternate way will be to use NFSv4. When an NFSv4 client crosses a mountpoint on the server, it can detect this and mount the filesystem. It can feel like a lite version of the automounter in practice, as you just have to mount the root and discover the filesystems as needed. The

[zfs-discuss] User quotas. A recurring question

2006-11-01 Thread Chris Gerhard
One question that keeps coming up in my discussions about ZFS is the lack of user quotas. Typically this comes from people who have many tens of thousands (30,000 - 100,000) of users where they feel that having a file system per user will not be manageable. I would agree that today that is the

[zfs-discuss] zpool import takes to long with large numbers of file systems

2006-10-26 Thread Chris Gerhard
To have user quota with ZFS you have to have a file system per user. However this leads to a very large number of file systems on a large server. I understand there is work already in hand to make sharing a large number of file systems faster, however even mounting a large number of file

[zfs-discuss] chmod A=.... on ZFS != chmod A=... on UFS

2006-10-24 Thread Chris Gerhard
I'm trying to create a directory hierarchy that when ever a file is created it is created mode 664 with directories 775. Now I can do this with chmod to create the ACL on UFS and it behaves as expected howerver on ZFS it does not. : pearson TS 68 $; mkdir ~/tmp/acl : pearson TS 69 $; df -h

Re: [zfs-discuss] chmod A=.... on ZFS != chmod A=... on UFS

2006-10-24 Thread Chris Gerhard
Mark Shellenbaum wrote: Chris Gerhard wrote: I'm trying to create a directory hierarchy that when ever a file is created it is created mode 664 with directories 775. Now I can do this with chmod to create the ACL on UFS and it behaves as expected howerver on ZFS it does not. So what

[zfs-discuss] http://www.opensolaris.org/os/community/zfs/version/3

2006-06-23 Thread Chris Gerhard
having just upgraded to nv42 zpool status tells me I need to upgrade the ondisk version. zpool version points me at http://www.opensolaris.org/os/community/zfs/version/3 : : sigma TS 6 $; zpool upgrade -v This system is currently running ZFS version 3. The following versions are suppored:

[zfs-discuss] cksum errors after zpool online

2006-05-19 Thread Chris Gerhard
I've been playing with offlining an external USB disk as a way of having a backup of a laptop drive. However when I online the device and scrub it I always get cksum errors. So I just build a v880 in the lab with a mirrored zpool. I offlined 2 disks that form the mirror and then created a new