Re: Log Volume Name



Steve,
I thought lsfs would show it, but that didn't work.

So I tried "lsfs -q", but that only shows if the jfs2 has an inline log
and only when run as root.

I was hoping "lsfs -cq" for colon separated would have a consistent
colon separated format, but the extra output from -q did not get
included in the colon separated lines.

So I used:

fs='/var' ; \
/usr/bin/grep -p "^$fs:" /etc/filesystems \
| /usr/bin/awk '/^[ \t]*log[ \t][ \t]*=[ \t][ \t]*/ {print $3}'

This should work as long as your /etc/filesystems file has a consistent
format (i.e. blank lines separating stanzas and white space on either
side of the equals sign).

-Ed

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Uncle Steve
Sent: Monday, October 01, 2007 9:41 AM
To: aix-l@xxxxxxxxxxxxx
Subject: Log Volume Name

I need to write a script that can figure out the jfs2log LV for a
specific
jfs2 FS. Any idea what command shows it so I can scrap out my answer?

TIA - Steve