how to mount LVM partition
Noah
noah-list at enabled.com
Tue Jul 14 00:01:21 UTC 2020
On 7/13/20 1:12 PM, Robert Heller wrote:
> 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).
>
Robert,
you raise a good point - that might be what happened is the drive is wipped.
noah at nuc2:~$ sudo fdisk -l | grep sdb
Disk /dev/sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
/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 vgscan -v
No volume groups found.
noah at nuc2:~$ sudo vgchange -ay -v
No volume groups found.
Cheers,
Noah
More information about the ubuntu-users
mailing list