Operating System - HP-UX
1830168 Members
4656 Online
109999 Solutions
New Discussion

pvcreate not in the syslog

 
Aaron_82
Frequent Advisor

pvcreate not in the syslog

Is there a place that tells me when a pvcreate was invoked? When I run a pvcreate or even a pvcreate -f it does not show up in the syslog even though other lvm commands do.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: pvcreate not in the syslog

I can not recall pvcreate ever logging anything in my syslog.

Back when I used sam, that has its own log.

lvm tools report results back to the command line/stdout.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Schussele
Honored Contributor

Re: pvcreate not in the syslog

Hi Aaron,

Only way I know of is to check the date/time stamp on the raw device.
So if you want to know when c2t5d0 was pvcreated - check /dev/rdsk/c2t5d0 with an ll command.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Aaron_82
Frequent Advisor

Re: pvcreate not in the syslog

These boxes are in a cluster so it wasn't invoked in SAM. Seeing that pvcreate can be very destructive one would think it would be logged somewhere.
Jeff Schussele
Honored Contributor

Re: pvcreate not in the syslog

Hi (again) Aaron,

Well...I would agree with you to a point.
Remember that all the "destructive" LVM commands are root-only. So you don't let anybody drive the bus until they can make the turn & parallel park the sucker.

My 2 cents,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Aaron_82
Frequent Advisor

Re: pvcreate not in the syslog

Jeff,
You get points cuz that was funny