Skip to content

This playbook helps you create partitions, physical volumes, volume groups, logical volumes, and extend existing partitions to a volume group

License

Notifications You must be signed in to change notification settings

fat2fast/ansible-volume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup partition and Volume Group , Extend Volume Group

This playbook helps you create partitions, physical volumes, volume groups, logical volumes, and extend existing partitions to a volume group

Requirements

sudo apt update
sudo apt install lvm2

Role Variables

  • devices: A list of disks to be partitioned.
  • vg_name: The name of the volume group.
  • lv_name: The name of the logical.
  • mount_point : The path where the logical volume will be mounted.

Example Playbook

Initialize Volume Group

Run the following command to create a new volume group:

ansible-playbook volume_group_init.yml -i your_inventory.ini

Extend Volume Group

Run the following command to extend an existing volume group:

ansible-playbook volume_group_extend.yml -i your_inventory.ini

License

Detail

Author Information

Fat2Fast

About

This playbook helps you create partitions, physical volumes, volume groups, logical volumes, and extend existing partitions to a volume group

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published