Why lvs and pvs fail with "stdin: fdopen failed: Invalid argument" when run under nohup?

Solution Verified - Updated -

Issue

  • When run under nohup, pvs and lvs fail with errors when they worked fine in the previous version.
[root@rhel6 ~]# rpm -q lvm2
lvm2-2.02.95-10.el6_3.3.x86_64
[root@rhel6 ~]# nohup lvs &>lvs.out &
[1] 13511
[root@rhel6 ~]# 
[1]+  Done                    nohup lvs &>lvs.out
[root@rhel6 ~]# cat lvs.out
nohup: ignoring input
  LV      VG       Attr     LSize Pool Origin Data%  Move Log Copy%  Convert
  lv_root vg_rhel6 -wi-ao-- 8.04g                                           
  lv_swap vg_rhel6 -wi-ao-- 1.47g   

# yum -y upgrade lvm2
[root@rhel6 ~]# rpm -q lvm2
lvm2-2.02.98-9.el6.x86_64
[root@rhel6 ~]# nohup lvs &>lvs.out &
[1] 13524
[root@rhel6 ~]# 
[1]+  Exit 255                nohup lvs &>lvs.out
[root@rhel6 ~]# cat lvs.out
nohup: ignoring input
  stdin: fdopen failed: Invalid argument
  stdin: fclose failed: Invalid argument
  stdin: fdopen failed: Invalid argument

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • lvm2-2.02.98-9.el6.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.