Re: [CentOS] mounting XFS RAID-1 disk partition that needs repair.

2021-11-23 Thread Fred
I'll take a look at these two ideas soon. Thanks!

On Tue, Nov 23, 2021 at 10:03 AM Simon Matter 
wrote:

> Hi,
>
> > I'm attempting to extract data from a HD that has a bunch of linux-raid
> > partitions, including one large one with data I need to save off the
> disk.
> >
> > I actually have two drives like that (both not from the same RAID pair),
> > and one of them I was successful in creating a MD device so I could mount
> > it RO and copy off a ton of data.
> >
> > the second one fails to mount, saying the XFS filesystem is corrupted.
> > Attempting to run XFS_repair I get a message that the filesystem is XFS-1
> > and I need an older version of XFS tools to do it.
>
> Are you sure the filesystem is really corrupt? Maybe it's only your kernel
> which doesn't understand the old XFS version?
>
> To use older xfs_repair, you can just download an older version like
> xfsprogs-2.9.4-1.el4.centos.x86_64.rpm, extract it to a directory and call
> the xfs_repair binary from the package.
>
> I'm not sure whether you need a matching xfs kernel module to run
> xfs_repair successfully.
>
> Regards,
> Simon
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mounting XFS RAID-1 disk partition that needs repair.

2021-11-23 Thread Simon Matter
Hi,

> I'm attempting to extract data from a HD that has a bunch of linux-raid
> partitions, including one large one with data I need to save off the disk.
>
> I actually have two drives like that (both not from the same RAID pair),
> and one of them I was successful in creating a MD device so I could mount
> it RO and copy off a ton of data.
>
> the second one fails to mount, saying the XFS filesystem is corrupted.
> Attempting to run XFS_repair I get a message that the filesystem is XFS-1
> and I need an older version of XFS tools to do it.

Are you sure the filesystem is really corrupt? Maybe it's only your kernel
which doesn't understand the old XFS version?

To use older xfs_repair, you can just download an older version like
xfsprogs-2.9.4-1.el4.centos.x86_64.rpm, extract it to a directory and call
the xfs_repair binary from the package.

I'm not sure whether you need a matching xfs kernel module to run
xfs_repair successfully.

Regards,
Simon

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-es] TPM 1.2 y encriptado con luks.

2021-11-23 Thread Eric Abreu
Hola Orkcu,

Gracias por tu respuesta. La configuración con Clevis and Tang no me va a
funcionar porque de acuerdo a la documentación oficial TPM 2.0 es un
requerimiento, y las computadoras que estoy usando únicamente soportan TPM
1.2 (
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/security_hardening/configuring-automated-unlocking-of-encrypted-volumes-using-policy-based-decryption_security-hardening).
Muchas gracias por compartir tu experiencia. Saludos

Eric

On Mon, Nov 22, 2021 at 9:50 PM orkcu via CentOS-es 
wrote:

> He estado trabajando con tuks pero no con TPM,  con TANG, siguiendo los
> manuales de redhat.He tenido dos problemas "oscuros", y creo que podria
> afertar no importa como las claves se almacenan, la primera es el tema de
> red.Si pasa que la configuracion de red para el kernel (por linea de
> commando con auxilio de dracut) y la configuración de interfaces con
> network manager difieren ( por ejemplo uso de alias, bonding, etc) puedes
> terminar con tremendo reguero una vez que el sistema está online. La
> solucion fue limpiar toda la configuración de red (usando ip command) antes
> de que el servicio NetworkManager arranque. El segundo problema, y todavia
> estoy trabajando en eso, es que existe un race condition con la particion
> swap si está encriptada y el key se obtiene por red, en estas condiciones,
> el proceso de inicio se bloquea. El problema parece estar en systemd y la
> solucion existe pero no para la version que viene en rhel8. Mi sugerencia
> para ti es que sigas un manual de redhat y que estes preparado para
> encontrar problemas si tu configuración o entorno se sale un poco de lo que
> es algo sencillo.Ya te digo, en mi caso he "perdido" una semana en el
> primer bateo, y ya llevo varios dias en el segundo, se aprende pero tienes
> que dedicarle tiempo.Ahh, y es casi seguro de que necesites dracut si la
> particion / está encriptada.SuerteRoger
>  Original message From: Eric Abreu 
> Date: 2021-11-22  5:47 p.m.  (GMT-05:00) To: centos-es@centos.org
> Subject: [CentOS-es] TPM 1.2 y encriptado con luks. Hola a todos,Alguien
> tiene experiencia configurando inicio automático en Centos conparticiones
> encriptadas con luks. He tratado de adaptar mi configuraciónsiguiendo los
> siguientes manuales:
> https://github.com/archont00/arch-linux-luks-tpm-boothttps://github.com/morbitzer/linux-luks-tpm-boothttps://github.com/gastamper/dracut-tpmHasta
> ahora todo bien para tomar control del dispositivo TPM 1.2
> contpm_takeownership-z. También he logrado generar la llave y guardarla en
> el TPM con tpm_nvdefiney tpm_nvwrite. El problema ocurre cuando trato de
> pasarle la clavecuando el sistema operativo pregunta en el inicio. He
> tratado de configurardracut siguiendo
> https://github.com/gastamper/dracut-tpm pero no he tenidoéxito. Me
> gustaría saber si alguien ya ha configurado TPM 1.2 en
> Centos.Gracias.___CentOS-es
> mailing listCentOS-es@centos.orghttps://
> lists.centos.org/mailman/listinfo/centos-es
> ___
> CentOS-es mailing list
> CentOS-es@centos.org
> https://lists.centos.org/mailman/listinfo/centos-es
>
___
CentOS-es mailing list
CentOS-es@centos.org
https://lists.centos.org/mailman/listinfo/centos-es


[CentOS] CentOS8 Docker: "repomd.xml parser error: Parse error at line" after enabling /etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo

2021-11-23 Thread John Pfuntner -X (jpfuntne - EASI LLC at Cisco) via CentOS
I'm having trouble with dnf repos in a centos:8 Docker container after I enable 
the continuous release repo:


  1.  docker pull centos:8
  2.  docker run -it centos:8 bash -i
  3.  From Docker container:
 *   dnf install -y 'dnf-command(config-manager)' && dnf config-manager 
--enable cr
 *   dnf update

The update results in:

Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - ContinuousRelease  

  43 kB/s | 8.3 kB 00:00
Error: Failed to download metadata for repo 'cr': repomd.xml parser error: 
Parse error at line: 66 (Opening and ending tag mismatch: meta line 0 and head
)

/etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo contains:

mirrorlist=http://mirrorlist.centos.org/?release=$releasever=$basearch=cr=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/cr/$basearch/os/

If I switch these around by commenting out mirrorlist and uncommenting baseurl, 
it works.

Is this a problem with a repo mirror?

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mounting XFS RAID-1 disk partition that needs repair.

2021-11-23 Thread Christopher Wensink
You could try downloading an ISO of knoppix, and boot from that with the 
drive installed, and use the xfs_repair tools from there without having 
to install other tools on the drive in question.


On 11/23/2021 8:45 AM, Fred wrote:

I'm attempting to extract data from a HD that has a bunch of linux-raid
partitions, including one large one with data I need to save off the disk.

I actually have two drives like that (both not from the same RAID pair),
and one of them I was successful in creating a MD device so I could mount
it RO and copy off a ton of data.

the second one fails to mount, saying the XFS filesystem is corrupted.
Attempting to run XFS_repair I get a message that the filesystem is XFS-1
and I need an older version of XFS tools to do it.

I'm running Centos-7 with whatever version of XFS tools comes with it,
according to 'yum list installed' it appears to be xfsprogs 4.5.0-22.el7.

I don't particularly want to install another, older, version of xfsprogs on
this system. can anyone suggest any other way to gain access to this disk
partition?

Thanks in advance!

Fred
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] mounting XFS RAID-1 disk partition that needs repair.

2021-11-23 Thread Fred
I'm attempting to extract data from a HD that has a bunch of linux-raid
partitions, including one large one with data I need to save off the disk.

I actually have two drives like that (both not from the same RAID pair),
and one of them I was successful in creating a MD device so I could mount
it RO and copy off a ton of data.

the second one fails to mount, saying the XFS filesystem is corrupted.
Attempting to run XFS_repair I get a message that the filesystem is XFS-1
and I need an older version of XFS tools to do it.

I'm running Centos-7 with whatever version of XFS tools comes with it,
according to 'yum list installed' it appears to be xfsprogs 4.5.0-22.el7.

I don't particularly want to install another, older, version of xfsprogs on
this system. can anyone suggest any other way to gain access to this disk
partition?

Thanks in advance!

Fred
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos