LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-30-2019, 04:02 PM   #1
grepo
LQ Newbie
 
Registered: Oct 2019
Posts: 10

Rep: Reputation: Disabled
PV is using old PV header


Hello,

since I upgraded Fedora 30 to Fedora 31 I receive warning when running lvs:

WARNING: PV /dev/md4 in VG vg02 is using an old PV header, modify the VG to update.

How should the VG be modified? I cannot find anything relevant.

Thanks

Marek
 
Old 10-30-2019, 04:19 PM   #2
grepo
LQ Newbie
 
Registered: Oct 2019
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hello,

just found out:

vgck --updatemetadata vg02

Marek
 
3 members found this post helpful.
Old 10-30-2019, 06:49 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Thanks for posting back - wonder if I'll remember this should I need it ...
 
Old 10-14-2020, 04:24 PM   #4
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Rep: Reputation: 34
Still Relevant!

I did this fix just now on an Ubuntu 20.04.1 install that's been upgrading along since Ubuntu 16.04 when the VG was first created. Worked flawlessly.
 
Old 11-14-2020, 09:48 AM   #5
larrymeditates
LQ Newbie
 
Registered: Oct 2014
Posts: 29

Rep: Reputation: Disabled
Didn't work for me

I have the same issue but when I tried running vgck --updatemetadata vg02 I got the message, "permission denied." Can you explain how you did this? I'm attaching a screenshot of the result of this.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-11-14 07-43-37.png
Views:	949
Size:	248.6 KB
ID:	34567  
 
Old 11-14-2020, 10:09 PM   #6
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Try running it as root.
 
Old 11-15-2020, 12:19 PM   #7
larrymeditates
LQ Newbie
 
Registered: Oct 2014
Posts: 29

Rep: Reputation: Disabled
How to fix old PV header warning

I've attached a picture of the message I get on startup where I get a warning about an old PV header. I'm also attaching a screenshot of the message I get when I try fixing this. I ran the program as root but it didn't work. Can you tell me how to fix this? Thanks!

Last edited by larrymeditates; 11-15-2020 at 12:24 PM. Reason: Can't figure out how to insert attachments in message
 
Old 11-15-2020, 02:44 PM   #8
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by larrymeditates View Post
I have the same issue but when I tried running vgck --updatemetadata vg02 I got the message, "permission denied." Can you explain how you did this? I'm attaching a screenshot of the result of this.
run it as root or use sudo
 
Old 11-15-2020, 05:38 PM   #9
larrymeditates
LQ Newbie
 
Registered: Oct 2014
Posts: 29

Rep: Reputation: Disabled
Ran as root and didn't work

I ran it as root and got this message:

Cannot process volume group vg02

I'm attaching the original warning if that helps.
Attached Thumbnails
Click image for larger version

Name:	IMG-2660.jpg
Views:	1104
Size:	283.4 KB
ID:	34587  
 
Old 11-15-2020, 07:00 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
You need to make an effort to understand commands you are running on your system. Blindly using commands can lead to fiasco - you're lucky in this case it merely failed.
Check the manpage - it needs your vg as mentioned in the messages.
 
Old 11-30-2020, 03:21 PM   #11
thekillerbean
Member
 
Registered: Jan 2002
Location: Melbourne, Australia
Distribution: Ubuntu 22.04 (Jammy)
Posts: 92

Rep: Reputation: 16
Quote:
Originally Posted by larrymeditates View Post
I ran it as root and got this message:

Cannot process volume group vg02

I'm attaching the original warning if that helps.
You need to take special care you understand what you are doing when it comes to hard drives. As @syg00 said, Copying and pasting without an understanding what the command(s) do could render your system inoperable - or even worse, data loss!

You Volume Group is listed in the warning: ubuntu-vg

Code:
vgck --updatemetadata ubuntu-vg
Attached Thumbnails
Click image for larger version

Name:	Selection_00965.png
Views:	290
Size:	109.6 KB
ID:	34719  
 
  


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
MAC header Incorrect and extra 2 bytes seen in Ethernet header pjlnaveen Linux - Networking 1 04-29-2016 05:13 AM
[SOLVED] Amavis: invalid header: all-whitespace header field deathsfriend99 Linux - Server 2 02-16-2012 09:41 AM
Want to add data in the header field of tcp/ip header Maitrikkshah Linux - Networking 1 08-06-2011 06:07 AM
How to check missing header files included from another header file adisan82 Linux - Software 1 01-28-2011 03:57 AM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 02:24 AM

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

All times are GMT -5. The time now is 02:59 PM.

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