[Thincrust-devel] EBS Support on thincrust EC2 ami's not working..

Joey Boggs jboggs at redhat.com
Tue Dec 9 19:47:08 UTC 2008


Jon,

I figured it out, in order for you to mount the xfs file system you will 
need to modprobe the xfs module prior to trying to mount it and it will 
work, so looks like a bug. The Thincrust ami's currently run a Fedora 8 
kernel that is compatible with EC2 provided kernel modules, we will be 
updating that shortly.

If you build a custom ami just create a file /etc/rc.modules and make it 
executable. Within that file add:  modprobe xfs
That will allow you to mount those file systems on boot without building 
a custom kernel.


[root at domU-12-31-39-03-41-F3 ~]# mkfs.xfs /dev/sdb
meta-data=/dev/sdb               isize=256    agcount=4, agsize=65536 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=262144, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096 
log      =internal log           bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0

[root at domU-12-31-39-03-41-F3 ~]# mkdir /vol

[root at domU-12-31-39-03-41-F3 ~]# mount /dev/sdb /vol -t xfs

[root at domU-12-31-39-03-41-F3 ~]# mount
/dev/sda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda2 on /mnt type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sdb on /vol type xfs (rw)

[root at domU-12-31-39-03-41-F3 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             485M  444M   42M  92% /
/dev/sda2             147G  188M  140G   1% /mnt
none                  854M     0  854M   0% /dev/shm
/dev/sdb             1014M  160K 1014M   1% /vol

[root at domU-12-31-39-03-41-F3 ~]# cd /vol

[root at domU-12-31-39-03-41-F3 vol]# dd if=/dev/zero of=testfile bs=1M 
count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 9.47931 s, 55.3 MB/s

[root at domU-12-31-39-03-41-F3 vol]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             485M  444M   42M  92% /
/dev/sda2             147G  188M  140G   1% /mnt
none                  854M     0  854M   0% /dev/shm
/dev/sdb             1014M  501M  514M  50% /vol





Jon Steer wrote:
> the difference I used xfs instead of ext3 following the Amazon directions
>  http://developer.amazonwebservices.com/connect/entry.jspa?categoryID=100&externalID=1663 
> <http://developer.amazonwebservices.com/connect/entry.jspa?categoryID=100&externalID=1663>
> .
> create a 4GB volume in Elastic fox on /dev/sdl
> Launch the thincrust f9 ami from elasticfox on a minimal instance
> attach the ami to the voume with Elasticfox
> - yum check-update
> - yum -y update fedora-release
> - yum check-update
> - mkfs.xfs /dev/sdl
> - add sdl to fstab
> - mkdir /vol
> - mount /vol
> - df -h  crashed the AMI
>
> after this, the ami won't reboot either.
>
> I had made an assumption (bad I guess) that Amazon required XFS..
>
> jon
>
>
>
> On Tue, Dec 9, 2008 at 10:02 AM, Bryan Kearney <bkearney at redhat.com 
> <mailto:bkearney at redhat.com>> wrote:
>
>     Bryan Kearney wrote:
>
>         See below:
>
>         Jon Steer wrote:
>
>             I was pretty psyched when I tripped across the thincrust
>             AMI's. I had been looking for stripped down appliance
>             AMI's.  Unfortunately, I discovered that neither the F8 or
>             F9 AMI's will attach to a EBS volume.
>
>
>     Just following up. What steps did you use. I did the followng:
>
>     - Created a volume from ElasticFox
>     - Launched an Thincrust-F9 instance.
>     - Attached it to a running instance on device /dev/sdb
>     - did mkfs -t ext3 /dev/sdb
>     - mount -f ext3 /dev/sdb /mnt2
>
>     And I could access it. from the images. i could then unmount it
>     and re-mount it on another Thincrust-F9 and a Thincrust-F8 machine.
>
>
>     -- bk
>
>
>     _______________________________________________
>     Thincrust-devel mailing list
>     Thincrust-devel at redhat.com <mailto:Thincrust-devel at redhat.com>
>     https://www.redhat.com/mailman/listinfo/thincrust-devel
>
>
>
>
> -- 
> "Don't stand still, if you see me running down the road, 'cause there 
> is trouble right behind me".
> ------------------------------------------------------------------------
>
> _______________________________________________
> Thincrust-devel mailing list
> Thincrust-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/thincrust-devel




More information about the Thincrust-devel mailing list