Zfs destroy DOES NOT CHECK NFS mount file-systems

I asked this question twitter once and the answer was a good one, but I did some checking today and was surprised!!
# zfs destroy mypool/home/andrew
The above command will destroy this file-system no questioned asked but if the file-system is mounted you will get back the Device busy and if you have snapshot then they will be protected as well
server# zfs destroy mypool/home/andrew
cannot unmount 'tank/home/andrew
server# zfs destroy dpool/staff/margaret
cannot destroy 'dpool/staff/margaret': filesystem has children
use '-r' to destroy the following datasets:
dpool/staff/margaret@Wed18
dpool/staff/margaret@Wed22
BUT?
server# zfs destroy dpool/staff/margaret@Wed18
server# zfs destroy dpool/staff/margaret@Wed22
NFSclient# cd /home/margaret
NFSlient# ls -l
drwx------+ 2 margaret staff 2 Aug 29 17:06 Mail
lrwxrwxrwx 1 margaret staff 4 Aug 29 17:06 mail -> Mail
drwx--x--x+ 2 margaret staff 2 Aug 29 17:06 public_www
server# zfs destroy dpool/staff/margaret
server#
GONE!!!
I will file a bug report to see what Oracle say!
Comments?
I think there should be a hold/protect of file-systems
# zfs hold dpool/staff/margaret
Andrew

The CR is already filed:
6947584 zfs destroy should be recoverable or prevented
The zfs.1m man page, which covers the mounted case and the ZFS admin guide are pretty clear
about the current zfs destroy behavior.
http://docs.oracle.com/cd/E23824_01/html/821-1448/gamnq.html#gammq
Caution - No confirmation prompt appears with the destroy subcommand. Use it with extreme caution.
zfs destroy [-rRf] filesystem|volume
Destroys the given dataset. By default, the command
unshares any file systems that are currently shared,
unmounts any file systems that are currently mounted,
and refuses to destroy a dataset that has active depen-
dents (children or clones).
I'm sorry that you were surprised.
Accidents happen too, like destroying the wrong file system, so always have good backups.
Thanks, Cindy

Similar Messages

  • AVK does not check includes

    Hi, AVK does not check include jsp files <jsp:include
    any clues?

    Hi
    This is a known issue with the AVK which we will be addressing in a future release

  • NetApp plugin for OEM 12c - DB is not on NFS mounted storage. DB Storage Perf Report empty

    Hi, I have installed NetApp Plugin for OEM 12c (12.1.0.3.1) for a Netapp vFiler used for SMO. "Database Storage Utilization" and "Consolidation Database Storage Performance" empty. "Database is not on NFS mounted storage. Hence, no views available." - a. We are using ASM lun created on NFS. Does this means it will not appear in the plugin report ? - b. If point a. is true, is there a way to make the data appear ? I had already verified the BELOW. Only for point 4, I observed MGMT$DB_DATAFILES."OS_STORAGE_ENTITY" is NA (even though the ASM disk is actually on a NFS mount) : 1. Database discovery is done in EM12c . 2. Go to the database “HOST” target in EM 12c and click on the host target on which database resides. From host target drop down, click on “Host-> StorageDetails”. It will launch the “Storage Details” page. Please refer attached screenshot. There is a table displayed on bottom of screen and click on “File Systems” tab and check that your discovered database storage mount point is shown there. (Please note that whenever you define new mount point on host, this list should reflect the change.), otherwise, Database Performance views will not work. This mount point discovery is updated periodically. (It might be possible that DB views are not working because this discovery might not have finished) 3. Please click on NetApp Storage Target type and go to “Target HomePage drop down ->All Metrics”. Please click on “Volume List” metric and confirm if the volume is listed there on which database resides. 4. If all above steps holds good, please execute the below query on EM 12c repository and send the result: SELECT V2.TARGET_NAME, V1.FILESYSTEM, SUBSTR(V1.FILESYSTEM,INSTR(V1.FILESYSTEM,':')+6, (CASE WHEN (INSTR(V1.FILESYSTEM,'/',1,3) > 0) THEN INSTR(V1.FILESYSTEM,'/',1,3) - INSTR(V1.FILESYSTEM,'/',1,2) - 1 ELSE 100 END)) "VOLUMENAME" FROM MGMT$STORAGE_REPORT_NFS V1, MGMT$DB_DATAFILES V2 WHERE V1.MOUNTPOINT = V2.OS_STORAGE_ENTITY and V2.TARGET_NAME=''

    Hi Aik, Change in SQLs will not work. There is lot of code for data discovery.We need to have discovery mechanism integrated in our plug-in for ASM LUNS.ASM LUN based database discovery has been planned to support in future release of plug-ins. Can you please share following details about OEM plug-in usage:1. Company Name2. ONTAP OS (cDOT / 7-mode which version)3. Nature of Databases (Only ASM or NFS based)4. Are your currently using this plug-in for NFS databases? If yes, how it helps to simplify your database administration. We will share your feedback to Product Management for support of ASM. Regards,Sachin Maheshwari

  • Why Apple/MAC does not offer server mounting application?

    I am very disappointed to see that MAC /Apple does not offer simple server mounting application.
    It is a  very basic facility provided in Linux. I am forced to use third party stuff like OSXFuse which still is not a permanent solution.
    Hope someone at Apple could fix it.

    I do not understand your question.  Do you want to mount file servers that DO NOT support CIFS/SMB or Apple Filing Protocol (AFP)?
    Or do you want to mount file system formats not supported by Mac OS X (ext[234], btrfs, ZFS, etc...)?
    Can you please clarify your question.
    Finder -> Go -> Connect to server... will allow connecting to file servers via CIFS/SMB or AFP protocols.
    Mac OS X will try to mount any directly attached file system (HFS+, NTFS (readonly), FAT, FAT32, exFAT).
    What are you trying to mount?
    NOTE:  No one in Mac OS X software development visits here.  This is a User-to-User forum.  You can send your feedback to:
    <http://www.apple.com/feedback/macosx.html>
    You will not get a reply, but it will be read by someone inside Apple.  I suggest you provide more details on what you desire, as they will not start a dialog with you as I'm trying to do.

  • Adobe PDF iFilter 9 for 64-bit platforms does not index my PDF files with Digital Sign

    Adobe PDF iFilter 9 for 64-bit platforms does not index my PDF files with Digital Sign, why?

    hi  Phillip
    i am not sure what you mean
    I downloaded the ifilter and installed it
    then configured everything as shown in the pdf file
    I tried indexing from scratch exactly as i did successfully in the other computer
    and got some errors in the log file
    i checked the sql server log and the event viewer logs and got :
    Error '0x80004005' occurred during full-text index population for table or indexed view '[Pirsumim_ext_ck].[dbo].[T_PUBLICATIONS]' (table or indexed view ID '2073058421', database ID '14'), full-text key value 0x0000027A. Attempt will be made to reindex it.    
    The component 'PDFFilter.dll' reported error while indexing. Component path 'C:\Program Files\Adobe\Adobe PDF iFilter 9 for 64-bit platforms\bin\PDFFilter.dll'.   
    Informational: Full-text retry pass of Full population completed for table or indexed view '[Pirsumim_ext_ck].[dbo].[T_PUBLICATIONS]' (table or indexed view ID '2073058421', database ID '14'). Number of retry documents processed: 1. Number of documents failed: 1.
    Changing the status to MERGE for full-text catalog "Pirsumim_ext_catalog_ck" (5) in database "Pirsumim_ext_ck" (14). This is an informational message only. No user action is required.
    Informational: Full-text Auto population initialized for table or indexed view '[Pirsumim_ext_ck].[dbo].[T_PUBLICATIONS]' (table or indexed view ID '2073058421', database ID '14'). Population sub-tasks: 1
    the same dll worked fine in another computer...
    how can i see more details what is wrong with this dll  ?
    meidad

  • Publish to DVD says it completes, does not write the ISO file in version 13.

    When I publish to DVD and select ISO it says it completes but it does not write the ISO file in version 13.

    apsteinmetz
    The DVD disc which is labelled 4.7 GB/120 minutes is in reality 4.38 GB. And the DVD disc which is labelled 8.5 GB/240 minutes is in reality 7.95 GB.
    What version of Premiere Elements and on what computer operating system is it running? Can we assume 13/13.1 on Windows 8.1 64 bit?
    What are you doing, a burn to disc DVD-VIDEO standard or widescreen on DVD disc or burn to disc AVCHD on DVD disc?
    When you get to the burn dialog (and you have your disc in the burner tray), what does the Quality area of the burn dialog show for Space Required and Bitrate with and without a check mark next to "Fit Contents to Available Space"?
    Or, can you do burn to Folder (4.7 GB) and/or burn to ISO Image (4.7 GB)? Are your successful burn to .iso files under 1 GB in file size?
    Please quantitate "...shortening the timeline dramatically".
    Thank you. Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • Finder does not open when a file passes over (mac os X 10.8.3)

    Just installed mac os 10.8.3 mountain lion. As such, it seems with this OS X version the "finder" does not open when a file passes over (in order to move it from desktop).
    The screen dims a little and nothing else happens.
    How can I recover the "finder" functionality that apparently doesn not exist anymore?
    Is it something wrong that I am doing?
    Regards
    José

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    This time you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Have been trying all weekend to upload Jpegs- either Send does not work or shows files uploading then shows error- never had this problem with Send Now-16 images total size 92MB-largest image 13MB

    Have been trying all weekend to upload Jpegs- either Send does not work or shows files uploading then shows error- never had this problem with Send Now-16 images total size 92MB-largest image 13MB

    Hi Ciaran19,
    Are you sending files from the Adobe Send interface, Adobe Reader, or the Outlook plug-in?
    Have you checked to see whether the files that you're sending appear in the Recent Files/Sent Files list when you're logged on to https://cloud.acrobat.com? (It could be that they're uploading, but not being sent.)
    It would also be worthwhile to send the files in smaller batches, to see whether a particular file or files is problematic, and causing the error.
    Please let us know how it goes. If you're still having trouble, please let us know where you're sending from, and whether you're able to send the files in smaller batches. It would also be helpful to know the exact error message that you're receiving.
    Best,
    Sara

  • Save as does not Create PDF Compatible File even when the creare pdf compatible files is on, Illustrator CC 2014

    save as does not Create PDF Compatible File even when the creare pdf compatible files is on, Illustrator CC 2014

    When I open is adobe acrobat I get this message.
    "This is an Adobe® Illustrator® File that was
    saved without PDF Content.
    To Place or open this  le in other
    applications, it should be re-saved from
    Adobe Illustrator with the "Create PDF
    Compatible File" option turned on. This
    option is in the Illustrator Native Format
    Options dialog box, which appears when
    saving an Adobe Illustrator  le using the
    Save As command."

  • When I try to upload a file it goes through the correct proceedure, but does not change the remote file i.e.Index.htm

    Hi
    I have an uploading problem to the server. The problem is when I try to upload a file it goes through the correct proceedure,
    but does not change the remote file i.e.Index.htm, or three stages1.htm.
    My Localroot folder is C:\Gods Plan Web\
    The site map layout is C:\Gods Plan Web\Index.htm
    The folder for the remote site is /public_html/
    Should the local root folder mirror the remote site, i.e./public_html/
    if this is so, what should I put into the
    (a) Local Root Folder box?
    (b) site map layout box?
    The FTP is performing well other than changing the intended file.

    You should be uploading only the contents of your local root to the public_html folder (remote root).
    The index.html you use as your site's home page needs to be in your site root. If you look at your Files window in DW, you should have something like the following...
    Site - Whatever you named your site
         index.html
         images
         pages
              page1.html
              page2.html
    If you have any folder between Site - and the index.html page, like...
    Site - Whatever you named your site
         mywebsite
              index.html
    It will upload to the public_html while still in that folder, so to find your page online, you would need to type something like...
    www.mydomain.com/mywebsite
    public_html should NOT appear within your local files and if it existed there, would cause a redundancy if uploaded. You would need to type www.yourdomain.com/public_html to see the uploaded pages.
    If you could post a screen shot of your expanded Files window while connected to the server (just connect and click the Expand button in Files, don't drill down into any of the directories), we may be able to see the issue.

  • Adobe Lightroom, Photoshop and Bridge does not recognize the raw files from my Canon Mark III 5D Camera.

    Adobe Lightroom, Photoshop and Bridge does not recognize the raw files from my new Canon Mark III 5D Camera.  How can I get my files open to view and edit?  I am using LR3, Photoshop CS3 and Bridge CS3.  Do I need to upgrade these programs or is there another way to get these programs to recognize my files?
    When I try opening the raw images in Lightroom, the thumbnails say "Preview unavailable for this file"  ... when I click "import" an error message pops up that says "The files are from a camera which is not recognized by the raw format support in Lightroom."
    When I try opening the raw images in Photoshop, an error message pops up saying "could not complete your request because photoshop does not recognize this type of file."
    When I try opening the raw images in Bridge, it just shows an icon with the file name and CR2.
    Please help!!!

    Unless I missed an announcement, today, LR6 isn't available, yet, right?  Only Adobe employees and beta testers would know what LR6 does differently at this point and they're all sworn to secrecy.
    LR5 is available as a standalone version.
    PS-CS6 is available as a serial-number-licensed version.
    PS-CC + LR5 are also available as a Photography Plan subscription for $10/month with a minimum OS versions of OSX 10.7 (and probably 10.8, soon) and Windows 7.
    Bridge is part of PS, not a separate program.
    LR5 standalone and LR+PS-CC plan are both available on this page:  http://www.adobe.com/products/catalog/software.html
    PS-CS6 can be found on this page:  Creative Suite 6 which can be found by searching www.adobe.com for Photoshop CS6 and clicking the Buy link in the on-the-fly search results.
    As with any new Adobe software, it might be wise to run it in trial mode for a few days/weeks to see if it works well with your computer, before purchasing and finding out you might need a new computer, first.

  • Selected file cannot be linked because its type (video) does not match the original file's type

    I've been using Premiere Elements 9 for a couple of years now, and a few months ago I began having problems importing AVI files created from a BlackMagic Intensity Pro capture card.  (These issues were not previously occurring, and since they surfaced, I have exhausted the various settings for the BlackMagic card, used various software such as BlackMagic's own Media Express as well as the freeware VirtualDub, and still have the following problems.)
    In addition, these AVI files play just fine, in their entirety, using Windows Media Player and in Quicktime.
    The problem (or possibly two, but I suspect they could be related) is that most of the AVI files I attempt to import will either (1) import all video and NO audio, or (2) import ONLY a short segment of audio and video, and the length that Elements imports varies.  Usually only in the range of a minute or two.  The rest of the file is not imported at all.
    After much digging in forums, and testing various settings in trying to figure out the issue, I decided to back up all of my files and completely wipe all hard drives and start over with a fresh installation of Windows and Premiere Elements 9.  I haven't installed much else yet, as I wanted to first find out if the reinstallation improved things with Elements.
    For the first project I created in Elements after the reinstallation, Elements successfully imported an entire AVI that was nearly 2 hours long, audio and video.  This was a file that previously would not import properly into Elements.  This suggested that my earlier installation of Elements must have been corrupted somehow.  At this point I was very hopeful that all was well.
    I proceeded to edit the video as I had wanted, saved the project, and exported it to an MPEG format file.  I had originally wanted to export it as an MOV, but I hadn't yet installed Quicktime, so Elements couldn't do that just yet.  The MPEG export was successful and plays fine.
    However, I then installed Quicktime, and once it was finished, I restarted the PC and reloaded the same project.  This time, Elements claimed the media was offline.  I double-clicked on a segment of the video, and directed Elements to the raw file, but then an error message popped up:  "The selected file cannot be linked because its type (video) does not match the original file's type (audio and video)."  This was the same file I had JUST edited and of which I created an MPEG.
    I tried creating a new project and the "Get Media" function to import the AVI again, but this time only the video imported with NO audio.  (This would explain why the error message said what it did, but not why the audio wasn't imported.)
    What in the world is going on with Elements???  I am baffled since the ONLY task I have done on this machine after a complete reinstallation of both Windows and Elements is edit one AVI.  I find it very hard to believe that just installing Quicktime caused this.
    Some info on my system:
    System:  Asus P6T w/ Intel i7 920 and 12 GB memory
    OS: Windows 7 Ultimate
    Video Software:  Premiere Elements 9
    Capture Card:  BlackMagic Intensity Pro (PCI-e)
    Capture Software:  AVIs recorded with either BlackMagic Media Express or VirtualDub (only prior to the reinstallation, as neither of these programs are currently installed)
    I'm getting to the point with Elements that I might need to just abandon it and find something else that is more reliable.  Anybody have suggestions to help with this, so I won't have to migrate?

    mtnsports
    We think that we need to start off with definiting the properties of these .avi files that you are importing into Premiere Elements 9.0/9.0.1 (assumed that you are working for the required 9.0.1 Update).
    You say that the "avi" was created from a "BlackMagic Intensity Pro capture card". What are the properties of this .avi that you imported into Premiere Elements? Not all .avi are created equal. What is the video and audio compression, frame size, frame rate, interlaced or progressive, pixel aspect ratio, typical duration?
    Based on the properties of the video what have you been setting as the project preset?
    Let us start here.
    More later.
    ATR

  • How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

    How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

    How can I copy programs (iWorks) and files from Time Capsule to my HD manually? The problem is that the migration assistant does not recognize my backup file and the user on the TC. (If I open the TC on finder, it it there though)

  • When I watch tv shows in Front Row that I've bought off iTunes the audio gradually falls out of sync with the video. It does not happen with other files that I have converted into mp4s. Any ideas for fixing this? It's a huge bummer...

    When I watch tv shows in Front Row that I've bought off iTunes the audio gradually falls out of sync with the video. It does not happen with other files that I have converted into mp4s. Any ideas for fixing this? It's a huge bummer...

    I too have the same problem.  The audio drop out of sync in about 5 sec in not uncommon for the audio to be 30+ sec behind video.  Apple needs to fix this!!!!!!!!!!!!!!!!   its a joke,  my iphone is all messed up after the last update as well.  at one time not to long ago apple products and software were top rated, not so much any more, more and more problems are showing up and apple is unwilling or unalbe to fix the many issues.  Apple needs to fix the audio sync problem, it not the computer hardware or other software it ITUNES!!!!,  there is no workaround other then hitting pause and hitting pause and hitting pause to temp fix the problem. 

  • "Error occurred in deployment step 'Retract Solution': The solution does not have a WSP file associated with it." occurs while deploying from Visual studio

    HI,
    I get this error "Error occurred in deployment step 'Retract Solution': The solution does not have a WSP file associated with it. " when deploying my project from visual studio 2010 to
    SharePoint 2010 site. I tried restarting IIS, but it didn't help. This application used to work fine until the server crashed during the deployment process. All the other applications on the same server works fine also. Any ideas how to fix this issue? 
    Thanks in advance,
    AM

    Hi
    AM ,
    Thank you for your posting!
    According to your error message, it says your solution does not have a WSP file associated with it. Take a look at the file system.  After you Right Click -> Deploy Solution on the VS Solution, there
    should be a .wsp file at <Solution Directory>\bin\<debug|release>.
    Also the error can be occurring when the developer try to deploy solutions over pre-existing solutions  with material changed  in the solution.  Go to your Central Administration Site and then
    Operations and then Solution Management.  Make sure that there not already a solution with the same name deployed or installed there.  If there is, remove it and try deploying again.
    And you could look in logs and find if there is a below error in ULS log (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS).
    Thank you for your understanding and support.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

Maybe you are looking for

  • Flat File Active Sync doesn't work for account creation without unique id

    Hi, I'm trying to set up a FlatFileActiveSync for creation and update of accounts in IDM 7.0. I've followed the below steps for this purpose :- 1) Create a correlation rule (confirmation rule not reqd in my case). 2) Create a proxy admin and assign h

  • Master-detail form to execute a query while attempting to insert a record

    I have two block and the relationship between them is master and detail. I looking for help/idea about how to retrieve and display a record when the user enters an existing value in the system. Basically, the user is in the form to enter a new record

  • Not to minimize everything in that jpg file

    Hi, I'm to show one jpg file within the report. But I want to show only that part for the flag in the same size that we now have in the jpg file (not to minimze everything within that jpg file). How can I do that? http://www.4shared.com/photo/73OPhlg

  • Collections in Java

    How to display data when the out parameter of a pl/sql program is a collection. This is what i am doing. OracleCallableStatement ocstmt = (OracleCallableStatement) conn.prepareCall("{call test1.get_data(?)}") ; ocstmt.registerOutParameter(1, OracleTy

  • Safari not loading page properly

    Hi all, I have a fairly specific problem with Safari (8.0.3 on OS X 10.10.2) in that the Stripe login page does not load properly for me. All I see when I go here is basic HTML: http://dashboard.stripe.com/login In terms of troubleshooting, I have tr