Re: [linux-lvm] What to do about new lvm messages

2020-08-24 Thread David Teigland
On Sat, Aug 22, 2020 at 04:36:27AM -0700, L A Walsh wrote:
> pvcreate  -M2 --pvmetadatacopies 2 /dev/sda1
>   Failed to clear hint file.
> So why am I getting a message about not clearing a hint file (running s root)

I'm guessing that no commands have permission to use /run/lvm/hints, so
they just skip it.  But, this is one place printing a warning about it.
I'll remove the warning.  Run 'pvs', and check if /run/lvm/hints exists.
If not, you might want to look at permission issues.

> and how do I modify a VG that I don't want to make any modifications to?

To fix that header you can run 'vgck --updatemetadata Backup'.

> From an online man page, I should have been able to use -ff to recreate
> a pv over the top of a preexisting one, but that didn't seem to work.  I
> got:
>  pvcreate -ff -M2 --pvmetadatacopies 2 /dev/sda1
>   Failed to clear hint file.
>   WARNING: PV /dev/sdd1 in VG Backup is using an old PV header, modify
> the VG to update.
>   Cannot access VG Space with system ID Ishtar with unknown local system ID.
>   Device /dev/sda1 excluded by a filter.

You're not using system ID correctly.

> I also ran into a problem on how to tell vgcreate to use the whole pv.
> That was complicated by trying to specify my hostname as a system id:

>   Cannot access VG Space with system ID Ishtar with unknown local system ID.

The machine needs to have a system ID configured.  See lvmsysystemid(7)
and edit lvm.conf/lvmlocal.conf.  Then vgcreate will use the machine's
system for the new VG.  Using --systemid overrides the local value which
you don't want.

___
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



Re: [linux-lvm] What to do about new lvm messages

2020-08-22 Thread Stuart D Gathman

On Sat, 22 Aug 2020, L A Walsh wrote:


I am trying to create a new pv/vg/+lvs setup but am getting some weird messages

pvcreate  -M2 --pvmetadatacopies 2 /dev/sda1
 Failed to clear hint file.
 WARNING: PV /dev/sdd1 in VG Backup is using an old PV header, modify
the VG to update.
 Physical volume "/dev/sda1" successfully created.

So why am I getting a message about not clearing a hint file (running s root)


Because there is an ole PV header on sdd1


From an online man page, I should have been able to use -ff to

recreate a pv over
the top of a preexisting one, but that didn't seem to work.  I got:
pvcreate -ff -M2 --pvmetadatacopies 2 /dev/sda1
 Failed to clear hint file.
 WARNING: PV /dev/sdd1 in VG Backup is using an old PV header, modify


You wrote a new PV header on sda1 - but that didn't do diddly squat 
about the old one on sdd1.



the VG to update.
 Cannot access VG Space with system ID Ishtar with unknown local system ID.
 Device /dev/sda1 excluded by a filter.


The PV filter is excluding sda1.  Are you confused about what is on 
which sdx?



dd if=/dev/zero of=/dev/sda1 bs=4096 count=1
1+0 records in
1+0 records out
4096 bytes (4.1 kB, 4.0 KiB) copied, 0.000175409 s, 23.4 MB/s


I hope sda1 was really what you think it was.

What is on sdd1?  None of your listings examine it.

___
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/