Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot convert to LVM #30

Open
TheOneValen opened this issue Jun 4, 2016 · 2 comments
Open

Cannot convert to LVM #30

TheOneValen opened this issue Jun 4, 2016 · 2 comments

Comments

@TheOneValen
Copy link

TheOneValen commented Jun 4, 2016

Trying to convert an ext4 volume on /dev/sdb to lvm and get the following error (after successful resize it seems):

The filesystem (ext4) leaves enough room, no need to shrink it
Copying 4194304 bytes from pos 0 to pos 4000778813440... ok
Preparing LVM metadata... Traceback (most recent call last):
  File "/usr/bin/blocks", line 9, in <module>
    load_entry_point('blocks==0.1.4', 'console_scripts', 'blocks')()
  File "/usr/lib64/python3.4/site-packages/blocks-0.1.4-py3.4.egg/blocks/__main__.py", line 2012, in script_main
  File "/usr/lib64/python3.4/site-packages/blocks-0.1.4-py3.4.egg/blocks/__main__.py", line 1678, in main
  File "/usr/lib64/python3.4/site-packages/blocks-0.1.4-py3.4.egg/blocks/__main__.py", line 1886, in cmd_to_lvm
  File "/usr/lib64/python3.4/contextlib.py", line 283, in enter_context
    result = _cm_type.__enter__(cm)
  File "/usr/lib64/python3.4/contextlib.py", line 59, in __enter__
    return next(self.gen)
  File "/usr/lib64/python3.4/site-packages/blocks-0.1.4-py3.4.egg/blocks/__main__.py", line 1276, in synth_device
  File "/usr/lib64/python3.4/site-packages/blocks-0.1.4-py3.4.egg/blocks/__main__.py", line 170, in __init__
AssertionError: /dev/mapper/synthetic-7fc406e4-2a55-11e6-8ef2-00012e37f3d5
@jskarpe
Copy link

jskarpe commented Dec 29, 2016

I'm also seeing this issue

@fl4p-old
Copy link

I had the same issue when i tried to lvmify an old swap partition. Got it working by using Python 3.3 and (I believe this was crucial) creating a ext4 fs first.
On ubuntu python 3.3 is available through PPA https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa .
Install blocks with

python3.3 -m pip install --user -r <(wget -O- https://raw.github.com/g2p/blocks/master/requirements.txt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants