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

Re: [linux-lvm] Redirecting LVM command output on RHEL5?



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.


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