Re: OSD::mkfs: couldn't mount FileStore: error -22

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The immediate cause of the problem is that the osd's "commit_op_seq" file is
reading back '0',
which is invalid; it's created with an initial value of 1.  Try removing the
osd data dir
(/var/lib/ceph/osd/ceph-0) completely and let it be recreated; perhaps
something got there somehow by mistake.

Well it looks like commit_op_seq was never created properly:

$ ls /var/lib/ceph/osd/ceph-0/current/
total 4.0K
drwxr-xr-x 1 root root 26 Oct 14 17:40 .
drwxrwx--- 1 root root 74 Oct 14 17:40 ..
-rw-r--r-- 1 root root  0 Oct 14 17:40 commit_op_seq

But how do I delete it to start again?

$ rm -rf current/
rm: cannot remove `current': Directory not empty
$ ls current/
total 4.0K
drwxr-xr-x 1 root root  0 Oct 15 09:16 .
drwxrwx--- 1 root root 26 Oct 15 09:16 ..

This is on a brand new btrfs filesystem mounted in /var/lib/ceph/osd/ceph-0. I created it with this:

$ mkfs.btrfs -L data -s 4096 /dev/sda1

Did I do something wrong?

Thanks,
Adam.


--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux