Server locks up listing files on mounted volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
New
|
Undecided
|
Unassigned |
Bug Description
## Using latest Centos Plus 7.3 kernel:
kernel-
## sestatus selinux disabled
SELinux status: disabled
#> modprobe ecryptfs
#> modinfo ecryptfs
filename: /lib/modules/
license: GPL
rhelversion: 7.3
srcversion: D8F287B49D8815C
vermagic: 3.10.0-
signer: CentOS Linux kernel signing key
sig_key: 63:61:15:
## Using utils from epel-testing repo:
ecryptfs-
#> ecryptfs-
#> ecryptfs-
#> chmod +s /sbin/mount.
#> ecryptfs-
Enter your login passphrase:
Inserted auth tok with sig [4bf790158acc1a6d] into the user session keyring
#> mount
/var/lib/
#> ls -latr /var/lib/mysql
drwx------ 2 mysql mysql 102 Jun 20 16:27 .ecryptfs
drwx------ 16 mysql mysql 4096 Jun 21 12:03 .Private
drwx------ 16 mysql mysql 4096 Jun 21 12:03 data
-rw-r----- 1 mysql mysql 86 Jun 21 12:05 relay-log.info
drwxr-xr-x. 46 root root 4096 Jun 21 15:14 ..
srwxrwxrwx 1 mysql mysql 0 Jun 21 15:15 mysql.sock
drwxr-xr-x 5 mysql mysql 106 Jun 21 15:15 .
-rw------- 1 mysql mysql 4152 Jun 21 15:44 .bash_history
#> getfacl /var/lib/mysql/
getfacl: Removing leading '/' from absolute path names
# file: var/lib/mysql/
# owner: mysql
# group: mysql
user::rwx
group::r-x
other::r-x
## Can copy files in and out from /var/lib/mysql/data
For eaxample:
cp -avf /var/mysql/* /var/lib/
## Can start service mysql
#> systemctl start mysql
## Streaming syslog to external server
#> tail -f /var/log/
2017-06-
2017-06-
*** Please help: Unable to resolve the following
Server freezes and hangs after any of the following:
$>ls -la /var/lib/
$>getfacl /var/lib/mysql/data
#> mysql
mysql> show databases;
mysql> use mysql;
*** No information after server lockup ****
No further information recorded by remote syslog.
No response to magic SysRq keys
SSH session dropped with broken pipe
Requires hard power down restart. No debugging information of any kind found.
Tested on AWS with transparent encrypted volumes as well as kvm with luks encrypted drives.
*** Any thoughts, fixes, recommendations??
Thanks heaps
Server hangs and drops ssh
Does it work well when you create/remove some files in /var/lib/mysql? Can you see the contents of files in that directory when mounting/ unmounting?
I don't know how you can mount from <.Private> to <mysql>? I'm trying to reproduce...