Hello,
Open with RDONLY is not due to robinhood but this is how the
liblustreAPI implements it.
However, I never stated such an use on Lustre 2.10.
Did you register a changelog reader on your MDS0?
(https://github.com/cea-hpc/robinhood/wiki/robinhood_v3_admin_doc#enabling-lustre-v2-changelogs)
Thomas
On 11/28/18 15:04, Lorand Szentannai wrote:
Hi Thomas,
I actually did that already but forgot to add the strace lines to the initial
email. But it is still unclear to me why open function is called with the
O_RDONLY flag.
[pid 2348817] open("/cluster", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 12
[pid 2348817] ioctl(12, _IOC(_IOC_WRITE, 0x66, 0x94, 0x08), 0x7ffef3f20240) =
-1 ENOTTY (Inappropriate ioctl for device)
# grep lustre /proc/mounts
10.3.5.18@o2ib,10.4.5.18@o2ib1:10.3.5.19@o2ib,10.4.5.19@o2ib1:/scratch /cluster
lustre rw,flock,lazystatfs 0 0
Thanks,
Lorand Szentannai
On 28 Nov 2018, at 12:47, LEIBOVICI Thomas <thomas.leibov...@cea.fr> wrote:
Hello,
If you run "strace -f robinhood --readlog" you should see the ioctl that
causes this error, and its arguments.
Thomas
On 11/28/18 07:36, Lorand Szentannai wrote:
Hi,
We've recently upgraded to Lustre 2.10.5 and to Robinhood to 3.1.4.
Processing changelogs fails now with "ERROR -25 opening changelog for MDT
'scratch-MDT0000': Inappropriate ioctl for device".
Could you please advice on how to solve this? Note that currently MGS and MDS
are running on two separate servers.
----------------------------------------------------------------------------------
ChangeLog {
MDT {
mdt_name = "MDT0000";
reader_id = "cl4"; # yes, it is cl4
}
force_polling = ON ;
polling_interval = 60s ;
}
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
# lfs changelog scratch-MDT0000 |head
8211574766 10OPEN 22:24:39.830737089 2018.11.27 0x43 t=[0x200033cc4:0x4e9d:0x0]
8211574767 13TRUNC 22:24:39.831280872 2018.11.27 0xe t=[0x200033cc4:0x4e9d:0x0]
8211574768 11CLOSE 22:24:39.831774075 2018.11.27 0x43 t=[0x200033cc4:0x4e9d:0x0]
8211574769 10OPEN 22:24:39.831950980 2018.11.27 0x43 t=[0x200033cc4:0x4e9e:0x0]
8211574770 13TRUNC 22:24:39.832289331 2018.11.27 0xe t=[0x200033cc4:0x4e9e:0x0]
8211574771 11CLOSE 22:24:39.832765269 2018.11.27 0x43 t=[0x200033cc4:0x4e9e:0x0]
8211574772 10OPEN 22:24:39.832942039 2018.11.27 0x43 t=[0x200033cc4:0x4e9f:0x0]
8211574773 13TRUNC 22:24:39.833241628 2018.11.27 0xe t=[0x200033cc4:0x4e9f:0x0]
8211574774 11CLOSE 22:24:39.833541406 2018.11.27 0x43 t=[0x200033cc4:0x4e9f:0x0]
8211574775 10OPEN 22:24:39.833672445 2018.11.27 0x43 t=[0x200033cc4:0x4ea0:0x0]
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
# robinhood --readlog
2018/11/28 07:20:54 [2070664/1] Main | EntryProcessor successfully initialized
2018/11/28 07:20:54 [2070664/1] ChangeLog | mdt[0] = MDT0000
2018/11/28 07:20:54 [2070664/1] ListMgr | Logged on to database
'robinhood_scratch' successfully
2018/11/28 07:20:54 [2070664/1] ListMgr | SQL query: SET SESSION TRANSACTION
ISOLATION LEVEL READ COMMITTED
2018/11/28 07:20:54 [2070664/3] ListMgr | Logged on to database
'robinhood_scratch' successfully
2018/11/28 07:20:54 [2070664/3] ListMgr | SQL query: SET SESSION TRANSACTION
ISOLATION LEVEL READ COMMITTED
2018/11/28 07:20:54 [2070664/5] ListMgr | Logged on to database
'robinhood_scratch' successfully
2018/11/28 07:20:54 [2070664/5] ListMgr | SQL query: SET SESSION TRANSACTION
ISOLATION LEVEL READ COMMITTED
2018/11/28 07:20:54 [2070664/6] ListMgr | Logged on to database
'robinhood_scratch' successfully
2018/11/28 07:20:54 [2070664/6] ListMgr | SQL query: SET SESSION TRANSACTION
ISOLATION LEVEL READ COMMITTED
2018/11/28 07:20:54 [2070664/4] ListMgr | Logged on to database
'robinhood_scratch' successfully
2018/11/28 07:20:54 [2070664/4] ListMgr | SQL query: SET SESSION TRANSACTION
ISOLATION LEVEL READ COMMITTED
2018/11/28 07:20:54 [2070664/1] ListMgr | SQL query: SELECT value FROM VARS
WHERE varname='CL_LastCommit_MDT0000'
2018/11/28 07:20:54 [2070664/1] ListMgr | SQL query: SELECT value FROM VARS
WHERE varname='ChangelogLastCommit_MDT0000'
2018/11/28 07:20:54 [2070664/1] ChangeLog | Opening chglog for scratch-MDT0000
(start_rec=0)
2018/11/28 07:20:54 [2070664/1] ChangeLog | ERROR -25 opening changelog for MDT
'scratch-MDT0000': Inappropriate ioctl for device
2018/11/28 07:20:54 [2070664/1] Main | Error 25 initializing ChangeLog Reader
----------------------------------------------------------------------------------
Thanks,
Lorand Szentannai
_______________________________________________
robinhood-support mailing list
robinhood-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/robinhood-support
_______________________________________________
robinhood-support mailing list
robinhood-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/robinhood-support