Bug 1071550 - OSError: [Errno 2] No such file or directory: '/dev/dm-4'
Summary: OSError: [Errno 2] No such file or directory: '/dev/dm-4'
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3d0d820ff64a8128dbb88ed0d41...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-01 16:06 UTC by morgan read
Modified: 2014-03-03 15:55 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-03-03 15:55:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (347.65 KB, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details
File: anaconda.log (3.24 KB, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details
File: environ (404 bytes, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details
File: install.log (23.85 KB, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details
File: lsblk_output (2.78 KB, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details
File: nmcli_dev_list (4.36 KB, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details
File: os_info (375 bytes, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details
File: program.log (53.51 KB, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details
File: storage.log (163.43 KB, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details
File: syslog (87.49 KB, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details
File: ifcfg.log (1.61 KB, text/plain)
2014-03-01 16:06 UTC, morgan read
no flags Details

Description morgan read 2014-03-01 16:06:26 UTC
Description of problem:
something to do with /dev/md127, but I changed that in fstab to LABEL=250GB_RAID1, so I don't know...

Version-Release number of selected component:
anaconda-20.25.15-1

The following was filed automatically by anaconda:
anaconda 20.25.15-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/block/__init__.py", line 196, in getNameFromDmNode
    stat = _os.stat(dm_node)
  File "/usr/lib/python2.7/site-packages/blivet/devicelibs/dm.py", line 53, in name_from_dm_node
    name = block.getNameFromDmNode(dm_node)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 2287, in resolveDevice
    dm_name = devicelibs.dm.name_from_dm_node(devspec[5:])
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 3129, in parseFSTab
    options=options)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 3052, in findExistingInstallations
    (mounts, swaps) = parseFSTab(devicetree, chroot=ROOT_PATH)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 427, in reset
    self.roots = findExistingInstallations(self.devicetree)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 142, in storageInitialize
    storage.reset()
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 192, in run
    threading.Thread.run(self, *args, **kwargs)
OSError: [Errno 2] No such file or directory: '/dev/dm-4'

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2020\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.11.10-301.fc20.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        20

Comment 1 morgan read 2014-03-01 16:06:30 UTC
Created attachment 869389 [details]
File: anaconda-tb

Comment 2 morgan read 2014-03-01 16:06:32 UTC
Created attachment 869390 [details]
File: anaconda.log

Comment 3 morgan read 2014-03-01 16:06:34 UTC
Created attachment 869391 [details]
File: environ

Comment 4 morgan read 2014-03-01 16:06:36 UTC
Created attachment 869392 [details]
File: install.log

Comment 5 morgan read 2014-03-01 16:06:38 UTC
Created attachment 869393 [details]
File: lsblk_output

Comment 6 morgan read 2014-03-01 16:06:40 UTC
Created attachment 869394 [details]
File: nmcli_dev_list

Comment 7 morgan read 2014-03-01 16:06:42 UTC
Created attachment 869395 [details]
File: os_info

Comment 8 morgan read 2014-03-01 16:06:43 UTC
Created attachment 869396 [details]
File: program.log

Comment 9 morgan read 2014-03-01 16:06:46 UTC
Created attachment 869397 [details]
File: storage.log

Comment 10 morgan read 2014-03-01 16:06:48 UTC
Created attachment 869398 [details]
File: syslog

Comment 11 morgan read 2014-03-01 16:06:50 UTC
Created attachment 869399 [details]
File: ifcfg.log

Comment 12 morgan read 2014-03-01 16:13:02 UTC
Oh, I see - I've fixed the /dev/md problem; now, I've got the /dev/dm problem...

I guess I might fix if the same way?

Linking in bugs 980267 and 975811 because these are obviously related.

Any suggestions welcome.

Comment 13 morgan read 2014-03-01 16:13:41 UTC
bug 980267
bug 975811

Comment 14 morgan read 2014-03-01 17:45:43 UTC
naming drives and referring to those names by LABEL= in fstab seems to fix both /dev/md and /dev/dm bugs - I guess people know this?

Comment 15 David Lehman 2014-03-03 15:55:46 UTC
device nodes named /dev/dm-<digit> and /dev/md<digit> are not suitable for use in /etc/fstab. You should either use the names of the devices (eg: /dev/mapper/vgname-lvname or /dev/md/root) or refer to them by some constant identifier (eg: label, UUID).

FWIW this is no longer a fatal error in F21, so even if you have these unusable device names in /etc/fstab the installation can still continue.


Note You need to log in before you can comment on or make changes to this bug.