Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-28-2014, 07:41 AM   #1
Registered: Nov 2010
Distribution: RedHat
Posts: 90

Rep: Reputation: 1
(LVM) open failed: no such file or directory output in lvdisplay command


I have /root partition (and other 3 partitions)on LVM in my system.
whenever I run the command 'lvdisplay', it shows a message:
/dev/mapper/csaportal-root: open failed: no such file or directory

Even thought the system is working fine.

Can anybody please point out:
1. why this message is coming in the command output ?
2. how can I resolve this ?

1. I have already run 'fsck' and 'vgcfgrestore' etc commands...but that is not helping me !
2. I am using Ubuntu-12.04.
I am not sure if I should be posting for ubuntu related problems here, but this problem might occur in other *nix systems also.

Any suggestion will be helpful.

Thanks in advance.
Old 04-28-2014, 01:17 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,549
Blog Entries: 15

Rep: Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493
The message says "/dev/mapper/csaportal-root" doesn't exist. Did you try doing "ls -l /dev/mapper/csaportal-root" to see if it does?

What Linux Distro and version are you using?

The above implies to me that your Volume Group (VG) is named "csaportal". Is that correct? Does that VG show up when you run the "vgs" command? Can you run "vgdisplay -v csaportal"?

Does "root" show up as a Logical Volume (LV) in either "lvs" output or the above vgdisplay -v csaportal output?

The above path MIGHT be a symbolic link to a /dev/dm-* file OR it might be a device file of its own. There should be a major and minor on it rather than byte size on it:
brw-rw---- 1 root disk 253, 3 Dec 28 22:11 csaportal-root (or on the dm-* device it is linked to)
In that 253 is the "major" and 3 is the "minor". If instead of it showing as a block device (as denoted by the leading "b") it is showing up as a regular file or directory it could be someone accidentally overwrote the device file entry. You can recreate with the "mknod" command but first you'd have to determine the correct major/minor.
Most LVs in /dev/mapper should have same major and the minors are usually sequential so you might be able to figure out the one you need. (Do NOT assume the 253,3 seen above is correct - it is just an example.)

Another thought is that someone tried to rename your VG from whatever it was by default (e.g. VolGroup00) to csaportal and did a poor job of it and you're seeing some vestige.

Given the name it would seem likely your server is called csaportal and this is intended to be the root (/) filesystem. If you run "df -hP /" what does it show the device as?

Note that mapper is used to shortcut things but you CAN actually mount without the mapper shortcut which may be why it is working. (e.g. /dev/csaportal/root would be the "real" rather than "mapper" path to the same device.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ./curl -V showing fatal: open failed: No such file or directory manalisharmabe Solaris / OpenSolaris 9 09-09-2013 01:56 PM
slackware 14.0, chroot: failed to run command ‘/bin/bash’: No such file or directory rameshoty Slackware 6 10-18-2012 07:26 AM
[SOLVED] httpd: fatal: open failed: No such file or directory pliqui Solaris / OpenSolaris 9 08-02-2011 04:30 PM
how to read lsof output command many file open by root ??? b-RAM Linux - Newbie 2 10-05-2009 03:40 AM
fatal: open failed: No such file or directory xpucto Solaris / OpenSolaris 8 09-08-2007 02:26 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration