Re: [zfs-discuss] remove snapshots
Hey, "zfs destroy snapshotname" is the way I use to remove snapshots. Kind regards, Steve On 8/17/07, Luke Vanderfluit <[EMAIL PROTECTED]> wrote: > > Hi. > > Thanks greatly for your reply. > Since I am trying _not_ to inadvertently destroy anything but the > snapshots... could you tell me your syntax? > > Kind regards. > Luke. > > [EMAIL PROTECTED] wrote: > > On Fri, 17 Aug 2007, Luke Vanderfluit wrote: > > > >> > >> Do I use the zfs destroy command? > >> > >> > > I use zfs destroy and it works > > > -- > Luke Vanderfluit > Analyst / Web Programmer > e3Learning.com.au > 08 8221 6422 > ___ > 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] Re: Making 'zfs destroy' safer
Actually, if your zfs filesystem has snapshots zfs will complain that the fs can't be destroyed (or that you have to use the -f switch to force it). So the first thing I do when making a new filesystem is create a snapshot to protect me from destroying a filesystem :) On 5/21/07, Peter Schuller <[EMAIL PROTECTED]> wrote: > 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. I never actually *had* a problem, I am just nervous about it. And yes, @ is not special for classical shells, but it's still more special than alphanumerics or '/', and probably more likely to *be* special in some languages/alternate shells. Then there is the seemingly trivial issue of the physical keyboard layout. The most common layout will tend to make you use the right shift key in order to type the @, in a particular sequence such that a slight slip of the finger there and *kaboom*, you have lost your (and/or everybody else's) data by accidentally hitting enter instead of shift. One can of course protect against this by writing commands backwards and such, which is what I do for cases like this along with SQL DELETE statements, but to me it just feels unnecessarily dangerous. > One thing that might help here, when not running as root or as a user > with "ZFS File System Management" RBAC profile, is user delegation. This > will allow you to run the script as user that can only do certain > operations to filesystems that they own or have been delegated specific > access to operate on. On the other than a very minor modification to the command line tool gets you a pretty significant payoff without complicating things. It will affect the safety of the out-of-the-box tool, regardless of the local policy for privilege delegation. -- / Peter Schuller PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>' Key retrieval: Send an E-Mail to [EMAIL PROTECTED] E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org ___ 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] Re: New zfs pr0n server :)))
About sata controllers, anyone tried http://www.promise.com/product/product_detail_eng.asp?segment=Non-RAID%20HBAs&product_id=139#? It sells here for like 90euro so would be a cheap way for me to add some extra harddrives for a personal zfs server. On 5/20/07, Diego Righi <[EMAIL PROTECTED]> wrote: The onboard one is the controller that's in the nVidia 430 south bridge: pci bus 0x cardnum 0x0e function 0x00: vendor 0x10de device 0x0266 nVidia Corporation MCP51 Serial ATA Controller pci bus 0x cardnum 0x0f function 0x00: vendor 0x10de device 0x0267 nVidia Corporation MCP51 Serial ATA Controller The other one is a no-brand 4 port sil3114 pci sata 1.0 controller that I bought at a local computer fair last september: pci bus 0x0001 cardnum 0x07 function 0x00: vendor 0x1095 device 0x3114 Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller Notice that I had to flash it to make it work like a regular "plain" ide controller, otherwise it always kept the disks for himself "presenting" to me only the logical raid created drive... This message posted from opensolaris.org ___ 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] Clear corrupted data
Hey, Using the steps on http://www.opensolaris.org/jive/thread.jspa?messageID=39450&tstart=0confirms that it's the iso file. Removing the file does work, I'll just download the file again and let a scrub clean up the error message. Steve On 5/15/07, eric kustarz <[EMAIL PROTECTED]> wrote: On May 15, 2007, at 9:37 AM, XIU wrote: > Hey, > > I'm currently running on Nexenta alpha 6 and I have some corrupted > data in a pool. > > The output from sudo zpool status -v data is: > > pool: data > state: ONLINE > status: One or more devices has experienced an error resulting in data > corruption. Applications may be affected. > action: Restore the file in question if possible. Otherwise > restore the > entire pool from backup. >see: http://www.sun.com/msg/ZFS-8000-8A > scrub: none requested > config: > > NAMESTATE READ WRITE CKSUM > dataONLINE 0 010 > c2d0 ONLINE 0 0 0 > c1d0 ONLINE 0 0 0 > c3d0 ONLINE 0 0 0 > c4d0 ONLINE 0 0 0 > c0d1 ONLINE 0 010 > > errors: The following persistent errors have been detected: > > DATASET OBJECT RANGE > 1c8 10a5lvl=0 blkid=1919 > > When accessing the file I'll get an I/O error, is it possible to > clear the error and overwrite the corrupted data with all zeroes? I > don't know how much data that is corrupted but it's from the Ubuntu > 7.04 iso which is downloaded with a torrent and my client hangs at > 34% in checking it. If I could just clear the corrupted data the > client would pick it up and just redownload that part. > > Kind regards, > Steve hey steve, So you already figured out which file was corrupted by translating the object number to an actual filepath? and its the Ubuntu 7.04 iso file? Can you just remove the file or does that error out? If you can upgrade your bits, then 'zpool status -v' will be more informative: http://blogs.sun.com/erickustarz/entry/damaged_files_and_zpool_status From your output, just one block is corrupted (blkid 1919). eric ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] Clear corrupted data
Hey, I'm currently running on Nexenta alpha 6 and I have some corrupted data in a pool. The output from sudo zpool status -v data is: pool: data state: ONLINE status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: http://www.sun.com/msg/ZFS-8000-8A scrub: none requested config: NAMESTATE READ WRITE CKSUM dataONLINE 0 010 c2d0 ONLINE 0 0 0 c1d0 ONLINE 0 0 0 c3d0 ONLINE 0 0 0 c4d0 ONLINE 0 0 0 c0d1 ONLINE 0 010 errors: The following persistent errors have been detected: DATASET OBJECT RANGE 1c8 10a5lvl=0 blkid=1919 When accessing the file I'll get an I/O error, is it possible to clear the error and overwrite the corrupted data with all zeroes? I don't know how much data that is corrupted but it's from the Ubuntu 7.04 iso which is downloaded with a torrent and my client hangs at 34% in checking it. If I could just clear the corrupted data the client would pick it up and just redownload that part. Kind regards, Steve ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss