lvcreate出错

33 views
Skip to first unread message

Shell Xu

unread,
Sep 16, 2011, 4:56:38 AM9/16/11
to shlug, Debian Chinese GB
Hi, all:
    最近用lvcreate出现错误,报错如下:
shell-deb:/etc# lvcreate -L 10G -n oracle main
  /dev/mapper/main-oracle: open failed: 没有那个文件或目录
  /dev/main/oracle: not found: device not cleared
  Aborting. Failed to wipe start of new LV.
  semid 3833872: semop failed for cookie 0xd4dba12: incorrect semaphore state
  Failed to set a proper state for notification semaphore identified by cookie value 223197714 (0xd4dba12) to initialize waiting for incoming notifications.

    空间是足够的,lvm的信息如下:
shell-deb:/etc# vgdisplay 
  --- Volume group ---
  VG Name               main
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  113
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               229.19 GiB
  PE Size               4.00 MiB
  Total PE              58673
  Alloc PE / Size       33024 / 129.00 GiB
  Free  PE / Size       25649 / 100.19 GiB
  VG UUID               2KL8DL-qO6R-b6vQ-79Sz-kWRQ-lF2z-ERV0Ya
   
shell-deb:/etc# lvs
  LV   VG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  home main -wi-ao 123.00g                                      
  swap main -wi-ao   6.00g           

    我检查了是否是名称和大小的问题,变更名称和大小后问题没有解决。vgscan/lvscan/pvscan没有帮助。
    系统是debian testing 32位版本,使用64位内核。内核和lvm版本如下:
Linux shell-deb 3.0.0-1-amd64 #1 SMP Sat Aug 27 17:19:41 UTC 2011 x86_64 GNU/Linux
ii  liblvm2app2.2                        2.02.86-1                         LVM2 application library
ii  lvm2                                 2.02.86-1                         Linux Logical Volume Manager

    有人见过这个问题么?是我配置的问题还是bug?在redhat的bugzilla里面我找到一篇类似的东西(https://bugzilla.redhat.com/show_bug.cgi?id=446659),但是没有解决问题。
    感激您的任何帮助。
                                                Shell

Chaos Eternal

unread,
Sep 16, 2011, 7:37:12 AM9/16/11
to sh...@googlegroups.com
我觉得是vg信息问题,
你这个是clvm么?
是不是系统有另一个vg操作进程?
要么就是系统semaphore有问题,你该重启一下。

lvm里面凡修改metadata都是要上锁的,而且是cluster aware的

Shell Xu

unread,
Sep 16, 2011, 9:35:26 AM9/16/11
to sh...@googlegroups.com
我找不到其他的操作进程,系统重启两次,问题依旧。
好像不是clvm,我没有用集群。
--
无能者无所求,饱食而遨游,泛若不系之舟
blog: http://shell909090.com/blog/
twitter: http://twitter.com/shell909090

August

unread,
Sep 16, 2011, 12:01:48 PM9/16/11
to sh...@googlegroups.com
你换回32位内核呢?

2011/9/16 Shell Xu <shell...@gmail.com>:

--
Best Regards
August

Liang Guo

unread,
Sep 16, 2011, 10:56:52 PM9/16/11
to sh...@googlegroups.com
不止lvcreate,很多操作都会有类似的错误,比如lvchange

guoliangc:/var/log# lvchange -a y vg00/soft
/dev/mapper/vg00-soft: open failed: 没有那个文件或目录
guoliangc:/var/log# lvs


LV VG Attr LSize Origin Snap% Move Log Copy% Convert

cciclv vg00 -wi-a- 157.00g
soft vg00 -wi-a- 100.00g
vm vg00 -wi--- 90.00g
homelv vg01 -wi-ao 40.00g
u01lv vg01 -wi-ao 120.00g


2011/9/17 August <tan.a...@gmail.com>:

--
Liang Guo
http://bluestone.cublog.cn

Shell Xu

unread,
Sep 16, 2011, 11:33:18 PM9/16/11
to sh...@googlegroups.com
关键是这句。
Aborting. Failed to wipe start of new LV
建立失败了,所以我才郁闷呢。。。

Chaos Eternal

unread,
Sep 16, 2011, 11:43:24 PM9/16/11
to sh...@googlegroups.com

申请semaphore失败是根本

Chaos Eternal

unread,
Sep 17, 2011, 2:48:59 AM9/17/11
to sh...@googlegroups.com
ipcs结果贴上来

2011/9/17 Chaos Eternal <chaose...@shlug.org>:

Shell Xu

unread,
Sep 17, 2011, 5:32:13 AM9/17/11
to sh...@googlegroups.com
ipcs是啥?
公司电脑,目前在家休养。
秋天易感冒,大家小心。。。

Shell Xu

unread,
Sep 20, 2011, 10:59:00 PM9/20/11
to sh...@googlegroups.com
见鬼,ipcs还真有锁。
------ Semaphore Arrays --------
key        semid      owner      perms      nsems    
0xcbc384f8 458752     shell      600        1        
0x0056a4d5 4096001    shell      660        1        
怎么找到这几个锁对应的进程呢?

Chaos Eternal

unread,
Sep 21, 2011, 1:56:18 AM9/21/11
to sh...@googlegroups.com
ipcs -p

2011/9/21 Shell Xu <shell...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages