Rex::Commands::LVM(3)

πŸ“¦ version 1.14.3, in nixos 26.05, nixpkgs unstable

✨ 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