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

LVM support #2146

Closed
cnf opened this issue Nov 5, 2017 · 4 comments

Comments

Projects
None yet
5 participants
@cnf
Copy link

commented Nov 5, 2017

As #356 was closed, and there is no replies to it, i'm opening another issue.

#356 says LVM support is in 0.4.0+, but I can not find any documentation for this, nor can I find the lvm commands.

Was this not added? If it was added, where is the documentation?

Thanks

@melvyndekort

This comment has been minimized.

Copy link

commented Nov 20, 2017

I'm wondering about this too.
I have a server where I use mdadm and LVM to manage my storage configuration.
If LVM actually works, even through an addon Docker, I want to migrate my server to run RancherOS.

@caryyu

This comment has been minimized.

Copy link

commented Dec 20, 2017

weird , nooooo answers

@niusmallnan

This comment has been minimized.

Copy link
Member

commented Dec 22, 2017

I made some attempts, as follows:

root@ip-172-31-19-80:# ros -v
ros version v1.1.2-rc2

root@ip-172-31-19-80:# ros console switch ubuntu
root@ip-172-31-19-80:# apt-get install lvm2

# prepare another volume, then check it
root@ip-172-31-19-80:~# fdisk -l
....
....
Disk /dev/xvdf: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

# edit /etc/lvm/lvm.conf and change use_lvmetad=1 to use_lvmetad=0
# then reboot

Now you can use LVM, I created one pv and one vg.

root@ip-172-31-19-80:/home/rancher# pvscan
  PV /dev/xvdf1   VG niusmallnan     lvm2 [10.00 GiB / 10.00 GiB free]
  Total: 1 [10.00 GiB] / in use: 1 [10.00 GiB] / in no VG: 0 [0   ]
root@ip-172-31-19-80:/home/rancher# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "niusmallnan" using metadata type lvm2

so I will add a ros service, you can enable lvm like ros service enable lvm2, then you can use it.
The lvm commands will be added on the default console.

@niusmallnan niusmallnan self-assigned this Dec 22, 2017

@niusmallnan niusmallnan added this to the v1.1.3 milestone Dec 22, 2017

@kingsd041

This comment has been minimized.

Copy link
Member

commented Jan 31, 2018

Tested with rancheros v1.2.0-rc2.
The lvm commands will be added on the default console. Other consoles need to manually install lvm to use.

@kingsd041 kingsd041 closed this Jan 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.