Create/mount logical volume;Add lvm2 dependency
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		| @@ -1,6 +1,24 @@ | ||||
| - name: Create volume group | ||||
|   community.general.lvg: | ||||
|     vg: longhorn_vg | ||||
|     pvs:  | ||||
|       - /dev/sdb | ||||
|     pvresize: yes | ||||
|  | ||||
| - name: Create logical volume | ||||
|   community.general.lvol: | ||||
|     vg: longhorn_vg | ||||
|     lv: longhorn_lv | ||||
|     size: 100%VG | ||||
|  | ||||
| - name: Create filesystem | ||||
|   community.general.filesystem: | ||||
|     dev: /dev/mapper/longhorn_vg-longhorn_lv | ||||
|     fstype: ext4 | ||||
|  | ||||
| - name: Mount dynamic disk | ||||
|   ansible.posix.mount: | ||||
|     path: /mnt/blockstorage | ||||
|     src: /dev/sdb | ||||
|     src: /dev/mapper/longhorn_vg-longhorn_lv | ||||
|     fstype: ext4 | ||||
|     state: mounted | ||||
|   | ||||
		Reference in New Issue
	
	Block a user