I need to set up a list of volume groups. for each volume group there will be an attribute name and an attribute state. under each volume group is a list of one or more volumes. For each volume, there are attributes name, size, file system type, and mount point. Under each volume is a list of one or more disks. for each disk there are attributes bdevice and cdevice to indicate /dev/sda or /dev/sda1.
but this doesn’t work. Lastly, I would like a technique to know how many elements of disks there are because if there is only one disk I do not want to use lvm.
- For each volume group there will be an attribute name and an attribute
state
- Under each volume group is a list of one or more volumes.
- For each volume, there are attributes name,
size, file system type, and mount point
- Under each volume is a list of one or more disks.
- for each disk there are attributes bdevice and cdevice to
indicate /dev/sda or /dev/sda1.
Is there a way to walk volumes and disk lists? I can only find examples of walking disks and volumes with the subelements construct. Sorry there is both a disk and disks list construct.