rancheros on vps: disk size

641 views
Skip to first unread message

qsys

unread,
May 7, 2015, 10:26:29 AM5/7/15
to ranc...@googlegroups.com


I just installed rancheros on a vps (vultr). The hosting includes 15GB (virtual) disk space. However, after login in in rancher from the console, but that doesn't work out properly:

$ sudo su

# cd /
# du -d 1 -h
193.0M   ./var
59.4M    ./usr
0        ./tmp
44.6M    ./sbin
4.0K     ./root
0        ./lib
580.0K   ./etc
297.6M   .

# df -h
none     373.8M     53.0M    320.8M   14% /var/
none     363.0M         0    363.0M   14% /host/dev
none     373.8M     53.0M    320.8M   14% /opt
none     373.8M     53.0M    320.8M   14% /var/lib/docker
none     373.8M     53.0M    320.8M   14% /var/lib/rancher
[...]
none     373.8M     53.0M    320.8M   14% /var/var/lib/system-docker/overlay/6c07...8c8c30/merged/var/lib/rancher
none     373.8M     53.0M    320.8M   14% /var/var/lib/system-docker/overlay/6c07...8c8c30/merged/var/lib/rancher
none     373.8M     53.0M    320.8M   14% /var/log
none     373.8M    112.0K    373.7M   14% /var/run
none     373.8M     53.0M    320.8M   14% /var/etc/resolv.conf
none     373.8M     53.0M    320.8M   14% /var/hostnamesk
none     373.8M     53.0M    320.8M   14% /var/hosts
none     363.0M        0M    363.0M    0% /var/dev

# fdisk -l

Disk /dev/vda: 16.1 GB, 16106127360 bytes
16 heads, 63 sectors/track, 31207 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Disk /dev/vda doesn't contain a valid partition table

#

The questions:
1/ Just wondering: it's stated rancheros takes only 20MB. This fresh install seems to take about 53MB. Not that I worry too much about it, I just want to know how much space it takes.
2/ More important: I can't install stuff, since I seem to have only 320.8MB (or is it 363.0MB) available. I'm somewhat confused about the disk space, but it's cerntainly not about 15 GB. For example:

$ docker pull rancher/server
[...]
... Error pulling image (latest from rancher/server, endpoint: [...] no space left on device
$

So: how to install rancheros properly on a vps (from image or from some kind of script. From the vultr docs, this can be a script executed by the vps the first time it starts up, using /bin/bash, or a script executed by iPXE whenever the server starts up and there is no operating system installed.

qsys

unread,
May 11, 2015, 4:29:17 AM5/11/15
to ranc...@googlegroups.com
rtfm to myself. rancheros installs in memory if ran from the iso-file. So I did part one:
http://rancherio.github.io/os/docs/running-rancheros/workstation/boot-from-iso/

but I still needed to install rancheros on a partition:
http://rancherio.github.io/os/docs/running-rancheros/server/install-to-disk/

After running:
sudo rancheros-install -c cloud_config.yml -d /dev/vda
and removing the iso (from the vps control panel), I got about the amount of disk space I expected.



Op donderdag 7 mei 2015 16:26:29 UTC+2 schreef qsys:

Jacob Gadikian

unread,
May 14, 2015, 11:39:48 PM5/14/15
to ranc...@googlegroups.com
Hi, just wanted to say thanks for posting this-- enabled me to get up and running on Vultr!

Bob Henkel

unread,
Jul 2, 2015, 4:50:42 PM7/2/15
to ranc...@googlegroups.com
Any chance you can share cloud_config.yml I'm able to apply that command below with just my public key in the config file, but when I reboot my Vultr instance it hangs.

vu nguyen

unread,
Jul 3, 2015, 12:00:39 PM7/3/15
to ranc...@googlegroups.com
Bob, I just did an installation today on Vultr as well, also had only the pub key in the config file. Everything went fine. Not sure if you had an issue in the config file? Yaml can be pretty bit*** about the tab and space
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages