View previous topic :: View next topic |
Author |
Message |
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Wed May 02, 2018 7:00 pm Post subject: Find out what's under a mount point? -- solved |
|
|
Hi,
I have a production box. There is a data directory on its own filesystem. Let's call it /data. The root filesystem is filling up and I can't see where the files are. I've been using du -hs `ls -A` to navigate the largest used points, but the numbers don't add up. There are several gigabytes used which are not accounted for. As well there is a period of time for which data are missing.
I suspect that somehow during a maintenance cycle the /data filesystem was unmounted, data written and the /data filesystem mounted again.
I can't justify taking the services down to unmount that filesystem, is there a way to peek without unmounting?
Thanks.
Last edited by 1clue on Wed May 02, 2018 7:51 pm; edited 1 time in total |
|
Back to top |
|
|
Atom2 Apprentice
Joined: 01 Aug 2011 Posts: 185
|
Posted: Wed May 02, 2018 7:14 pm Post subject: Re: Find out what's under a mount point? |
|
|
1clue wrote: | I can't justify taking the services down to unmount that filesystem, is there a way to peek without unmounting? |
1clue,
I have no access to a system currently, so can't test whether it actually works. Having said that, I assume the following should actually work:
Code: | # mkdir /mnt/datapeek
# mount --bind / /mnt/datapeek
# ls -l /mnt/datapeek/data |
In my view, that should list the files in the original root filesystem excluding the mounted file system under /data (which, while being mounted, hides what's currently in /data)
I hope that helps and would appreciate a quick feedback whether the stuff actually works as I expect.
Regards Atom2 |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Wed May 02, 2018 7:16 pm Post subject: |
|
|
sounds like you need a --bind mount _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
1clue Advocate
Joined: 05 Feb 2006 Posts: 2569
|
Posted: Wed May 02, 2018 7:50 pm Post subject: |
|
|
It works, thanks guys!
And yes that's my problem. |
|
Back to top |
|
|
|