Re: Redirecting LVM command output on RHEL5?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 1 Aug 2007, Joubert, Kevin wrote:

> [root@linux-dl585 ~]# pvs
>   PV         VG   Fmt  Attr PSize  PFree
>   /dev/sda   vg01 lvm2 a-   10.00G    0
>   /dev/sdd   vg02 lvm2 ax    1.95G 1.08G
>   /dev/sde   vg02 lvm2 ax    1.95G 1.46G
> 
> [root@linux-dl585 ~]# pvs > kevin.txt
> 
> [root@linux-dl585 ~]# cat kevin.txt
> 
> 
> No matter what LVM command I run (i.e. vgdisplay, lvs, etc. etc.), it
> will not redirect output to my text file. Screen output is always
> successful, and every other system command I have tried (i.e. fdisk,
> etc.) will redirect output successfully. 

Check your SELinux log.  The GUI should have SELinux Troubleshooter.
You'll find that in addition to forbidding pipes, lvm is also restricted from
updating .cache :-(

I think it is a policy bug.  The troubleshooter will suggest a rule to add.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux