[długie] XFS a sparc (sparc64 jajko, system32, sun250| ultrasparc)

Michal Abramowicz ab_1 w abram.eu.org
Pon, 28 Sie 2006, 13:20:46 CEST


czesc

uwaga długie, a zaczęło się od tego ze zachciało mi się pld na
sparku z xfs'em na pokładzie


[root w pldmachine ~]# fdisk -l /dev/sdb                                         

Disk /dev/sdb (Sun disk label): 64 heads, 32 sectors, 8676 cylinders
Units = cylinders of 2048 * 512 bytes

   Device Flag    Start       End    Blocks   Id  System
/dev/sdb1             0      8676   8884224   fd  Linux raid autodetect
/dev/sdb3             0      8676   8884224    5  Whole disk


[root w pldmachine ~]# fdisk -l /dev/sdc 

Disk /dev/sdc (Sun disk label): 64 heads, 32 sectors, 8676 cylinders
Units = cylinders of 2048 * 512 bytes

   Device Flag    Start       End    Blocks   Id  System
/dev/sdc1             0      8676   8884224   fd  Linux raid autodetect
/dev/sdc3             0      8676   8884224    5  Whole disk


[root w pldmachine ~]# cat /proc/mdstat                                          
Personalities : [raid1] 
md0 : active raid1 sdb1[0] sdc1[1]
      8884160 blocks [2/2] [UU]
      
unused devices: <none>


mdadm.conf
DEVICE /dev/sdb1 /dev/sdc1
ARRAY /dev/md0 devices=/dev/sdb1,/dev/sdc1 level=1 num-devices=2


mkfs.ext2 /dev/md0 działa
/dev/md0 on /tmp type ext2 (rw)

df -h
/dev/md0              8.4G   20K  8.0G   1% /tmp


pora na xfs.
[root w pldmachine ~]# rpm -q kernel xfsprogs
kernel-2.6.16.23-1 xfsprogs-2.8.11-1

[root w pldmachine ~]# uname -a
Linux pldmachine 2.6.16.23-1 #1 PREEMPT Thu Aug 24 11:04:59 UTC 2006 sparc64 TI_UltraSparc_II__(BlackBird) unknown PLD Linux

[root w pldmachine ~]# cat /proc/version                                         
Linux version 2.6.16.23-1 (builder w ip30.abram.pl) (gcc version 4.0.2) #1 PREEMPT Thu Aug 24 11:04:59 UTC 2006

[root w pldmachine ~]# umount  /tmp/                                             
[root w pldmachine ~]# mkfs.xfs /dev/md0                                         
mkfs.xfs: /dev/md0 appears to contain an existing filesystem (ext2).
mkfs.xfs: Use the -f option to force overwrite.
[root w pldmachine ~]# mkfs.xfs -f /dev/md0
meta-data=/dev/md0               isize=256    agcount=16, agsize=138815 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=2221040, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096  
log      =internal log           bsize=4096   blocks=2560, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0


jest już xfs : /dev/md0 on /tmp type xfs (rw)

partycje na sdb i sdc są.

PORA REBÓT

Host: pldmachine...................................................[ BUSY ][ DONE ]
NET: Registered protocol family 1
Setting clock (local)..............................................[ BUSY ][ FAIL ]
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Activating swap partitions.........................................[ BUSY ][ DONE ]
Checking root filesystem...........................................[ WORK ]
/dev/sda1: clean, 63631/549440 files, 340764/1098444 blocks
Remounting root filesystem in rw mode..............................[ BUSY ][ DONE ]
Enabling Delay Login...............................................[ BUSY ][ DONE ]
Finding module dependencies........................................[ BUSY ][ DONE ]
Starting up RAID devices...........................................[ BUSY ][ FAIL ]
mdadm: no devices found for /dev/md0
Starting up RAID devices...........................................[ FAIL ]


*** An error occurred during the RAID startup.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.

hmmmm !!! WTF !!!

[root@ ~]# cat /proc/mdstat                                                    
Personalities : 
unused devices: <none>

[root@ ~]# fdisk -l /dev/sdb

Disk /dev/sdb: 9100 MB, 9100044288 bytes
64 heads, 32 sectors/track, 8678 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdb doesn't contain a valid partition table
[root@ ~]# fdisk -l /dev/sdc 

Disk /dev/sdc: 9100 MB, 9100044288 bytes
64 heads, 32 sectors/track, 8678 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdc doesn't contain a valid partition table


WTF !!! ???

w dmesgu nic nie widzę na temat partycji na sdb i sdc

sda:
SCSI device sda: drive cache: write through w/ FUA
 sda: sda1 sda2 sda3

SCSI device sdb: drive cache: write through w/ FUA
 sdb: unknown partition table

SCSI device sdc: drive cache: write through w/ FUA
 sdc: unknown partition table

O na sdd coś jest:
SCSI device sdd: drive cache: write through w/ FUA
 sdd: sdd1 sdd3


ok sdd1 na xfs. i rebót.
[root w pldmachine ~]# mkfs.xfs /dev/sdd1                                        
mkfs.xfs: /dev/sdd1 appears to contain an existing filesystem (ext3).
mkfs.xfs: Use the -f option to force overwrite.
[root w pldmachine ~]# mkfs.xfs -f /dev/sdd1
meta-data=/dev/sdd1              isize=256    agcount=16, agsize=138816 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=2221056, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096  
log      =internal log           bsize=4096   blocks=2560, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
[root w pldmachine ~]# 

po rebócie 
[root w pldmachine ~]# fdisk -l /dev/sdd                                         

Disk /dev/sdd: 9100 MB, 9100044288 bytes
64 heads, 32 sectors/track, 8678 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdd doesn't contain a valid partition table


czyli wielka dupa ... xfs mi nie działa sparku ... :(( kurde !

jak użyję xfs to hm, przychodzi Kraken i wcina partycje ...


ktoś kto ma sparka może hm, sprawdzić potwierdzić ?
jąderko dla ac jest pod
http://abram.eu.org/sun250/rpm/RPMS/kernel-2.6.16.23-1.sparc64.rpm
zbudowane według wskazówek cięciwy:
./builder  -r auto-ac-kernel-2_6_16_23-1 -g -D kernel.spec (to kiedyś mi
już działało ale ext2 miałem, a teraz zachciało mi się xfs.)
sparc64 /usr/bin/rpmbuild -bb kernel.spec --without smp --target=sparc64

zdrówko.
abram


-- 
Z punktu widzenia Rewolucji Światowej ludzie zasadniczo 
dzielą się na dwie kategorie: na tych, którym trzeba 
natychmiast poderżnąć gardło i na tych, którym narazie nie trzeba.


Więcej informacji o liście dyskusyjnej pld-devel-pl