pvmove or lvcreate in a cluster fails with "device-mapper: create ioctl failed: Device or resource busy" in RHEL 5 or 6
Issue
- Cannot pvmove a clvm/gfs disk
- I tried to create a mirrored cluster logical volume while
cmirror
wasn't running. I started it, but volume creation still failed with "device-mapper: create ioctl failed: Device or resource busy". - We are testing GFS in our cluster. One GFS1 and GFS2 file systems were created and mounted on all the cluster nodes. We're trying to do a "pvmove" process but it's failing with the message:
[root@]\# pvmove -v /dev/mapper/mpath70p1
Finding volume group "vggfs"
Executing: /sbin/modprobe dm-log-clustered
Archiving volume group "vggfs" metadata (seqno 17).
Creating logical volume pvmove0
Moving 2560 extents of logical volume vggfs/lvgfs1
Moving 2558 extents of logical volume vggfs/lvgfs2
Updating volume group metadata
Error locking on node node1.example.com: device-mapper: create ioctl failed: Device or resource busy
Error locking on node node2.example.com: device-mapper: create ioctl failed: Device or resource busy
Temporary pvmove mirror activation failed.
Creating volume group backup "/etc/lvm/backup/vggfs" (seqno 19).
Environment
- Red Hat Enterprise Linux (RHEL) 5 or 6 with the Resilient Storage Add On
cmirror
lvm2-cluster
locking_type = 3
in/etc/lvm/lvm.conf
- One or more volume groups with the clustered attribute set
- Using
pvmove
OR creating a mirrored logical volume withlvcreate
/lvconvert
in a clustered volume group
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.