Re: I've done pvcreate to 4 of these drives but...

gene heskett <[email protected]> Thu, 31 Jul 2025 11:52:33 -0400
Newsgroups gmane.comp.archivers.amanda.user
Message-ID <[email protected]>
On 3/9/25 15:06, Lou Hafer wrote:
> Gene,
>
>     Never actually done this, but it looks to me like you'd need to do 
> the following (tailor to your specifics)
>
>     vgchange --resizeable  <vgname>
>     vgextend  < ... options ... > <vgname> <pvname> <pvname> ...
>
> Or just blow away the volume group and recreate it
>
>     vgcreate < ... options ... > <vgname> <pvname> <pvname> ...
>
> No experience to comment on zfs vs. ext4.
Well since OpenZFS was made read-only by the author a year ago, and no 
printable pdf of the docs exists on the github site. I'm assuming it is 
no longer a viable port for any stuff running a recent kernel.  So I'm 
no longer investigating how useful it may be.

Since /dev/sde had a gpt table on it, pvcreate refused it, I blew away 
the 1st 1000 sectors from /dev/zero, which made it available to 
pvcreate, and pvscan now reports:
gene@amanda:~$ sudo pvscan
[sudo] password for gene:
   PV /dev/sdb   VG my_volume_group   lvm2 [<3.73 TiB / 0    free]
   PV /dev/sdd   VG my_volume_group   lvm2 [<3.73 TiB / 0    free]
   PV /dev/sdc   VG my_volume_group   lvm2 [<3.64 TiB / 0    free]
   PV /dev/sda   VG my_volume_group   lvm2 [<3.64 TiB / 9.52 GiB free]
   PV /dev/sde                        lvm2 [<3.64 TiB]
   Total: 5 [<18.37 TiB] / in use: 4 [<14.73 TiB] / in no VG: 1 [<3.64 TiB]
gene@amanda:~$

So I obviously need to redo the vgcreate, and due to the relatively low 
power of the bpi-m5 to do compression, I'd like to disable that which I 
read must be done at creation time but I get lost in a man page that 
does not want to make that easily done.  What I'd like to do is pvcreate 
only around 3.5Tib of the 3.6Tib, leaving the drive with some unused 
space it can allocate in place of a failed sector. I can write a script 
that blows it all away to get a clean start, but how do I both do that 
limit, and disable the compression at the same time.  Another $200 will 
get another big SSD,
& $33 will buy me a 1T spinning rust lappy drive if 250G isn't enough.  
An example pvcreate line would be a huge help.

These are tires I have never kicked yet. ;o)>  Thanks Lou.
>
>             Lou
>
>
> On 2025-03-09 10:18 a.m., gene heskett wrote:
>> ISTR doing that. And finally have it mounted and accessible. but not 
>> at full size, so I need to resize it to use all 4 drives.
>>
>> How is that done? No data except lost+found exist ATM, zfs wasn't 
>> available but ext4 was. Never used zfs before, does it have 
>> advantages for this?
>
> .

Cheers, Gene Heskett, CET.
-- 
"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis