how to mount LVM partition

Robert Heller heller at deepsoft.com
Mon Jul 13 20:12:03 UTC 2020


At Mon, 13 Jul 2020 12:02:36 -0700 "Ubuntu user technical support,  not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:

> 
> Hi List People,
> 
> I am having trouble mounting the LVM drive on /dev/sdb5
> What am I doing wrong?
> 
> Device     Boot  Start       End   Sectors   Size Id Type
> /dev/sdb1         2048    499711    497664   243M 83 Linux
> /dev/sdb2       501758 976771071 976269314 465.5G  5 Extended
> /dev/sdb5       501760 976771071 976269312 465.5G 8e Linux LVM
> 
> noah at nuc2:~$ sudo apt install lvm2
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> lvm2 is already the newest version (2.03.07-1ubuntu1).
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 
> noah at nuc2:~$ sudo vgscan

What does sudo vgscan -v report?  Copy and paste the output here.

> noah at nuc2:~$ sudo vgscan --mknodes
> noah at nuc2:~$ sudo lvdisplay
> noah at nuc2:~$ sudo lvs
> noah at nuc2:~$ sudo pvscan
>    No matching physical volumes found

This suggests that /dev/sdb5 was never initialized or else wiped clean.

> noah at nuc2:~$ sudo vgscan
> noah at nuc2:~$ sudo vgchange -ay

What does sudo vgchange -ay -v report?  Copy and paste the output here.

Question: do you know for a fact that /dev/sdb5 is a physical volume of a 
volume group?  Do you know if this physical volume is the only physical volume 
of the volume group?  It is quite possible that the /dev/sdb5 partition type 
of /dev/sdb5 was set to Linux LVM and the partition was never initialized as a 
LVM Physical Volume or added to a LVM Volume Group.  Or if it was, it might 
have been removed from the LVM Volume Group (ala pvremove).

> noah at nuc2:~$ sudo lvscan
> 
> 
> Cheers
> 
> 

-- 
Robert Heller             -- 978-544-6933 Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
   




More information about the ubuntu-users mailing list