What is $HOME/.lvm
(lvm history
) and where we use it in LVM?
What is $HOME/.lvm
102 views Asked by Vinod At
2
There are 2 answers
0
On
The Logical Volume Manager (LVM) can be used either directly e.g.:
# lvdisplay
--- Logical volume ---
[..]
# vgscan
Found volume group "data" using metadata type lvm2
or interactively e.g.:
# lvm
lvm> lvdisplay
--- Logical volume ---
[...]
lvm> vgscan
Found volume group "data" using metadata type lvm2
When used interactively the command history is kept in ~/.lvm_history
:
# cat ~/.lvm_history
lvdisplay
vgscan
Similar to the bash history file(~/.bash_history
):
# cat ~/.bash_history
lvscan
pvscan
It appears to be a part of GNU Readline: it keeps track of history for the interactive
lvm
command just like bash_history does for bash. See the lvm(8) manpage for details.