Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed: executed command 'swapoff' before unmount swap partion. #152

Merged
merged 1 commit into from
Aug 25, 2016

Conversation

MemberIT
Copy link
Contributor

Bugfix: exec "swapoff for '${mount_title}'" must be applied before unmount swap partition.
Part of puppet report without bugfix:

Notice: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Mount[/dev/default/swap]/ensure: undefined 'ensure' from 'unmounted'
Info: Computing checksum on file /etc/fstab
Info: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Mount[/dev/default/swap]: Scheduling refresh of Exec[swapoff for '/dev/default/swap']
Notice: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Filesystem[/dev/default/swap]/ensure: removed
Error: Execution of '/sbin/dmsetup remove default-swap' returned 1: device-mapper: remove ioctl on default-swap failed: Device or resource busy
Command failed
Error: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Logical_volume[swap]/ensure: change from present to absent failed: Execution of '/sbin/dmsetup remove default-swap' returned 1: device-mapper: remove ioctl on default-swap failed: Device or resource busy
Command failed
Notice: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Exec[swapoff for '/dev/default/swap']/returns: executed successfully
Notice: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Exec[swapoff for '/dev/default/swap']: Triggered 'refresh' from 1 events

Part of puppet report with bugfix:

Info: Applying configuration version '1463668281'
Notice: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Exec[swapoff for '/dev/default/swap']/returns: executed successfully
Info: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Exec[swapoff for '/dev/default/swap']: Scheduling refresh of Mount[/dev/default/swap]
Notice: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Mount[/dev/default/swap]/ensure: undefined 'ensure' from 'unmounted'
Info: Computing checksum on file /etc/fstab
Notice: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Mount[/dev/default/swap]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Filesystem[/dev/default/swap]/ensure: removed
Notice: /Stage[main]/Lvm/Lvm::Volume_group[default]/Lvm::Logical_volume[swap]/Logical_volume[swap]/ensure: removed

@hunner hunner merged commit 5b3632a into puppetlabs:master Aug 25, 2016
cegeka-jenkins pushed a commit to cegeka/puppet-lvm that referenced this pull request Oct 23, 2017
…rtition

fixed: executed command 'swapoff' before unmount swap partion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants