11.2. Adding tags to LVM objects
You can add tags to LVM objects to group them by using the --addtag
option with various volume management commands.
Conditions préalables
-
The
lvm2
package is installed.
Procédure
To add a tag to an existing PV, use:
# pvchange --addtag <@tag> <PV>
To add a tag to an existing VG, use:
# vgchange --addtag <@tag> <VG>
To add a tag to a VG during creation, use:
# vgcreate --addtag <@tag> <VG>
To add a tag to an existing LV, use:
# lvchange --addtag <@tag> <LV>
To add a tag to a LV during creation, use:
# lvcreate --addtag <@tag> ...