Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] why does lvcreate fail ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3686
Location: Hamburg

PostPosted: Fri Aug 19, 2016 3:22 pm    Post subject: [solved] why does lvcreate fail ? Reply with quote

Code:
# pvscan
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  PV /dev/sda4   VG vg0   lvm2 [2.60 TiB / 2.60 TiB free]
  PV /dev/sdb1   VG vg0   lvm2 [2.73 TiB / 2.73 TiB free]
  Total: 2 [5.33 TiB] / in use: 2 [5.33 TiB] / in no VG: 0 [0   ]

# vgscan
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  Reading all physical volumes.  This may take a while...
  Found volume group "vg0" using metadata type lvm2

# vgdisplay
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  --- Volume group ---
  VG Name               vg0
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  23
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               5.33 TiB
  PE Size               4.00 MiB
  Total PE              1397896
  Alloc PE / Size       0 / 0
  Free  PE / Size       1397896 / 5.33 TiB
  VG UUID               mS8jX9-xPdR-5RqO-BpLl-3ifd-Rqgx-8hfvx5

# lvcreate -i 2 -l 100%VG -n lv0 /dev/vg0
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  Using default stripesize 64.00 KiB.
  /dev/vg0/lv0: not found: device not cleared
  Aborting. Failed to wipe start of new LV.
# lvcreate -i 2 -l 100%VG -n lv0 /dev/vg0 --verbose
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  Using default stripesize 64.00 KiB.
    Finding volume group "vg0"
    Converted 100%VG into 1397896 extents.
    Archiving volume group "vg0" metadata (seqno 25).
    Creating logical volume lv0
    Found fewer allocatable extents for logical volume lv0 than requested: using 1365000 extents (reduced by 32896).
    Creating volume group backup "/etc/lvm/backup/vg0" (seqno 26).
    Activating logical volume "lv0".
    activation/volume_list configuration setting not defined: Checking only host tags for vg0/lv0
    Creating vg0-lv0
    Loading vg0-lv0 table (253:0)
    Resuming vg0-lv0 (253:0)
  /dev/vg0/lv0: not found: device not cleared
  Aborting. Failed to wipe start of new LV.
    Removing vg0-lv0 (253:0)
    Creating volume group backup "/etc/lvm/backup/vg0" (seqno 27).

Hhm, this is not from teh Gentoo Linxu itself, but rather from a rescue system - maybe have to wait till I can login into my remote server ?

Last edited by toralf on Sat Aug 20, 2016 8:17 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7130
Location: almost Mile High in the USA

PostPosted: Fri Aug 19, 2016 5:00 pm    Post subject: Reply with quote

Just a guess, does the rescue kernel have device mapper built in? What version of udev is the rescue system using? What udev rules does it have?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3686
Location: Hamburg

PostPosted: Sat Aug 20, 2016 8:17 am    Post subject: Reply with quote

eccerr0r wrote:
Just a guess, does the rescue kernel have device mapper built in? What version of udev is the rescue system using? What udev rules does it have?
indeed, the rescue system prevented it, booting into the Gentoo solved the issue.
TIA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum