Rex::Commands::LVM(3)
β¨ NAME β¨
okay so bestie, this is Rex::Commands::LVM(3) from the User Contributed Perl Documentation crew β itβs the page for Rex::Commands::LVM, aka Get LVM Information π
π¦ DESCRIPTION π¦
With this module you can get information about your LVM setup, periodt β¨
Heads up: in version <= 1.0, all these functions will not be reported. π
Also, all these functions are not idempotent β no cap, they do not play that βrun me twice and nothing changesβ game π
π SYNOPSIS π
use Rex::Commands::LVM;
my @physical_devices = pvs;
my @volume_groups = vgs;
my @logical_volumes = lvs;
π EXPORTED FUNCTIONS π
π pvs π
Get the info for all your physical volumes, bestie β every single one π
use Data::Dumper;
use Rex::Commands::LVM;
task "lvm", sub {
my @physical_volumes = pvs;
for my $physical_volume (@physical_volumes) {
say Dumper($physical_volume);
}
};
πΈ vgs πΈ
Get the info for all your volume groups β yes, all of them, weβre being thorough β¨
use Data::Dumper;
use Rex::Commands::LVM;
task "lvm", sub {
my @volume_groups = vgs;
for my $volume_group (@volume_groups) {
say Dumper($volume_group);
}
};
π¦ lvs π¦
Get the info for all your logical volumes β iconic behavior, honestly π
use Data::Dumper;
use Rex::Commands::LVM;
task "lvm", sub {
my @logical_volumes = lvs;
for my $logical_volume (@logical_volumes) {
say Dumper($logical_volume);
}
};
and thatβs the whole vibe check, bestie π«Ά signing off with perl v5.42.3, dated 2023-08-05, from Rex::Commands::LVM(3) π
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Rex 1.14.3
- nixpkgs unstable: perl5.42.3-Rex 1.14.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms