LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2023, 03:59 PM   #1
jackx2023
Member
 
Registered: Jan 2023
Posts: 32

Rep: Reputation: 12
Debian 12 - missing LVM tools


Hi All,

I did a fresh install of debian 12 using LVM as the partitioning scheme.

long story short, the installation went fine with no problems.

I typed a few LVM commands to check the status of my LVMs.

And none exist on the system.

apt shows that lvm2 is installed. I even did a reinstall of lvm2.

And still no lvm commands.

I use the find command to find pvdisplay, pvs, lvdisplay,etc

And none are found in the root system.

Has anyone experience this in debian 12?

I appreciate any feedback. Thanks
 
Old 06-16-2023, 04:27 PM   #2
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
If apt search doesn't find the packages you want, try apt-file search to search for the name of the binary you're looking for to find what package it's in.
 
Old 06-16-2023, 04:36 PM   #3
jackx2023
Member
 
Registered: Jan 2023
Posts: 32

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by enigma9o7 View Post
If apt search doesn't find the packages you want, try apt-file search to search for the name of the binary you're looking for to find what package it's in.
From this article it seems debian 10+ omits all sbin directories from the system PATH.

I fixed it by typing the code below from the answer in that article.

export PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH

And it work!!!

I also need to add this to my /etc/profile or the /root/.bashrc file.
 
Old 06-16-2023, 05:14 PM   #4
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Doubt you need to add it to /root/.bashrc because root path includes sbin, so those commands work with sudo. Its only user path that doesnt include it - I think. I think reboot command might be in that path too?
 
Old 06-17-2023, 04:38 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
Quote:
Originally Posted by enigma9o7 View Post
Its only user path that doesnt include it - I think.
I can confirm this.
 
Old 06-18-2023, 04:35 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,966

Rep: Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332
yes, it is now /usr/sbin, and in general regular users do not need /sbin (or /usr/sbin), it is intentionally not included in PATH (only for root). But if you want to change it you need to make it for yourself.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM - Missing device reappeared but still missing roelvdh Linux - Server 14 02-29-2020 12:38 AM
missing volume group + mdadm device during booting (Debian 10 software raid + lvm) jogyulas Linux - Software 1 12-22-2019 05:49 PM
Problem with LVM mirror and failed PV, can't recover -- Debian Squeeze lvm 2.02.66-5 Linux Ninja Linux - Server 2 06-02-2017 04:50 PM
Possible to change non-LVM to LVM? darthfoolish Linux - Software 2 08-01-2008 03:47 AM
To LVM or not to LVM? illtbagu Linux - Software 3 12-29-2003 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration