What is $HOME/.lvm
(lvm history
) and where we use it in LVM?
Asked
Active
Viewed 98 times
2

Billal Begueradj
- 20,717
- 43
- 112
- 130

Vinod
- 29
- 4
2 Answers
2
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.

logix
- 622
- 5
- 18
1
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

wfailla
- 26
- 2