-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
The details provided by the fact under mounts yields the /dev/mapper/- for the device details.
I happened to come across an issue where I needed to dynamically create a new filesystem across SUSE, RH, and CentOS where the VGs names vary drastically (system,rootvg,vgroot,centos) for the / partition.
Using the mountpoints fact, I extracted the / vg with
Facter.value(:mountpoints)['/']['device'].split(' ')[0].split('/')[3].split('-')[0]
and the LV with
Facter.value(:mountpoints)['/']['device'].split(' ')[0].split('/')[3].split('-')[1]
Would it make any sense to do this within the mountpoints to provide that detail for LVM operations using mountpoints?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels