Re: Log Volume Name
- From: "Davignon, Edward" <Edward.Davignon@xxxxxxxxxxxxxx>
- Date: Mon, 1 Oct 2007 10:30:29 -0400
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
- References:
- Log Volume Name
- From: Uncle Steve
- Log Volume Name
- Prev by Date: Re: Log Volume Name
- Next by Date: Maximum number of disks in a machine
- Previous by thread: Re: Log Volume Name
- Next by thread: Maximum number of disks in a machine
- Index(es):