Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EC2 XFS file system on EBS [WORKAROUND]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Fri Jul 15, 2011 4:28 pm    Post subject: EC2 XFS file system on EBS [WORKAROUND] Reply with quote

Anyone have any experience with running an EBS volume on Amazon EC2 using XFS file system?

I have previously had this working no problem but I suspect the error I am now getting is related to the version of sys-fs/xfsprogs vs the kernel version.
The file system seems to create ok but when I try and mount it I receive an error, please see info below.

Code:
# uname -a
Linux testbox 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 Intel(R) Xeon(R) CPU E5430 @ 2.66GHz GenuineIntel GNU/Linux



# mkfs.xfs -f -l version=1 /dev/sdh
warning: unable to probe device toplology for device /dev/sdh
meta-data=/dev/sdh               isize=256    agcount=4, agsize=5242880 blks
         =                       sectsz=512   attr=2, projid32bit=0
data     =                       bsize=4096   blocks=20971520, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=10240, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0



# mount /vol
mount: wrong fs type, bad option, bad superblock on /dev/sdh,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so




# dmesg | tail -3
XFS: SB validate failed
XFS: bad version
XFS: SB validate failed



# cat /etc/fstab
/dev/sda1 /        ext3  user_xattr          0 1
/dev/sda2 /mnt     ext3  user_xattr          0 2
/dev/sda3 swap     swap  sw                  0 0
shm       /dev/shm tmpfs nodev,nosuid,noexec 0 0
/dev/sdh /vol xfs noatime 0 0



# eix xfsprogs
[I] sys-fs/xfsprogs
     Available versions:  3.1.4 ~3.1.5 {libedit nls readline static static-libs}
     Installed versions:  3.1.4(16:00:31 07/15/11)(nls readline -libedit -static -static-libs)
     Homepage:            http://oss.sgi.com/projects/xfs/
     Description:         xfs filesystem utilities


Last edited by chiefbag on Mon Jul 18, 2011 12:41 pm; edited 2 times in total
Back to top
View user's profile Send private message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Sun Jul 17, 2011 6:43 pm    Post subject: Reply with quote

Gratuitous bump.
Back to top
View user's profile Send private message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Mon Jul 18, 2011 12:40 pm    Post subject: Reply with quote

Found a workaround for this issue.

Code:
#vi /etc/portage/package.keywords
sys-fs/xfsprogs ~x86

#vi /etc/portage/package.unmask
=sys-fs/xfsprogs-3.1.5

#emerge -va xfsprogs


Booted using 2.6.18-xenU-ec2-v1.5

Code:
mkfs.xfs -f -l lazy-count=0 -l version=1  /dev/sdh


Code:
cd /
wget http://s3.amazonaws.com/ec2-downloads/ec2-modules-2.6.18-xenU-ec2-v1.5-i686.tgz
tar -xvf ec2-modules-2.6.18-xenU-ec2-v1.5-i686.tgz
depmod -a
modprobe xfs
mount /vol
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum