Score:0

/mnt/md0 taking more space than expected on boot drive

fr flag

I have created an mdadm raid on my Ubuntu server 20.04.3. I have it mounted to /mnt/md0, which mounts it to the LVM partition for my boot drive which is 120GB. For some reason, this raid and mount point is taking up space on my boot drive.

I have tried ncdu / in order to diagnose where the space was going on my boot drive, and the output is as follows:

ncdu 1.14.1 ~ Use the arrow keys to navigate, press ? for help                                                                                                                                             
--- / ---------------------------------------------
   76.1 GiB [##########] /mnt                                                                                                                                                                              
    8.0 GiB [#         ]  swap.img
    4.0 GiB [          ] /usr
    3.3 GiB [          ] /root
    3.3 GiB [          ] /var
    1.9 GiB [          ] /snap
    1.3 GiB [          ] /srv
  511.0 MiB [          ] /home
  206.6 MiB [          ] /boot
    9.1 MiB [          ] /etc
    1.9 MiB [          ] /run
   68.0 KiB [          ] /tmp
   16.0 KiB [          ] /opt
e  16.0 KiB [          ] /lost+found
e   4.0 KiB [          ] /media
e   4.0 KiB [          ] /cdrom
.   0.0   B [          ] /proc
    0.0   B [          ] /sys
    0.0   B [          ] /dev
@   0.0   B [          ]  libx32
@   0.0   B [          ]  lib64
@   0.0   B [          ]  lib32
@   0.0   B [          ]  sbin
@   0.0   B [          ]  lib
@   0.0   B [          ]  bin

As I drill down, it appears that this space is taken by the /mnt/md0 directory, and that my recently uploaded files via sftp are taking up the space on the boot drive somehow, rather than being added to the raid. I tried editing /etc/fstab in order to mount the raid to a new directory I made which was /mnt/raid/, then rebooted the server, it doesn't seem to be allowing me to move the mount point, either.

Any suggestions or ideas? I have been struggling with this for days. I also checked using the command 'df -h /mnt/md0/' and it appears to be mounted on the

Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv  109G   96G  8.4G  92% /

which is the lv for my boot drive.

What else can I do to further troubleshoot (and hopefully solve) my issue here?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.