Unable to access swap disk
Environment
- Red Hat Enterprise Linux 6.0
- Multipath
Issue
- Attempting
swapon /dev/sda1results inDevice not found, despite fdisk and parted both showing the device and partition.
Resolution
- Commented out the blacklist section, restarted multicast, and adjusted the reference to the device using the multipath name instead of /dev/sda.
Root Cause
- The swap device was on a multipath consisting of one path, and the multipath wwid was being blacklisted.
Diagnostic Steps
- Examined
multipath -lland saw:
mpathd (3600508b1001030393941334242301000) dm-0 HP,LOGICAL VOLUME
size=279G features='1 queue\_if\_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
`- 2:0:0:1 sda 8:0 active ready running
- Examined
/etc/multipath.confand saw:
blacklist {
wwid 3600508b1001030393941334242301000/
}
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
