* ext4 store and device-mapper
@ 2011-04-14 18:41 Zenon Panoussis
2011-04-14 19:00 ` Tommi Virtanen
0 siblings, 1 reply; 3+ messages in thread
From: Zenon Panoussis @ 2011-04-14 18:41 UTC (permalink / raw)
To: ceph-devel
Hi all
Attempting to create a store on a device-mapper ext4 partition fails.
Creating the exact same store in the same directory on a native ext4
partition works just fine. Success and failure output below.
It's not the presence of lost+found in the store that confuses ceph,
because it also fails if pointed to an empty subdirectory in a
device-mapper partition. So the problem seems to be a conflict between
ceph (0.26) and device-mapper. That's unfortunate because it makes it
impossible to use LUKS underneath the store.
Is this a bug or is it so by design?
Z
======
_Failure:_
# mount
mount/dev/sda1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda2 on /var type ext4 (rw)
/dev/sda5 on /var/log type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/mapper/sda6 on /mnt/osd type ext4 (rw)
# mkcephfs -c /etc/ceph/ceph.conf -a -k /etc/ceph/admin.keyring
temp dir is /tmp/mkcephfs.ShIRgaTSnR
preparing monmap in /tmp/mkcephfs.ShIRgaTSnR/monmap
/usr/bin/monmaptool --create --clobber --add 0 192.168.178.100:6789 --print /tmp/mkcephfs.ShIRgaTSnR/monmap
/usr/bin/monmaptool: monmap file /tmp/mkcephfs.ShIRgaTSnR/monmap
/usr/bin/monmaptool: generated fsid 5276de4c-f236-965b-172e-456dce1d5af1
epoch 1
fsid 5276de4c-f236-965b-172e-456dce1d5af1
last_changed 2011-04-14 20:22:24.311930
created 2011-04-14 20:22:24.311930
0: 192.168.178.100:6789/0 mon.0
/usr/bin/monmaptool: writing epoch 1 to /tmp/mkcephfs.ShIRgaTSnR/monmap (1 monitors)
=== osd.0 ===
** WARNING: Ceph is still under heavy development, and is only suitable for **
** testing and review. Do not trust it with important data. **
2011-04-14 20:22:24.887172 7fdc84de1720 OSD::mkfs: couldn't mount FileStore: error -95
2011-04-14 20:22:24.887226 7fdc84de1720 ** ERROR: error creating empty object store in /mnt/osd: error 95: Operation not supported
failed: '/sbin/mkcephfs -d /tmp/mkcephfs.ShIRgaTSnR --init-daemon osd.0'
_Success:_
# mount
/dev/sda1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda2 on /var type ext4 (rw)
/dev/sda5 on /var/log type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
# mkcephfs -c /etc/ceph/ceph.conf -a -k /etc/ceph/admin.keyring
temp dir is /tmp/mkcephfs.Lda9H0V5fD
preparing monmap in /tmp/mkcephfs.Lda9H0V5fD/monmap
/usr/bin/monmaptool --create --clobber --add 0 192.168.178.100:6789 --print /tmp/mkcephfs.Lda9H0V5fD/monmap
/usr/bin/monmaptool: monmap file /tmp/mkcephfs.Lda9H0V5fD/monmap
/usr/bin/monmaptool: generated fsid 9a605d32-ff84-5d6f-cb4f-1e0f61fbe44d
epoch 1
fsid 9a605d32-ff84-5d6f-cb4f-1e0f61fbe44d
last_changed 2011-04-14 20:31:42.623231
created 2011-04-14 20:31:42.623231
0: 192.168.178.100:6789/0 mon.0
/usr/bin/monmaptool: writing epoch 1 to /tmp/mkcephfs.Lda9H0V5fD/monmap (1 monitors)
=== osd.0 ===
** WARNING: Ceph is still under heavy development, and is only suitable for **
** testing and review. Do not trust it with important data. **
2011-04-14 20:31:43.263370 7f925a50b720 created object store /mnt/osd journal /var/ceph/data/osd0/journal for osd0 fsid 9a605d32-ff84-5d6f-cb4f-1e0f61fbe44d
creating private key for osd.0 keyring /etc/ceph/keyring.osd.0
creating /etc/ceph/keyring.osd.0
=== osd.1 ===
pushing conf and monmap to node02
** WARNING: Ceph is still under heavy development, and is only suitable for **
** testing and review. Do not trust it with important data. **
2011-04-14 20:31:49.472772 7f92b31db720 created object store /mnt/osd journal /var/ceph/data/osd1/journal for osd1 fsid 9a605d32-ff84-5d6f-cb4f-1e0f61fbe44d
creating private key for osd.1 keyring /etc/ceph/keyring.osd.1
creating /etc/ceph/keyring.osd.1
collecting osd.1 key
=== mds.node01 ===
creating private key for mds.node01 keyring /etc/ceph/keyring.mds.node01
creating /etc/ceph/keyring.mds.node01
=== mds.node02 ===
pushing conf and monmap to node02
creating private key for mds.node02 keyring /etc/ceph/keyring.mds.node02
creating /etc/ceph/keyring.mds.node02
collecting mds.node02 key
Building osdmap
highest numbered osd in /tmp/mkcephfs.Lda9H0V5fD/conf is osd.1
num osd = 2
/usr/bin/osdmaptool: osdmap file '/tmp/mkcephfs.Lda9H0V5fD/osdmap'
/usr/bin/osdmaptool: writing epoch 1 to /tmp/mkcephfs.Lda9H0V5fD/osdmap
Generating admin key at /tmp/mkcephfs.Lda9H0V5fD/keyring.admin
creating /tmp/mkcephfs.Lda9H0V5fD/keyring.admin
Building initial monitor keyring
added entity mds.node01 auth auth(auid = 18446744073709551615 key=AQCQPadNWONIJhAAiCdZ0RKk8uY8rk4brQQsZg== with 0 caps)
added entity mds.node02 auth auth(auid = 18446744073709551615 key=AQCWPadNqLZ2JRAA5P+YYPfGWcu/7wIuLREvBw== with 0 caps)
added entity osd.0 auth auth(auid = 18446744073709551615 key=AQCPPadN+C5GEBAAD3E3tjdQAE/cK2Ujwan69Q== with 0 caps)
added entity osd.1 auth auth(auid = 18446744073709551615 key=AQCVPadNyMtfIBAA8Sf4TXpx0/Qm6KfSiEi3ug== with 0 caps)
=== mon.0 ===
** WARNING: Ceph is still under heavy development, and is only suitable for **
** testing and review. Do not trust it with important data. **
/usr/bin/cmon: created monfs at /var/ceph/data/mon0 for mon.0
placing client.admin keyring in /etc/ceph/admin.keyring
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ext4 store and device-mapper
2011-04-14 18:41 ext4 store and device-mapper Zenon Panoussis
@ 2011-04-14 19:00 ` Tommi Virtanen
2011-04-14 19:26 ` Zenon Panoussis
0 siblings, 1 reply; 3+ messages in thread
From: Tommi Virtanen @ 2011-04-14 19:00 UTC (permalink / raw)
To: Zenon Panoussis; +Cc: ceph-devel
On Thu, Apr 14, 2011 at 08:41:50PM +0200, Zenon Panoussis wrote:
> 2011-04-14 20:22:24.887172 7fdc84de1720 OSD::mkfs: couldn't mount FileStore: error -95
> 2011-04-14 20:22:24.887226 7fdc84de1720 ** ERROR: error creating empty object store in /mnt/osd: error 95: Operation not supported
> failed: '/sbin/mkcephfs -d /tmp/mkcephfs.ShIRgaTSnR --init-daemon osd.0'
That usually means you're missing user_xattr from the mount
options. Can you confirm?
The error message was recently changed to be more helpful, just to
help people falling into this particular trap.
--
:(){ :|:&};:
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: ext4 store and device-mapper
2011-04-14 19:00 ` Tommi Virtanen
@ 2011-04-14 19:26 ` Zenon Panoussis
0 siblings, 0 replies; 3+ messages in thread
From: Zenon Panoussis @ 2011-04-14 19:26 UTC (permalink / raw)
To: ceph-devel
On 04/14/2011 09:00 PM, Tommi Virtanen wrote:
>> 2011-04-14 20:22:24.887172 7fdc84de1720 OSD::mkfs: couldn't mount FileStore: error -95
>> 2011-04-14 20:22:24.887226 7fdc84de1720 ** ERROR: error creating empty object store in /mnt/osd: error 95: Operation not supported
>> failed: '/sbin/mkcephfs -d /tmp/mkcephfs.ShIRgaTSnR --init-daemon osd.0'
> That usually means you're missing user_xattr from the mount
> options. Can you confirm?
You're absolutely right; it works! Thank you.
> The error message was recently changed to be more helpful, just to
> help people falling into this particular trap.
I just put it in the wiki as well, it might help the next guy...
Z
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-14 19:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-14 18:41 ext4 store and device-mapper Zenon Panoussis
2011-04-14 19:00 ` Tommi Virtanen
2011-04-14 19:26 ` Zenon Panoussis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.