Tuesday, June 26, 2012

How to determine File system creation time

To determine the time and date a file system was created, try this.

Find the LV for that file system.

Lets try /opt.

root@myserver:/> lsfs /opt
Name            Nodename   Mount Pt               VFS   Size    Options    Auto Accounting
/dev/hd10opt    --         /opt                   jfs2  10485760 --         yes  no

Since /opt is located on LV hd10opt. we then try next
 
root@myserver:/> getlvcb -AT hd10opt
         AIX LVCB
         intrapolicy = c
         copies = 1
         interpolicy = m
         lvid = 00f603d800002c000000012f34187103.9
         lvname = hd10opt
         label = /opt
         machine id = 603C84A00
         number lps = 160
         relocatable = y
         strict = y
         stripe width = 0
         stripe size in exponent = 0
         type = jfs2
         upperbound = 32
         fs =
         time created  = Thu Aug 25 04:48:35 2011
         time modified = Fri Sep 23 10:16:13 2011

Now we can tell that creation time aka "time created" for /opt is in Aug 2011.

No comments: