You are not logged in.

#1 2011-08-16 13:38:20

t67t67
Member
Registered: 2011-08-16
Posts: 5

[SOLVED] Can't create new lvm logical volume

Hi,

I've set up my system on LVM, and have plenty of free space in my volume group:

[root@everynothing ~]# vgdisplay
  --- Volume group ---
  VG Name               VolGroup00
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  22
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                7
  Open LV               7
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               55.84 GiB
  PE Size               4.00 MiB
  Total PE              14294
  Alloc PE / Size       11290 / 44.10 GiB
  Free  PE / Size       3004 / 11.73 GiB
  VG UUID               T1i99M-56zR-F0LW-AFq5-plMJ-aw7Z-Zyc47G

And now I want to make a new logical volume:

[root@everynothing ~]# modprobe dm_mod
[root@everynothing ~]# lvcreate -L 1G --name unencrypted VolGroup00
  /dev/mapper/VolGroup00-unencrypted: open failed: No such file or directory
  /dev/VolGroup00/unencrypted: not found: device not cleared
  Aborting. Failed to wipe start of new LV.
[root@everynothing ~]# ls /dev/mapper/
backups  root  VolGroup00-backups	VolGroup00-root  VolGroup00-var
control  swap  VolGroup00-joe		VolGroup00-swap
joe	 var   VolGroup00-pacman_cache	VolGroup00-usr
[root@everynothing ~]# ls /dev/VolGroup00/
backups  joe  pacman_cache  root  swap	usr  var

WHY??

Last edited by t67t67 (2011-08-24 14:07:40)

Offline

#2 2011-08-16 13:52:19

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: [SOLVED] Can't create new lvm logical volume

Anything relevant in dmesg?

Offline

#3 2011-08-16 13:54:43

t67t67
Member
Registered: 2011-08-16
Posts: 5

Re: [SOLVED] Can't create new lvm logical volume

nothing at all

Offline

#4 2011-08-16 18:43:41

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Can't create new lvm logical volume

You can invcrease verbosity up to three times (-vvv) and debug level up to six times (-dddddd).  Verbosity increases the amount of output to the console, debug increases the amount of output to the logs.  It's not in man lvcreate because it's a 'common' option, it's in man lvm instead.

So just go all out and run

lvcreate -dddddd -vvv -L 1G --name unencrypted VolGroup00

then post the output and check the logs and post contents as necessary.

Note: if you're in a tty you'll probably want to redirect output to a file, because -vvv results in a lot of output.

Last edited by alphaniner (2011-08-16 18:45:03)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2011-08-24 14:06:42

t67t67
Member
Registered: 2011-08-16
Posts: 5

Re: [SOLVED] Can't create new lvm logical volume

I couldn't find any relevent errors or debugging info, but I've found a solution.

Add -Z n to dissable zeroing. Then it just works fine.

Offline

Board footer

Powered by FluxBB