How to retrieve your corrupted or deleted /work
files
A T3 user can
independently retrieve a corrupted or deleted
/work
file by looking into his/her own snapshots, for instance:
$ cd /work/$USER/.zfs/snapshot
[martinelli_f@t3ui01 ~]$ cd /work/$USER/.zfs/snapshot
[martinelli_f@t3ui01 snapshot]$ ls -la
total 0
dr-xr-xr-x 2 root root 2 Dec 10 18:01 .
dr-xr-xr-x 1 root root 0 Oct 27 14:22 ..
dr-xr-xr-x 1 root root 0 Dec 10 18:44 zfssnap-day-20161207-011142 <-- Max 2 past days
dr-xr-xr-x 1 root root 0 Dec 10 18:44 zfssnap-day-20161208-014735
Choose a snapshot dir and copy back in
/work/$USER/
what you need by an ordinary
cp
command.
Be aware that if your deleted files are still referenced in snapshots, this will affect your /work
space quota. In that case deleted files are stored in this snapshot and snapshot grows in space correspondingly. Till snapshot itself is deleted you do not get a free space .
It's a rare event to run over quota and that actually means that you're frequently adding/removing big files in your
/work
, while you have to use the UI/WN
/scratch
or the
/pnfs
areas for that purpose !
Your present/past
/work
usage is published here :
http://t3mon.psi.ch/PSIT3-custom/space.report