Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1938694.1
Update Date:2014-11-07
Keywords:

Solution Type  Technical Instruction Sure

Solution  1938694.1 :   Oracle ZFS Storage Appliance: How to Exclude .zfs/snapshot from a Find Command run on the Client  


Related Items
  • Sun ZFS Storage 7320
  •  
  • Sun Storage 7210 Unified Storage System
  •  
  • Oracle ZFS Storage ZS3-BA
  •  
  • Oracle ZFS Storage ZS3-2
  •  
  • Sun Storage 7410 Unified Storage System
  •  
  • Oracle ZFS Storage ZS3-4
  •  
  • Sun ZFS Storage 7420
  •  
  • Sun Storage 7310 Unified Storage System
  •  
  • Sun Storage 7110 Unified Storage System
  •  
  • Sun ZFS Storage 7120
  •  
Related Categories
  • PLA-Support>Sun Systems>DISK>ZFS Storage>SN-DK: 7xxx NAS
  •  




In this Document
Goal
Solution


Created from <SR 3-9782538361>

Applies to:

Sun Storage 7410 Unified Storage System - Version All Versions to All Versions [Release All Releases]
Sun Storage 7310 Unified Storage System - Version All Versions to All Versions [Release All Releases]
Sun Storage 7210 Unified Storage System - Version All Versions to All Versions [Release All Releases]
Sun Storage 7110 Unified Storage System - Version All Versions to All Versions [Release All Releases]
Sun ZFS Storage 7420 - Version All Versions to All Versions [Release All Releases]
7000 Appliance OS (Fishworks)

Goal

When working with snapshots for NDMP, the user may wish to manipulate the snapshots to be listed or excluded.

 

A customer asked the following questions

    Q1 - After changing .zfs/snapshot visibility to hidden, does the customer have to remount the file systems?

    Q2 - Can I know how to exclude .zfs/snapshot from find command?

 

The answers may help other customers.
 

Solution

Q1 - After changing .zfs/snapshot visibility to hidden, does the customer have to remount the file systems?

Answer:  Yes you do need to remount them.

 


Q2 - Can I know how to exclude .zfs/snapshot from find command? ( on a client attached to the NAS )

Answer:  Some variant of the  -prune option  for find will help here

find . -name . <name or xters to be pruned> -prune -o -print


Of course, if you are using some version of Linux on your clients that does not have "-prune",  then you may have the "-not " option, then

find . -not \( -name "*.xters " -o -name ".*,xters" \) '{}' \; -print

Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback