Operating System - HP-UX
1833034 Members
2520 Online
110049 Solutions
New Discussion

Last mount point used by a VxFS filesystem

 
SOLVED
Go to solution
Sundar_7
Honored Contributor

Last mount point used by a VxFS filesystem

I have an unmounted VxFS filesystem and would like to determine the last mountpoint used by it.

It is pretty straightforward when it comes to HFS but I cannot seem to get any pointers for the VxFS filesystems.

Is it true that the last mountpoint used is not recorded in the VxFS superblock (unlike HFS superblock) ?

I am willing to even write a simple C prog to query the structures but need to know the header file and the structure def.

TIA

Sundar.
Learn What to do ,How to do and more importantly When to do ?
5 REPLIES 5
Kent Ostby
Honored Contributor

Re: Last mount point used by a VxFS filesystem


Veritas does not have this field in their VxFS superblock.

The only possible way to get the information would be to restore an /etc/mnttab from the time that FS was on the box (to a different file name) and see if you could pull the information from there.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Sameer_Nirmal
Honored Contributor
Solution

Re: Last mount point used by a VxFS filesystem

Hi,

Yes, VxFS doesn't keep a record of the last mount point used in its header.

The superblock and its copy resides in the Allocation Unit Header (similar to HFS's Cylinder Group. The superblock contents/fields could be known from the fs_vxfs man page.

Refer following link for vxfs disk layout for different versions.
http://uw713doc.sco.com/en/FS_admin/_vxfs_Disk_Layout.html
RAC_1
Honored Contributor

Re: Last mount point used by a VxFS filesystem

There is a way to know it apart from /etc/mnttab.....:-)

This would be with help of glance metrics. MWA collects data bout "data type lvolume" along with all other tons of metrics.

If you use report file to extract command as follows, this may give you what you want.

REPORT "MWA Export !DATE !TIME Logfile: !LOGFILE !COLLECTOR !SYSTEM_ID"
FORMAT ASCII
HEADINGS ON
SEPARATOR="|"
DATA TYPE LVOLUME
DATE
TIME
DAY
DATE_SECONDS

LV_DIRNAME
FS_DIRNAME

LV_SPACE_UTIL

Call this file test.

extract -v -xp -gapkdztncuyGADZTNUY -b "start_time" -e "end_time" -r ./test -f"output_file"

If you adjust start and end time accordingly, you should get what you want.

Hope this helps.
There is no substitute to HARDWORK
RAC_1
Honored Contributor

Re: Last mount point used by a VxFS filesystem

Sundar,

Even better would be following.

DATA TYPE FILESYSTEM

**........................... File System Record Identification Metrics

* BLANK
* RECORD_TYPE
* DATE
* TIME
* YEAR
* DAY
* DATE_SECONDS
* INTERVAL

**........................... File System Summary Metrics

* FS_DIRNAME

**........................... File System Disk Metrics

* FS_DEVNAME
* FS_TYPE
* FS_BLOCK_SIZE
* FS_MAX_SIZE
* FS_FRAG_SIZE
* FS_SPACE_UTIL


You know how to use them....
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: Last mount point used by a VxFS filesystem

Hi Sundar, You can find them using VEA log files. Header files are /opt/VRTS/include/sys/fs/vx_ioctl.h
/opt/VRTS/include/sys/fs/fcl.h
/opt/VRTS/include/sys/fs/vxio.h
/opt/VRTS/include/vxfsutil.h

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"