Red Hat This forum is for the discussion of Red Hat Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
06-21-2012, 08:39 AM
#1
LQ Newbie
Registered: Jun 2012
Posts: 2
Rep:
RHEL 6.2 lvcreate hang at semaphore
When I am trying to create LV using lvcreate on RHEL 6.2, it hung at semaphore operation
#mm/memlock.c:297 Unlocked 14708736 bytes
#activate/fs.c:486 Syncing device names
#libdm-common.c:1294 Udev cookie 0xd4d27a5 (semid 1671174) decremented
to 0
#libdm-common.c:1550 Udev cookie 0xd4d27a5 (semid 1671174) waiting for
zero
<--no output--> Hang at this point
below is the strace log
Command strace lvcreate --size 16326656K --permission rw --name lv_root vg_cfttstvm52 /dev/sda2
execve("/sbin/lvcreate", ["lvcreate", "--size", "16326656K", "--permission", "rw", "--name", "lv_root", "vg_cfttstvm52", "/dev/sda2"], [/* 92 vars */]) = 0
....
....
open("/etc/udev/udev.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/.udev/queue.bin", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=846, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe5981ed000
read(7, "[\3\0\0\0\0\0\0\\\3\0\0\0\0\0\0Q\0/devices/pci00"..., 4096) = 846
close(7) = 0
munmap(0x7fe5981ed000, 4096) = 0
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = -1 ENXIO (No such device or address)
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = -1 ENXIO (No such device or address)
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = -1 ENXIO (No such device or address)
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = -1 ENXIO (No such device or address)
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = -1 ENXIO (No such device or address)
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = -1 ENXIO (No such device or address)
stat("/dev/sda2", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 2), ...}) = 0
stat("/dev/sda2", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 2), ...}) = 0
ioctl(3, DM_DEV_CREATE, 0x1feeee0) = 0
ioctl(3, DM_TABLE_STATUS, 0x1feeee0) = 0
ioctl(3, DM_TABLE_LOAD, 0x1feeee0) = 0
open("/dev/urandom", O_RDONLY) = 7
read(7, "9\310", 2) = 2
semget(0xd4dc839, 1, IPC_CREAT|IPC_EXCL|0600) = 32769
semctl(32769, 0, SETVAL, 0x1) = 0
semctl(32769, 0, GETVAL, 0xffffffffffffffff) = 1
close(7) = 0
semop(32769, {{0, 1, 0}}, 1) = 0
semctl(32769, 0, GETVAL, 0xffffffffffffffff) = 2
ioctl(3, DM_DEV_SUSPEND, 0x1feeee0) = 0
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = 0
ioctl(3, DM_TABLE_DEPS, 0x1feeee0) = 0
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = -1 ENXIO (No such device or address)
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = -1 ENXIO (No such device or address)
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = -1 ENXIO (No such device or address)
ioctl(3, DM_DEV_STATUS, 0x1feeee0) = -1 ENXIO (No such device or address)
lseek(6, 0, SEEK_SET) = 0
read(6, "00400000-004c6000 r-xp 00000000 "..., 8192) = 4020
read(6, "7fffbb10f000-7fffbb110000 r-xp 0"..., 4172) = 164
read(6, "", 4008) = 0
munlock(0x400000, 811008) = 0
munlock(0x6c6000, 32768) = 0
munlock(0x6ce000, 28672) = 0
munlock(0x1fa4000, 10797056) = 0
munlock(0x7fe596d55000, 241664) = 0
munlock(0x7fe596f90000, 4096) = 0
munlock(0x7fe596f91000, 4096) = 0
munlock(0x7fe596f92000, 118784) = 0
munlock(0x7fe5971ae000, 4096) = 0
munlock(0x7fe5971af000, 4096) = 0
munlock(0x7fe5971b0000, 4096) = 0
munlock(0x7fe5971b1000, 1667072) = 0
munlock(0x7fe597548000, 16384) = 0
munlock(0x7fe59754c000, 4096) = 0
munlock(0x7fe59754d000, 20480) = 0
munlock(0x7fe597794000, 4096) = 0
munlock(0x7fe597795000, 159744) = 0
munlock(0x7fe5979bc000, 8192) = 0
munlock(0x7fe5979be000, 20480) = 0
munlock(0x7fe597bc2000, 4096) = 0
munlock(0x7fe597bc3000, 8192) = 0
munlock(0x7fe597dc5000, 4096) = 0
munlock(0x7fe597dc6000, 4096) = 0
munlock(0x7fe597dc7000, 57344) = 0
munlock(0x7fe597fd4000, 4096) = 0
munlock(0x7fe597fd5000, 4096) = 0
munlock(0x7fe597fd6000, 131072) = 0
munlock(0x7fe5981ee000, 28672) = 0
munlock(0x7fe5981f5000, 4096) = 0
munlock(0x7fe5981f6000, 4096) = 0
munlock(0x7fe5981f7000, 4096) = 0
munlock(0x7fffbb0b3000, 0) = 0
munlock(0x7fffbb0b3000, 290816) = 0
close(6) = 0
setpriority(PRIO_PROCESS, 0, 0) = 0
brk(0x1fff000) = 0x1fff000
semget(0xd4dc839, 1, 0) = 32769
semctl(32769, 0, GETVAL, 0xffffffffffffffff) = 2
semop(32769, {{0, -1, IPC_NOWAIT}}, 1) = 0
semop(32769, {{0, 0, 0}}, 1
06-22-2012, 11:35 PM
#2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep:
Output from -
??
(Note the root shell prompt. Run as root.)
07-04-2012, 09:19 AM
#3
LQ Newbie
Registered: Jun 2012
Posts: 2
Original Poster
Rep:
Here the output of ipcs... the lvcreate command was in hung state while collecting ipcs output
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 0 root 600 1
0x0d4dff67 32769 root 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
ipcs -a -p
------ Shared Memory Creator/Last-op --------
shmid owner cpid lpid
------ Message Queues PIDs --------
msqid owner lspid lrpid
03-13-2014, 08:35 AM
#4
LQ Newbie
Registered: Nov 2009
Posts: 2
Rep:
lvcreate Hung at semaphore operation
In my Case also lvcrate Hung at semaphore operation.
# strace lvcreate -L 5M --debug -n testlv testvg
............
............
............
............
munlock(0x10000000, 991232) = 0
munlock(0x10101000, 20480) = 0
munlock(0x10106000, 131072) = 0
munlock(0x10135000, 24576) = 0
munlock(0x1013b000, 10768384) = 0
munlock(0x2e4a0000, 143360) = 0
munlock(0x2e4df000, 4096) = 0
munlock(0x2e4e0000, 4096) = 0
munlock(0x2e53b000, 4096) = 0
munlock(0x2e540000, 61440) = 0
munlock(0x2e55e000, 4096) = 0
munlock(0x2e570000, 233472) = 0
munlock(0x2e5b8000, 12288) = 0
munlock(0x2e5bb000, 4096) = 0
munlock(0x2f8e0000, 1556480) = 0
munlock(0x2fa6c000, 16384) = 0
munlock(0x2fa70000, 12288) = 0
munlock(0x2fa73000, 12288) = 0
munlock(0x2fab0000, 102400) = 0
munlock(0x2fae0000, 4096) = 0
munlock(0x2fae1000, 8192) = 0
munlock(0x2faf0000, 32768) = 0
munlock(0x2fb0f000, 4096) = 0
munlock(0x2fb10000, 4096) = 0
munlock(0x77696000, 12288) = 0
munlock(0x776a0000, 4096) = 0
munlock(0x7f890000, 135168) = 0
close(6) = 0
setpriority(PRIO_PROCESS, 0, 0) = 0
brk(0x1018f000) = 0x1018f000
semget(0xd4dee5a, 1, 0) = 622611
semctl(622611, 0, IPC_64|GETVAL, 0) = 2
semop(0x98013, 0x7f8af4d0, 0x1) = 0
semop(0x98013, 0x7f8af510, 0x1
How to reslove this issue ?
For me:
# lvcreate --version
LVM version: 2.02.97(2) (2012-08-07)
Library version: 1.02.76 (2012-08-07)
Driver version: 4.24.0
I am using 3.10.28 kernel version .
03-17-2014, 08:58 AM
#5
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689
Quote:
Originally Posted by
Ashish Yadav
In my Case also lvcrate Hung at semaphore operation.
# strace lvcreate -L 5M --debug -n testlv testvg
............
............
............
............
munlock(0x10000000, 991232) = 0
munlock(0x10101000, 20480) = 0
munlock(0x10106000, 131072) = 0
munlock(0x10135000, 24576) = 0
munlock(0x1013b000, 10768384) = 0
munlock(0x2e4a0000, 143360) = 0
munlock(0x2e4df000, 4096) = 0
munlock(0x2e4e0000, 4096) = 0
munlock(0x2e53b000, 4096) = 0
munlock(0x2e540000, 61440) = 0
munlock(0x2e55e000, 4096) = 0
munlock(0x2e570000, 233472) = 0
munlock(0x2e5b8000, 12288) = 0
munlock(0x2e5bb000, 4096) = 0
munlock(0x2f8e0000, 1556480) = 0
munlock(0x2fa6c000, 16384) = 0
munlock(0x2fa70000, 12288) = 0
munlock(0x2fa73000, 12288) = 0
munlock(0x2fab0000, 102400) = 0
munlock(0x2fae0000, 4096) = 0
munlock(0x2fae1000, 8192) = 0
munlock(0x2faf0000, 32768) = 0
munlock(0x2fb0f000, 4096) = 0
munlock(0x2fb10000, 4096) = 0
munlock(0x77696000, 12288) = 0
munlock(0x776a0000, 4096) = 0
munlock(0x7f890000, 135168) = 0
close(6) = 0
setpriority(PRIO_PROCESS, 0, 0) = 0
brk(0x1018f000) = 0x1018f000
semget(0xd4dee5a, 1, 0) = 622611
semctl(622611, 0, IPC_64|GETVAL, 0) = 2
semop(0x98013, 0x7f8af4d0, 0x1) = 0
semop(0x98013, 0x7f8af510, 0x1
How to reslove this issue ?
For me:
# lvcreate --version
LVM version: 2.02.97(2) (2012-08-07)
Library version: 1.02.76 (2012-08-07)
Driver version: 4.24.0
I am using 3.10.28 kernel version .
Please re-read the LQ Rules...you re-opened a thread that has been closed for
TWO YEARS , and hijacked it with your own question. Please open your OWN THREAD for your own question. And the OP of this thread was asked for information...which you did not provide.
Also, you don't say what version/distro of Linux you're using...but if you're using Red Hat Enterprise, you need to
CALL RED HAT SUPPORT, since you're paying for it . There are reported bugs of this very type related to RHEL 6.x on Red Hat's customer portal (which you should have access to, with your subscription), and there are suggested bugfixes and workarounds.
03-30-2014, 02:55 AM
#6
Member
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354
Rep:
Please add output of:
pvscan
pvs
vgs
lvs
All times are GMT -5. The time now is 10:42 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News