Jump to content

When was "lvextend" command run last, logs that give these details?


Karthik Ramaswamy

Recommended Posts

Hello Friends,
There is a requirement from Client to not run lvextend command if it was run in last 24 hrs.
I have tried the following and still havent figured out how to do it, any help will be highly appreciated:
1.] Have tried checking /var/log/messages, dmesg command logs. There are no kern.logs in the server so cannot check that as well.
2.] There is no /var/log/syslog so cannot check that. Also cannot activate logging by modifying lvm2.conf file as there are many servers.
3.] 'history' command only displays 10 commands and that too from current tty.

 

If there are any files which gets added with any volume group changes information please suggest.

Please suggest how I can capture when a particular command especially "lvextend" was run last?

Thanking You,
Karthik R

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines