fsarchiver utilitário para restaurar

0

Eu uso o fsarchiver para restaurar como segue

link: link

comando:

      fsarchiver restfs /tmp/backup/c0d0p2.fsa id=0,dest=/dev/cciss/c0d0p2

falha em:

          [errno=22, Invalid argument]: oper_restore.c#213,extractar_restore_attr_xattr(): xattr:lsetxattr(/racoon,security.selinux) failed Statistics for filesystem 0

por favor ajude o que é: errno = 22 ???

    
por jennifer 21.12.2010 / 16:27

1 resposta

0

errno(3) números podem ser encontrados no GNU / Linux neste arquivo:


 $ grep 22 /usr/include/asm-generic/errno-base.h
#define EINVAL 22 /* Invalid argument */

O erro neste caso é dizer que o fsarchiver não é capaz de restaurar os atributos estendidos dos arquivos.

Os atributos do Controle de Acesso Obrigatório (MAC), conforme implementados pelo SELinux, são armazenados no diretório xattr do (s) arquivo (s) /.

Do fsarchiver wiki :

It's also important that you make sure that SELinux is not enabled in the kernel running FSArchiver when you save a file-system which has been labeled by SELinux, or you can use FSArchiver with SELinux enabled if you are sure that the context where it's running has enough privileges to read the extended-attributes related to SELinux. In the other cases, the kernel could return unlabeled instead of the real value of the security.selinux attribute. Then FSArchiver would not preserve these attributes and then the system would not work when you restore your root filesystem, or you would have to ask the SELinux to relabel the file-system. The SELinux support is disabled by default if you use FSArchiver from SystemRescueCd-1.1.3 or newer, so your SELinux labels will be preserved if you use FSArchiver from that environment.

    
por 07.04.2013 / 21:53