[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: nettover un "label" LVM2 sur une partition XFS, pvremove?



Loic Minier wrote:

Loic Minier <lool+debian@via.ecp.fr> - Mon, Aug 02, 2004:

  Je voudrais maintenant savoir où trouver l'utilisation que fait XFS
des offsets 0x218 à 0x220 de /dev/hda1, et ce que ferai un pvremove
/dev/hda1. Est-ce que je ferai mieux d'écraser moi-même ces huit
octets ?

  J'ai trouvé de l'aide sur #debian, et j'ai regardé fs/xfs/xfs_sb.h
dans le noyau, en comptant les tailles de types du superbloc, on arrive
à 204 octets, donc moins que 0x218, les docs XFS semblent dire que le
superbloc est au bloc 0 et le aggregation header au bloc 1 : mais je ne
sais pas à quelle block size ça correspond.

  En plus, xfs_admin me crache du n'importe quoi et se vautre :
   bee# xfs_admin -l /dev/hda1
   xfs_admin: unexpected XFS SB magic number 0xeb489000
   /usr/sbin/xfs_admin: line 55:  8429 Floating point exceptionxfs_db
   -x -p xfs_admin -r -c label /dev/hda1

  Quelqu'un s'y connaît en réparation du SB d'un XFS ?
Ce que j'ai sur 1 Knoppix updatée en sid, puis testing..., si ça peut servir :) ?

'root@box:/# fdisk -l

Disque /dev/hda: 20.0 Go, 20003880960 octets
255 têtes, 63 secteurs/piste, 2432 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         581     4666851    c  W95 FAT32 (LBA)
/dev/hda2             582        1220     5132767+  83  Linux
/dev/hda3            1221        1250      240975   82  Linux swap
/dev/hda4            1251        2432     9494415   1b  Hidden W95 FAT32
root@box:/# pvdisplay
pvdisplay -- please enter a physical volume path

root@box:/# pvdisplay /dev/hda1
pvdisplay -- no physical volume identifier on "/dev/hda1"


root@box:/# pvdisplay /dev/hda2
pvdisplay -- no physical volume identifier on "/dev/hda2"


root@box:/# pvdisplay /dev/hda4
pvdisplay -- no physical volume identifier on "/dev/hda4"


root@box:/# exit
exit
mezig@box:/$ xfs_admin -l /dev/hda1
xfs_admin: cannot open /dev/hda1: Permission denied
mezig@box:/$ su
Password:
root@box:/# xfs_admin -l /dev/hda1
xfs_admin: unexpected XFS SB magic number 0xeb589077
/usr/sbin/xfs_admin: line 1: 9011 Exception en point flottant xfs_db -x -p xfs_admin -r -c label /dev/hda1
root@box:/#'

Sinon 1 lien de chez Google p-être ? :
http://lists.debian.org/debian-boot/2004/06/msg01895.html
http://lists.debian.org/debian-boot/2004/06/msg01901.html
&
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1091490995608+28353475&threadId=508131
https://www.redhat.com/archives/linux-lvm/2004-March/msg00117.html
http://www.suse.de/en/private/products/suse_linux/pers/packages_personal/lvm2.html

Mais moi, ça me fait me poser bien d'autres questions :( !

Mi



Reply to: