root volume full with 2 copies of usr

Questions about SNMP, Power, System, Logs, disk, & RAID.
Post Reply
tangential
New here
Posts: 5
Joined: Sat Dec 24, 2016 6:14 am

root volume full with 2 copies of usr

Post by tangential »

I upgraded my TS-451+ to the latest version of the OS yesterday and it did not go well. I ended up running about 8 reboots and a large series of fsck's and finally got it mostly working again. The problem I have now is that my / filesystem is full.

# df -h |grep none
none 400.0M 400.0M 0 100% /

I looked through the filesystem and found that I seem to have an extra copy of usr.

Looking at just directories actually contained (not mounted to) / I see:

# du -hx --max-depth=1 /
0 /play
0 /rpc
0 /flashfs_tmp
95M /usr
88M /home
0 /share
0 /sys
0 /dev
133M /root
0 /lost+found
2.3M /var
4.4M /bin
0 /tmp
21M /sbin
12K /mnt
52M /lib
7.1M /etc
0 /proc
0 /new_root
400M /

Notice that usr is 95M and /root is 133M. When I look in /root I see:

# du -hx --max-depth=1 /root
39M /root/home
95M /root/usr
0 /root/flashfs_tmp
0 /root/rpc
133M /root

and when I compare /usr and /root/usr I see:

# du -hx --max-depth=1 /usr /root/usr
36M /usr/local
8.1M /usr/bin
11M /usr/sbin
9.6M /usr/share
32M /usr/lib
112K /usr/libexec
4.0K /usr/etc
95M /usr
4.0K /root/usr/etc
112K /root/usr/libexec
32M /root/usr/lib
9.9M /root/usr/share
11M /root/usr/sbin
8.1M /root/usr/bin
36M /root/usr/local
95M /root/usr

There is a slight difference in the share directory size but otherwise these look identical. None of this is symlinking, these are separate copies. Is this normal or did something go haywire and write an extra set of usr during my upgrade? Can remove (or move) /root/usr?
Mousetick
Experience counts
Posts: 1081
Joined: Thu Aug 24, 2017 10:28 pm

Re: root volume full with 2 copies of usr

Post by Mousetick »

No it's not normal. /root should not contain any directory, only a few hidden files.

For reference (with QTS 4.5.1.1480):

Code: Select all

# du -hx --max-depth=1 /
0       /rpc
0       /flashfs_tmp
95M     /usr
88M     /home
36K     /root
7.3M    /etc
21M     /sbin
0       /lost+found
0       /mnt
52M     /lib
4.8M    /var
4.4M    /bin
8.0K    /opt
0       /new_root
270M    /

Code: Select all

# ls -al /root
total 36
drwxr-xr-x  2 admin administrators  240 Nov 14 15:48 .
drwxr-xr-x 24 admin administrators  580 Nov 14 17:29 ..
lrwxrwxrwx  1 admin administrators    6 Nov 14 16:43 .BitTornado -> ../tmp
-rw-r--r--  1 admin administrators    5 Jan 11  2008 .bash_history
-rw-r--r--  1 admin administrators  175 Oct  9  2004 .bash_logout
-rw-r--r--  1 admin administrators  161 Oct  9  2004 .bash_profile
-rw-r--r--  1 admin administrators 1687 Jul 18  2007 .bashrc
-rw-r--r--  1 admin administrators   36 Nov 14 15:48 .buzzer_warnning.conf
-rw-r--r--  1 admin administrators   27 Jan 29  2007 .profile
lrwxrwxrwx  1 admin administrators   15 Nov 14 15:48 .ssh -> /etc/config/ssh
-rw-r--r--  1 admin administrators  923 Nov 14 15:44 .vimrc
-rw-r--r--  1 admin administrators 6526 Jul 11  2007 index_default.html
IMHO you can safely remove the stuff that ended up under /root and shouldn't be there. But something went haywire as you said and it would be good for you to figure out what and why. You may need to reapply the firmware update manually to ensure everything is properly installed.
tangential
New here
Posts: 5
Joined: Sat Dec 24, 2016 6:14 am

Re: root volume full with 2 copies of usr

Post by tangential »

This seems to happen with almost every upgrade of the OS lately. I end up with /root/usr consuming about 100M of space and filling up the root filesystem.

Is anyone else running into this?
Post Reply

Return to “System & Disk Volume Management”