Ansible_LVM_Creation

Ansible_LVM_Creation

LVM creation using playbook.

Lab setup:-

Ansible Server:- 192.168.40.147 feenixdv
Node IP:- 192.168.40.148 web2

Task:-

Create LVM with below information.

Physical Volume:- /dev/sdb1, /dev/sdb2( Must Present)
Volume Group:- Vg0
Logical Volume:- lv0
File system:- EXT4
Mount point:- /data

Node setting:-

IP:- 192.168.40.146
Disk information:-
[root@web1 ~]# fdisk -l /dev/sdb
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     2099199     1048576   83  Linux
/dev/sdb2         2099200     4196351     1048576   83  Linux  

 

Playbook look like

Run playbook.

On Target node "192.168.40.146" we can see all action done.

yes

Download Ansible file.

 

Leave a Reply

Your email address will not be published. Required fields are marked *