LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2021, 09:39 PM   #1
dallas_cowboys
LQ Newbie
 
Registered: Apr 2021
Posts: 23

Rep: Reputation: Disabled
Arrow systemctl - lvm2-activation-service not found ?


hi why is lvm2-activation not found ? is it normal for it to be inactive , does that mean my "encryption" is not working


https://ibb.co/N36MB2m


https://ibb.co/bbgdmmk

any help would be great. thanks.
 
Old 04-08-2021, 09:09 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,830

Rep: Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022
Quote:
Originally Posted by dallas_cowboys View Post
hi why is lvm2-activation not found ? is it normal for it to be inactive , does that mean my "encryption" is not working

https://ibb.co/N36MB2m

https://ibb.co/bbgdmmk

any help would be great. thanks.
The "lvm2-activation" service activates LVM volumes for use by the system from what I understand, so I'm not sure what it has to do with "encryption" (unless you have actually encrypted an LVM volume of course).

In any case, the most likely reason for the "not-found" message from systemctl is the service has been deleted or moved for some reason. You'll have to search for a file named "lvm2-activation.service" and see if it exists. If you are not using LVM, then you can just ignore it though.

The link listed below might also be of use:
https://serverfault.com/questions/94...ile-is-present
 
Old 04-09-2021, 05:13 PM   #3
dallas_cowboys
LQ Newbie
 
Registered: Apr 2021
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
The "lvm2-activation" service activates LVM volumes for use by the system from what I understand, so I'm not sure what it has to do with "encryption" (unless you have actually encrypted an LVM volume of course).

In any case, the most likely reason for the "not-found" message from systemctl is the service has been deleted or moved for some reason. You'll have to search for a file named "lvm2-activation.service" and see if it exists. If you are not using LVM, then you can just ignore it though.

The link listed below might also be of use:
https://serverfault.com/questions/94...ile-is-present
the lvm is encrypted.
do you know how i can get it back

i will give sudo systemctl start lv2-activation.service ?
 
Old 04-10-2021, 12:35 PM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,830

Rep: Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022
Systemd simply creates a symlink to the actual .service file for said service in the /etc/systemd/system/ directory. Therefore if the .service file itself has been deleted in the /usr/lib/systemd/ or the /lib/systemd/system/ directory, then the symlink becomes orphaned and therefore points to nothing. In which case, running sudo systemctl start lv2-activation.service won't work or do anything in that case - that's why I asked you to search for the .service file concerned. If the .service file in question has simply just been moved for some reason, then you could move it back to where the symlink is pointing to and that should do the trick. But I get the feeling said .service file simply doesn't exist at all.

What exactly do you mean by "do you know how i can get it back"?
Do you actually have any LVM volumes?
If so, can you mount your LVM volume(s)?

How about you post the output of the command below in CODE tags along with answers to the above questions, and we'll go from there;

Code:
lsblk -f
 
1 members found this post helpful.
Old 04-11-2021, 01:40 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,893
Blog Entries: 10

Rep: Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023Reputation: 5023
Quote:
Originally Posted by dallas_cowboys View Post
the lvm is encrypted.
do you know how i can get it back

i will give sudo systemctl start lv2-activation.service ?
You cannot access an encrypted partition? Is that your actual problem?

In any case, that's the 2nd time you have a typo in your command. Please be precise.

FWIW, I have a (working) encrypted LVM volume but no LVM activation service.

Have a look at
Code:
systemctl
to see what you got.

Possibly
Code:
systemctl | grep crypt
systemctl | grep lvm
 
Old Yesterday, 08:20 PM   #6
dallas_cowboys
LQ Newbie
 
Registered: Apr 2021
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
Systemd simply creates a symlink to the actual .service file for said service in the /etc/systemd/system/ directory. Therefore if the .service file itself has been deleted in the /usr/lib/systemd/ or the /lib/systemd/system/ directory, then the symlink becomes orphaned and therefore points to nothing. In which case, running sudo systemctl start lv2-activation.service won't work or do anything in that case - that's why I asked you to search for the .service file concerned. If the .service file in question has simply just been moved for some reason, then you could move it back to where the symlink is pointing to and that should do the trick. But I get the feeling said .service file simply doesn't exist at all.

What exactly do you mean by "do you know how i can get it back"?
Do you actually have any LVM volumes?
If so, can you mount your LVM volume(s)?

How about you post the output of the command below in CODE tags along with answers to the above questions, and we'll go from there;

Code:
lsblk -f

NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1
│ vfat 1A42-B46C 505.9M 1% /boot/efi
├─sda2
│ ext2 6c1d28c4-16dd-42b7-988b-adf066809db8 387.3M 13% /boot
└─sda3
crypto 66f162fb-2400-4cd7-80bf-b81905e0692e
└─sda3_crypt
LVM2_m l0bbFy-tVWA-pBXF-nuU0-yQZw-rAS3-75k3OC
├─user--vg-root
│ ext4 c538699f-9979-4160-9bd7-41cec4e666aa 97G 10% /
└─user--vg-swap_1
swap ea217d25-6475-4323-bfc4-ad4056b5b666 [SWAP]
 
Old Yesterday, 08:22 PM   #7
dallas_cowboys
LQ Newbie
 
Registered: Apr 2021
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
You cannot access an encrypted partition? Is that your actual problem?

In any case, that's the 2nd time you have a typo in your command. Please be precise.

FWIW, I have a (working) encrypted LVM volume but no LVM activation service.

Have a look at
Code:
systemctl
to see what you got.

Possibly
Code:
systemctl | grep crypt
systemctl | grep lvm
i figured that if the LVM activation service wasn't running that something was wrong with my encryption eh
perhaps it is working in disks it appear to be working anyways. anyways i posted the output in the above post..
thanks for the help and replies. much appreciated
 
Old Yesterday, 08:28 PM   #8
dallas_cowboys
LQ Newbie
 
Registered: Apr 2021
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
You cannot access an encrypted partition? Is that your actual problem?

In any case, that's the 2nd time you have a typo in your command. Please be precise.

FWIW, I have a (working) encrypted LVM volume but no LVM activation service.

Have a look at
Code:
systemctl
to see what you got.

Possibly
Code:
systemctl | grep crypt
systemctl | grep lvm
systemctl | grep crypt
dnscrypt-proxy.service loaded active running DNSCrypt client proxy
systemd-cryptsetup@sda3_crypt.service loaded active exited Cryptography Setup for sda3_crypt
system-systemd\x2dcryptsetup.slice loaded active active system-systemd\x2dcryptsetup.slice
dnscrypt-proxy.socket loaded active running dnscrypt-proxy listening socket
cryptsetup.target loaded active active Local Encrypted Volumes


__________________________


systemctl | grep lvm
lvm2-monitor.service loaded active exited Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
lvm2-pvscan@254:0.service loaded active exited LVM event activation on device 254:0
system-lvm2\x2dpvscan.slice loaded active active system-lvm2\x2dpvscan.slice
lvm2-lvmpolld.socket loaded active listening LVM2 poll daemon socket
 
Old Yesterday, 08:29 PM   #9
dallas_cowboys
LQ Newbie
 
Registered: Apr 2021
Posts: 23

Original Poster
Rep: Reputation: Disabled
any help would be great and thanks for all the help so far !
 
Old Today, 04:39 AM   #10
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,830

Rep: Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022Reputation: 2022
When posting command output, using CODE tags make it much easier to read and separates comments from command output. Please use CODE tags in future when posting command output like below, so it looks like this:

Code:
NAME FSTYPE LABEL UUID                                   FSAVAIL FSUSE% MOUNTPOINT
sda                                                                     
├─sda1
│    vfat         1A42-B46C                               505.9M     1% /boot/efi
├─sda2
│    ext2         6c1d28c4-16dd-42b7-988b-adf066809db8    387.3M    13% /boot
└─sda3
     crypto       66f162fb-2400-4cd7-80bf-b81905e0692e                  
  └─sda3_crypt
     LVM2_m       l0bbFy-tVWA-pBXF-nuU0-yQZw-rAS3-75k3OC                
    ├─user--vg-root
    │  ext4         c538699f-9979-4160-9bd7-41cec4e666aa       97G    10% /
    └─user--vg-swap_1
       swap         ea217d25-6475-4323-bfc4-ad4056b5b666                 [SWAP]
In any case, it looks to me like you have LVM volumes within an encrypted partition, but your LVM volume your root filesystem is on is in-fact mounted. Therefore you must be able to decrypt your encrypted partition (sda3).

It also appears from your comments above that you can in-fact unlock your encrypted partition.

So what is the actual problem here?
What isn't working for you?

As I'm not sure what the problem here is, to be honest with you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Failed to start mount-local.service: Unit not found. ( When trying to start the systemctl servive) lanz80 Linux - Server 1 06-29-2019 05:04 PM
[SOLVED] sendmail constant 28% cpu & systemctl status sendmail = service not found switcher1 Linux - Newbie 13 03-01-2019 02:14 PM
systemctl status postgresql-tst.service starts the service if service is stopped MarianForums Linux - Newbie 7 11-03-2018 03:02 PM
Restart systemctl*daemon​ - systemctl command not found cjosephl Linux - Newbie 7 11-11-2017 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:05 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