Rex::C...s::LVM(3pm)

πŸ’– Rex::Commands::LVM β€” the manual, but make it make sense πŸ’–

okay so bestie, welcome to Rex::Commands::LVM, part of the User Contributed Perl Documentation ✨ this is the page for the Rex::C...s::LVM man page (yeah the title gets abbreviated like that, it's giving mysterious) 🌸


✨ NAME ✨

Rex::Commands::LVM β€” Get LVM Information 🫢


🌈 DESCRIPTION 🌈

With this module you can get information of your lvm setup. literally that's the whole vibe, it's an information-getter πŸ’…

Version <= 1.0: All these functions will not be reported. 🚨
⚠️ heads up bestie: All these functions are not idempotent. no cap. they're read-y, not write-y, so don't expect them to politely do-the-same-thing-twice. periodt.

πŸŽ€ SYNOPSIS πŸŽ€

use Rex::Commands::LVM;

my @physical_devices = pvs;
my @volume_groups = vgs;
my @logical_volumes = lvs;

look at that. three little calls and you know everything about your volumes. obsessed. πŸ‘‘


πŸ¦‹ EXPORTED FUNCTIONS πŸ¦‹

pvs πŸ’«

Get Information for all your physical volumes. every single one. she's thorough.

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 Information for all your volume groups. the middle-management layer of LVM, and she ate. πŸ’…

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 Information for all your logical volumes. the final boss. the main character energy of the storage stack. πŸ’œ

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 page bestie, no skipped sections, no missing functions, we kept every last crumb πŸ“

cute little sign-off: this beauty ships as perl v5.40.1, dated 2025-10-03, and the manpage itself answers to Rex::C...s::LVM(3pm) πŸŽ€ iykyk βœ¨πŸ’–

πŸ“¦ where this page comes from