LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-05-2022, 03:57 PM   #1
roelvdh
LQ Newbie
 
Registered: Aug 2018
Location: Netherlands
Distribution: ClearOS
Posts: 26

Rep: Reputation: Disabled
LVM: Vgextend cannot find correctly created PV


I installed a new PV on a partition in a USB flash drive:

Quote:
[root@dotter39 ~]# pvcreate /dev/sdf2
Physical volume "/dev/sdf2" successfully created.
The PV seemed to be there:

Quote:
[root@dotter39 ~]# pvs
PV VG Fmt Attr PSize PFree
.... .... ... ... ... ...
/dev/sdf2 lvm2 --- <887,81g <887,81g
However, Vgextend cannot find it:

Quote:
[root@dotter39 ~]# vgextend COMMS /dev/sdf2
Failed to find PV /dev/sdf2
What could possibly go wrong here?

Edit: Tried pvchange:
Quote:
[root@dotter39 ~]# pvchange -x y /dev/sdf2
Allocatability not supported by orphan lvm2 format PV /dev/sdf2
Physical volume /dev/sdf2 not changed
0 physical volumes changed / 1 physical volume not changed
The PV is not allocatable according to pvdisplay:
Quote:
"/dev/sdf2" is a new physical volume of "<887,81 GiB"
--- NEW Physical volume ---
PV Name /dev/sdf2
VG Name
PV Size <887,81 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID vHWlRK-E92J-bYYM-5aFC-JRIC-eo3e-h8xV71
I have put an ext4 fs on /dev/sdf2, though

Last edited by roelvdh; 04-06-2022 at 03:24 PM.
 
Old 04-07-2022, 05:18 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
Quote:
Originally Posted by roelvdh View Post
The PV is not allocatable according to pvdisplay:

I have put an ext4 fs on /dev/sdf2, though
You've done what? Written a filesystem to a partition that's supposed to be used as an LVM Physical Volume?!?
 
Old 04-08-2022, 01:57 AM   #3
roelvdh
LQ Newbie
 
Registered: Aug 2018
Location: Netherlands
Distribution: ClearOS
Posts: 26

Original Poster
Rep: Reputation: Disabled
I knew it made no sense but just followed the "format PV /dev/sdf2" line of pvchange.
Edit: The problem is not lvm2 but is in the partition table. Strange, as using gdisk did not generate any errors while making the partition. Problem solved.

Last edited by roelvdh; 04-08-2022 at 06:53 PM.
 
  


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
vgextend error lobsang Linux - Networking 1 09-10-2017 09:58 PM
Vgextend Not Extending Robbot Linux - Newbie 6 08-06-2017 06:57 PM
vgextend - lvm resizing pedenski Linux - Newbie 3 05-25-2013 12:35 AM
[LVM] Difference between vgimport e vgextend antolepore Linux - Software 1 07-13-2012 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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