Add defrag docs, fix trace message
This commit is contained in:
@@ -139,8 +139,10 @@ void kv_fs_defrag_t::handle_read()
|
||||
{
|
||||
fprintf(
|
||||
stderr, was_moved
|
||||
? "Moved inode 0x%jx (%ju bytes) from volume 0x%jx offset 0x%ju\n"
|
||||
: "Inode 0x%jx (%ju bytes) data in volume 0x%jx at offset 0x%ju is unused",
|
||||
? (dry_run
|
||||
? "In use inode 0x%jx (%ju bytes) in volume 0x%jx at offset 0x%jx\n"
|
||||
: "Moved inode 0x%jx (%ju bytes) in volume 0x%jx at offset 0x%jx\n")
|
||||
: "Unused inode 0x%jx (%ju bytes) in volume 0x%jx at offset 0x%jx\n",
|
||||
ino, alloc, shared_ino, shared_offset
|
||||
);
|
||||
}
|
||||
|
||||
@@ -69,12 +69,16 @@ static const char* help_text =
|
||||
" --portmap 0 do not listen on port 111 (portmap/rpcbind, requires root)\n"
|
||||
"\n"
|
||||
"vitastor-nfs --fs <NAME> upgrade\n"
|
||||
" Upgrade FS metadata. Can be run online, but server should be restarted\n"
|
||||
" Upgrade FS metadata. Can be run online, but server(s) should be restarted\n"
|
||||
" after upgrade.\n"
|
||||
"\n"
|
||||
"vitastor-nfs --fs <NAME> defrag [OPTIONS] [--dry-run]\n"
|
||||
" Defragment volumes used for small file storage having more than\n"
|
||||
" <defrag_percent> %% of data removed. Can be run online. Options:\n"
|
||||
" Defragment volumes used for small file storage having more than <defrag_percent> %%\n"
|
||||
" of data removed. Can be run online.\n"
|
||||
" In VitastorFS, small files are stored in large \"volumes\" / \"shared inodes\" one\n"
|
||||
" after another. When you delete or extend such files, they are moved and garbage is left\n"
|
||||
" behind. Defragmentation removes garbage and moves data still in use to new volumes.\n"
|
||||
" Options:\n"
|
||||
" --volume_untouched 86400\n"
|
||||
" Defragment volumes last appended to at least this number of seconds ago\n"
|
||||
" --defrag_percent 50\n"
|
||||
|
||||
Reference in New Issue
Block a user