<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>AW: [linux-lvm] Redirecting LVM command output on RHEL5?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hello Kevin,<BR>
<BR>
Maybe the output is not on stdout but on stderr. So trie this:<BR>
<BR>
#lvs 2> kevin.txt<BR>
<BR>
Kind regards<BR>
<BR>
Falko<BR>
<BR>
<BR>
Falko Zurell<BR>
<BR>
Head of Application Management<BR>
falko.zurell@idmedia.com<BR>
Mobil +49 (0)160 - 3 62 52 77<BR>
<BR>
/i-d media AG<BR>
Ohlauer Straße 43<BR>
D-10999 Berlin<BR>
<BR>
Tel +49 (0)30 - 2 59 47 - 357<BR>
Fax +49 (0)30 - 2 59 47 - 471<BR>
www.idmedia.com<BR>
<BR>
_______________________________________________<BR>
<BR>
Board: Regine Haschka-Helmer (CEO), Franz Klose (CFO)<BR>
Chairman of the Supervisory Board: Christian A. Hufnagl<BR>
Headquarters: Berlin, Place of Jurisdiction: Berlin HRB 76342<BR>
UST-Id. DE812698340<BR>
_______________________________________________<BR>
<BR>
<BR>
----- Originalnachricht -----<BR>
Von: linux-lvm-bounces@redhat.com <linux-lvm-bounces@redhat.com><BR>
An: linux-lvm@redhat.com <linux-lvm@redhat.com><BR>
Gesendet: Wed Aug 01 21:08:43 2007<BR>
Betreff: [linux-lvm] Redirecting LVM command output on RHEL5?<BR>
<BR>
<BR>
Hello,<BR>
<BR>
Okay.. I am probably missing something simple here but...<BR>
<BR>
I just added a RHEL5 system to my lab and I am testing a script that<BR>
captures LVM structure.<BR>
This script works on other versions of RHEL and SLES, but on RHEL5,<BR>
whenever I try to redirect LVM command output, I get a blank.<BR>
<BR>
For instance...<BR>
<BR>
[root@linux-dl585 ~]# pvs<BR>
  PV         VG   Fmt  Attr PSize  PFree<BR>
  /dev/sda   vg01 lvm2 a-   10.00G    0<BR>
  /dev/sdd   vg02 lvm2 ax    1.95G 1.08G<BR>
  /dev/sde   vg02 lvm2 ax    1.95G 1.46G<BR>
<BR>
[root@linux-dl585 ~]# pvs > kevin.txt<BR>
<BR>
[root@linux-dl585 ~]# cat kevin.txt<BR>
<BR>
<BR>
No matter what LVM command I run (i.e. vgdisplay, lvs, etc. etc.), it<BR>
will not redirect output to my text file. Screen output is always<BR>
successful, and every other system command I have tried (i.e. fdisk,<BR>
etc.) will redirect output successfully.<BR>
<BR>
<BR>
Any ideas?<BR>
<BR>
<BR>
Kevin<BR>
<BR>
_______________________________________________<BR>
linux-lvm mailing list<BR>
linux-lvm@redhat.com<BR>
<A HREF="https://www.redhat.com/mailman/listinfo/linux-lvm">https://www.redhat.com/mailman/listinfo/linux-lvm</A><BR>
read the LVM HOW-TO at <A HREF="http://tldp.org/HOWTO/LVM-HOWTO/">http://tldp.org/HOWTO/LVM-HOWTO/</A><BR>
</FONT>
</P>

</BODY>
</HTML>