[CentOS] Mount Openfiler created XFS volumes

Fri Apr 24 12:30:04 UTC 2009
James Pearson <james-p at moving-picture.com>

Rajagopal Swaminathan wrote:
> Greetings,
> 
> I have a 500Gig hdd with and XFS filesystem created by openfiler (which
> strangely switched from lovely CentOS for reasons best known to them). I fired
> up a Centos box with this hdd. I then did
> 
> yum install kmod-xfs.i686 xfsdump.i386 dmapi xfsprogs
> 
> and it wnt through.
> 
> But when I try to mount this volume 
> 
> mount -t xfs  /dev/hdd1 /mnt/test
> 
> I get the error:
> 
> mount: /dev/hdd1 already mounted or /mnt/test busy
> 
> I then try 
> 
> xfs_admin -l /dev/hdd1
> 
> The results being:
> 
> xfs_admin: unexpected XFS SB magic number 0x00000000
> xfs_admin: read failed: Invalid argument
> xfs_admin: data size check failed
> cache_node_purge: refcount was 1, not zero (node=0xa058670)
> xfs_admin: cannot read root inode (22)
> label = "(null)"
> 
> 
> Sure I'm missing something very basic here...
> 
> Can somebody point my mistake? and some clues to solve this problem...

Are you sure it has an XFS file system on it?

What does the following report:

file -s /dev/hdd1

And what happens when you just do:

mount /dev/hdd1 /mnt/test

The output of xfs_admin looks like the output you get if the file system 
is ext2/ext3 ...

James Pearson