Hi all,
I have a few directories that are automounted from NetApp F720 Filer to the SUN boxes. The mounted directories are directories under qtrees. .snapshot is accessible under all mountpoints. The issue I have is when doing du to query the directory usage, there will be error messages due to permission level of contents beneath the .snapshot.
I would like to get the correct disk usage of my mounted directories. One way to do it is to disable access to the snapshot directories by "vol options volumename nosnapdir on". Is there anyway of getting the correct output of du without accessing the .snapshot directories and not having to turn off and on the options each time, perhaps the right options of du to bypass that particular directories?
Thanks for any input. Nic
Get the gnu version of du and modify the source to not go into .snapshot
--tmac
"Nicholas, Chua" wrote:
Hi all,
I have a few directories that are automounted from NetApp F720 Filer to the SUN boxes. The mounted directories are directories under qtrees. .snapshot is accessible under all mountpoints. The issue I have is when doing du to query the directory usage, there will be error messages due to permission level of contents beneath the .snapshot.
I would like to get the correct disk usage of my mounted directories. One way to do it is to disable access to the snapshot directories by "vol options volumename nosnapdir on". Is there anyway of getting the correct output of du without accessing the .snapshot directories and not having to turn off and on the options each time, perhaps the right options of du to bypass that particular directories?
Thanks for any input. Nic
-- ******All New Numbers!!!****** ************* *************
Timothy A. McCarthy --> System Engineer, Eastern Region Network Appliance http://www.netapp.com 240-268-2034 Office \ / Page Me at: 240-268-2001 Fax / 888-971-4468
"TAM" == Timothy A McCarthy tmac@netapp.com writes:
TAM> Get the gnu version of du and modify the source to TAM> not go into .snapshot
GNU du has a '--exclude' option already. Also, writing something in Perl use Find::File would be pretty simple.
j. -- Jay Soffian jay@loudcloud.com System Administrator 408 744 7584 Loudcloud, Inc.