Re: hammer streaming seems stop working for a while

2016-02-23 Thread Tomohiro Kusumi
Sorry, I reverted
https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8a94c3ebc13420d2c3d35360eff649e2308b7d9c


There was one case where mirror write calls this ioctl (not to create a
PFS),
and this sanity check I reverted wasn't appropriate for this particular
case.

(I'm now wondering why no one has complained this for more than 2 months.
I will check some more details of this mirror write case that caused this
issue)

# grep SET_PSEUDOFS sbin/hammer -rI
sbin/hammer/cmd_pfs.c:  if (ioctl(fd, HAMMERIOC_SET_PSEUDOFS, ) < 0) {
sbin/hammer/cmd_pfs.c:  if (ioctl(fd, HAMMERIOC_SET_PSEUDOFS, ) < 0) {
sbin/hammer/cmd_pfs.c:  if (ioctl(fd, HAMMERIOC_SET_PSEUDOFS, )
< 0) {
sbin/hammer/cmd_pfs.c:  if (ioctl(fd, HAMMERIOC_SET_PSEUDOFS, )
== 0) {
sbin/hammer/cmd_mirror.c:   if (ioctl(fd,
HAMMERIOC_SET_PSEUDOFS, ) != 0) {


2016-02-23 22:11 GMT+09:00 Sepherosa Ziehau :

> Hi all,
>
> I just noticed today, my hammer back mechanism seems stop working for a
> while.
>
> The output of mount on the backup machine:
> ROOT on / (hammer, local, noatime)
> devfs on /dev (devfs, local)
> /dev/serno/3PT023B3.s1a on /boot (ufs, local, noatime)
> REPOS on /repos (hammer, local, noatime)
> /repos/pfs/@@-1:7 on /var (null, local)
> /repos/pfs/@@-1:3 on /tmp (null, local)
> /repos/pfs/@@-1:6 on /usr (null, local)
> /repos/pfs/@@-1:1 on /usr/obj (null, local)
> /repos/pfs/@@-1:5 on /var/crash (null, local)
> /repos/pfs/@@-1:4 on /var/tmp (null, local)
> /repos/pfs/@@-1:2 on /usr/src (null, local)
> /repos/pfs/@@0x0004f3766630:9 on /backup/sephe/home (null,
> local, read-only)
> /repos/pfs/@@0x0004f3766630:8 on /backup/sephe/opt (null,
> local, read-only)
> /repos/pfs/@@-1:00010 on /backup/cold (null, local)
> procfs on /proc (procfs, local)
>
> /backup/sephe/home and /backup/sephe/opt is the slave.
>
> On my laptop, I run:
> hammer mirror-stream /opt root@enigma:/backup/sephe/opt
> hammer mirror-stream /home root@enigma:/backup/sephe/home
>
> And on the backup machine, I got many:
> HAMMER(REPOS) Creating a PFS from non-root PFS is not allowed
> in dmesg
>
> It seems the above line is logged each time, the hammer mirror-stream
> runs on my laptop.
>
> I don't know when it started.
>
> Thanks,
> sephe
>
> --
> Tomorrow Will Never Die
>


hammer streaming seems stop working for a while

2016-02-23 Thread Sepherosa Ziehau
Hi all,

I just noticed today, my hammer back mechanism seems stop working for a while.

The output of mount on the backup machine:
ROOT on / (hammer, local, noatime)
devfs on /dev (devfs, local)
/dev/serno/3PT023B3.s1a on /boot (ufs, local, noatime)
REPOS on /repos (hammer, local, noatime)
/repos/pfs/@@-1:7 on /var (null, local)
/repos/pfs/@@-1:3 on /tmp (null, local)
/repos/pfs/@@-1:6 on /usr (null, local)
/repos/pfs/@@-1:1 on /usr/obj (null, local)
/repos/pfs/@@-1:5 on /var/crash (null, local)
/repos/pfs/@@-1:4 on /var/tmp (null, local)
/repos/pfs/@@-1:2 on /usr/src (null, local)
/repos/pfs/@@0x0004f3766630:9 on /backup/sephe/home (null,
local, read-only)
/repos/pfs/@@0x0004f3766630:8 on /backup/sephe/opt (null,
local, read-only)
/repos/pfs/@@-1:00010 on /backup/cold (null, local)
procfs on /proc (procfs, local)

/backup/sephe/home and /backup/sephe/opt is the slave.

On my laptop, I run:
hammer mirror-stream /opt root@enigma:/backup/sephe/opt
hammer mirror-stream /home root@enigma:/backup/sephe/home

And on the backup machine, I got many:
HAMMER(REPOS) Creating a PFS from non-root PFS is not allowed
in dmesg

It seems the above line is logged each time, the hammer mirror-stream
runs on my laptop.

I don't know when it started.

Thanks,
sephe

-- 
Tomorrow Will Never Die