-
Notifications
You must be signed in to change notification settings - Fork 36
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
Create lvm exclude filter #107
Changes from 5 commits
85e9cd1
3ad1bef
572ae79
a91af59
3643b61
5a61afb
1336b1f
3552a1b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
- name: Backup lvm.conf file | ||
copy: | ||
src: /etc/lvm/lvm.conf | ||
dest: /backup | ||
|
||
- name: Remove the existing LVM filter | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this fail if the pattern is not exist incase of deployment failure in middle before restore? |
||
shell: > | ||
sed -i /^filter/d /etc/lvm/lvm.conf | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,8 +63,10 @@ | |
when: gluster_infra_lvm is defined | ||
tags: | ||
- lvmconfig | ||
|
||
|
||
|
||
- name: Exclue LVM Filter rules | ||
import_tasks: lvm_exclude_filter.yml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be move to very first, otherwise blacklist mpath also will fail. |
||
|
||
#phase #1 | ||
- name: Create a vdo disk | ||
import_tasks: vdo_create.yml | ||
|
@@ -101,7 +103,10 @@ | |
when: gluster_infra_mount_devices is defined and gluster_infra_mount_devices is not none | ||
tags: | ||
- mount | ||
|
||
|
||
- name: Re-generate new LVM Filrer rules | ||
import_tasks: regenerate_new_lvm_filter_rules.yml | ||
|
||
# set kernel boot params for lvm volumes | ||
- name: Configure lvm kernel parameters | ||
import_tasks: lvm_kernelparams.yml | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
- name: Regenerate new LVM filter rules | ||
shell: > | ||
vdsm-tool config-lvm-filter -y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this directory be available? isn't it better to backup to same location with different name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part of the code is not required. This information is added in the doc, as the user is prone to make such mistakes while editing manually, as this is covered in ansible, this code block is safe to be ignored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@satheesaran , meaning backup is not necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done