LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .snapshot filling nfs disk (https://www.linuxquestions.org/questions/linux-newbie-8/snapshot-filling-nfs-disk-820672/)

emmalg 07-19-2010 06:46 AM

.snapshot filling nfs disk
 
Hi All

I'm not sure if anyone can help with my odd question.

I have a lot of data on a nfs store external to an Ubuntu machine. I've had problems with the storage becoming full and have spent a very long time deleting files to get absolutely nowhere! Over 25GB of deletions on the 80GB disk has only cleared 1.5GB of space...

You can see below the hidden .snapshot directory, the disk usage for the nfs-store is coming out at 97GB when the disk is only 80GB in size, and the two directories I want on the disk are about 22GB in size.

The .snapshot directory appears to have been made on Friday, I'd like to know if I can:

1) find out what command ran to create/update it
2) re-run the command to update the directory or remove the directory

I'm afraid this goes a bit beyond my capability.

Code:

ideasadmin@ideasadmin-desktop:/nfs-store$ ls -la
total 20
drwxr-xr-x  5        500        500 4096 2010-07-16 17:35 .
drwxr-xr-x 22 root      root      4096 2009-07-22 12:18 ..
drwxrwxrwx 18 ideasadmin ideasadmin 4096 2010-07-13 16:04 ASAR_Data
drwxrwxr-x  7 ideasadmin ideasadmin 4096 2009-05-18 16:08 ASAR_Out
drwxrwxrwx  3 root      root      4096 2010-07-15 11:21 .snapshot
ideasadmin@ideasadmin-desktop:/nfs-store$ du -sh .
97G        .
ideasadmin@ideasadmin-desktop:/nfs-store$ du -sh ASAR_Data/ ASAR_Out/ .snapshot/
4.7G        ASAR_Data/
17G        ASAR_Out/
76G        .snapshot/
ideasadmin@ideasadmin-desktop:/nfs-store$

Thanks in advance.

Cheers
Emma

paulsm4 07-20-2010 01:17 AM

Hi -

1. I honestly don't know what could be creating your ".snapshot" directory. AFAIK, it's not "standard" - it sounds like it might be some kind of third party program.

2. For example, "sonic.net" runs on Linux and creates ".snapshot" subdirectories:

http://sonic.net/support/docs/backupdoc.shtml

3. OK: how to identify the culprit?

One good way is to run "lsof":

http://www.dedoimedo.com/computers/lsof.html

'Hope that helps .. PSM

emmalg 07-21-2010 04:53 AM

Hi!

Thank you very much. I'm afraid I couldn't work out how to get lsof to provide the necessary information, nothing obvious stands out if it is just run, but it looks like a good tool to remember for the future!

I have my suspicions that one of two things has happened:

1) The network admin has recently set something up on a different machine as a "helpful" back up for me. This maybe the case as if I try to do anything (inclusing chown, chmod from root shell) to the information in the .snapshot directory it tells me it is a read only file system.

2) On the day the file was created I was messing around setting up a public/private DSA key and testing the use of rsync to automate the transfer data between two machines. I know rsync can be used to create backups, but I don't think that at any time I gave a command which could have done this and a thorough check of all the logs (syslog and auth.log) and the .bash-history, reveals nothing at all which occured at the time, or could have created the directory - I think this supports theory 1.

It looks like I'm going to have to keep deleting the scraps of data from the machine on a daily basis until the network admin is back from holiday in 2 weeks!

Thanks for your help though.

emmalg 09-08-2010 08:04 AM

Well, I didn have to delete the data for 2 weeks until the network admin got back and fixed the problem!


All times are GMT -5. The time now is 03:04 AM.