Re: Slow dir / Performance.

2014-12-09 Thread Stefan B
Thanks for the messages, I have change the open-iscsi settings with Citrix Perfomance settings, and i have set the blockdev to 16384, i see more perfomance. But the first dir or commando on the dir, give the same slow perfomace, it wil be taken more than 30 secondes. We not running any nis or

Re: Slow / Performance problem.

2014-12-09 Thread Stefan B
Thanks for the messages, I have change the open-iscsi settings with Citrix Perfomance settings, and i have set the blockdev to 16384, i see more perfomance. But the first dir or commando on the dir, give the same slow perfomace, it wil be taken more than 30 secondes. We not running any nis or

Antw: Re: Slow dir / Performance.

2014-12-09 Thread Ulrich Windl
Does man blktrace sound useful to you? With this command and others you can produce funny output like this: 9-1 AW271 68123744 16 153.802866844 1 1057 xfsbufd/dm-12 9-1 QW272 68123744 16 153.802871575 1 1057 xfsbufd/dm-12 9-1 AW273 161876032

CentOS7 and systemd ordering when shutting down results in unclean unmount

2014-12-09 Thread awiddersh...@hotmail.com
Setup iSCSI on CentOS7. Mounted a iSCSI disk and am running a small MySQL instance on the disk. The iSCSI disk and MySQL instance all come online fine with booting but when shutting down things seem to get very upset and the drive does not get unmounted cleanly. Does not look like I'm the only

Re: CentOS7 and systemd ordering when shutting down results in unclean unmount

2014-12-09 Thread The Lee-Man
I'm not familiar with CentOS. Does you iscsi-utils package have any systemd unit files, i.e. is the version of open-iscsi you are using integrated with systemd? On Tuesday, December 9, 2014 7:28:52 AM UTC-8, awidde...@hotmail.com wrote: Setup iSCSI on CentOS7. Mounted a iSCSI disk and am

Re: CentOS7 and systemd ordering when shutting down results in unclean unmount

2014-12-09 Thread awiddersh...@hotmail.com
Yes, it does. These are the two main unit files provided for open-iscsi. The first is to log in/out of all automatic targets on startup/shutdown: [Unit] Description=Login and scanning of iSCSI devices Documentation=man:iscsid(8) man:iscsiadm(8) DefaultDependencies=no Conflicts=shutdown.target

Re: CentOS7 and systemd ordering when shutting down results in unclean unmount

2014-12-09 Thread Andy Grover
On 12/09/2014 07:28 AM, awiddersh...@hotmail.com wrote: Setup iSCSI on CentOS7. Mounted a iSCSI disk and am running a small MySQL instance on the disk. The iSCSI disk and MySQL instance all come online fine with booting but when shutting down things seem to get very upset and the drive does not

Re: CentOS7 and systemd ordering when shutting down results in unclean unmount

2014-12-09 Thread awiddersh...@hotmail.com
Sorry, I didn't post the fstab entry in my original post when I should have. The _netdev entry is being applied to the disk and it seems like systemd generator is seeing that option properly and creating the mount point correctly (or so I think). Here is the fstab entry: LABEL=/iscsi-disk

Re: CentOS7 and systemd ordering when shutting down results in unclean unmount

2014-12-09 Thread The Lee-Man
It seems clear that the I/O error is because iscsi is stopped before the device is unmounted: On Tuesday, December 9, 2014 7:28:52 AM UTC-8, awidde...@hotmail.com wrote: Setup iSCSI on CentOS7. Mounted a iSCSI disk and am running a small MySQL instance on the disk. The iSCSI disk and MySQL

Re: CentOS7 and systemd ordering when shutting down results in unclean unmount

2014-12-09 Thread The Lee-Man
Okay, I'm no systemd expert, though I play one at work. :) You might try adding this to your mysql unit file: [Unit] Description=MySQL Server -After=nss-lookup.target network.target remote-fs.target time-sync.target -Wants=nss-lookup.target network.target remote-fs.target time-sync.target

Re: CentOS7 and systemd ordering when shutting down results in unclean unmount

2014-12-09 Thread awiddersh...@hotmail.com
Thanks for the feedback and suggestion. I'm fairly certain (haven't actually tried though) that adding iscsi-disk.mount or even iscsi.target to the After= of the MySQL service would probably solve this problem I don't think it's a good solution. Just to start, I don't think the MySQL package

Re: CentOS7 and systemd ordering when shutting down results in unclean unmount

2014-12-09 Thread awiddersh...@hotmail.com
I'm not sure if it is the unit files, iscsi or even systemd itself that is the problem. It all seems very strange to me right now. I certainly will post back if it is an open-iscsi issue. As I said, doesn't really seem like the unit files and their requirements are misconfigured. My hunch is