LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-21-2012, 08:39 AM   #1
atuld
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
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
 
Old 06-22-2012, 11:35 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Output from -

Code:
# ipcs -a -p
??

(Note the root shell prompt. Run as root.)
 
Old 07-04-2012, 09:19 AM   #3
atuld
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-13-2014, 08:35 AM   #4
Ashish Yadav
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
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 .
 
Old 03-17-2014, 08:58 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by Ashish Yadav View Post
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.
 
Old 03-30-2014, 02:55 AM   #6
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Please add output of:
pvscan
pvs
vgs
lvs
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL AS-4.7 get hang JATA01 Linux - Server 3 06-19-2011 02:40 AM
rhel 5.5 hang logout salimshahzad Linux - Server 2 10-06-2010 07:43 AM
lvcreate with max size available aclhkaclhk Linux - Hardware 2 06-08-2010 06:55 AM
My laptop hang out after RHEL 5.2 server installation, What went wrong? Please help maxudit007 Linux - Newbie 1 06-07-2008 02:13 PM
rhel 2.4/eva lun unpresent/scsi rescan=hang duvalr Linux - Enterprise 1 03-23-2007 04:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration