----- Original Message ----- From: "Todd C. Merrill" tmerrill@mathworks.com To: toasters@mathworks.com Sent: Friday, May 26, 2000 6:04 AM Subject: snap command
I have a need to get lists of snapsnots on my filers. However, since the filers are heavily used, the snap command takes minutes to return. I suspect they take that long in order to calculate the usage statistics. Is there another way, a faster way, to just get a list of the snapshot names and timestamps?
A listing of the directories under a .snapshot directory give the names, but not accurate timestamps.
Yes, it does give accurate timestamps.
If you refer to your netapp sysadmin manual you will find your question is answered for you.
The "timestamp" you are looking at is probably the timestamp of last modification. Since the snapshot you are looking at is a copy of your root inode, what you are seeing is the last modification time of your root inode, when the snapshot was taken, just like any other file or directory. The .snapshot directory will report those accurately.
What you want to know, of course, is the time the .snapshot was created. Well, since snapshots are read-only, their access time cannot be updated and thus do not really reflect the time of last access. So NTAP uses this field to report the snapshot creation time instead. So, if you use "ls -lu" you will see the timestamps for the creation of the snapshots.
Bruce
PS - Don't feel bad; this is one of the most commonly asked questions.