diff options
Diffstat (limited to 'util/aliases')
-rw-r--r-- | util/aliases | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/aliases b/util/aliases index a8ea5d1..2652f46 100644 --- a/util/aliases +++ b/util/aliases @@ -131,11 +131,14 @@ uuid_healthcheck() { # thanos_snap removes all ghost /dev/sd* files. # This is a temporary solution we should fight the real problem. +# TODO investigate the reasons why such files and links are created, and remove that cause. thanos_snap() { # this step should be done after entering maintenence, but you can never be too sure. avengers_disassemble # remove unneeded /dev/sd* files ls -alF /dev/sd* | awk '$0 !~ /^b/{print $NF}' | xargs sudo rm + # remove invalid links from /dev/disk/by-uuid + find /dev/disk/by-uuid/ -xtype l | xargs sudo rm } # show_alllogs displays logs for given expression (build_nr, device, etc...) |