Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Conversation

@bergwolf
Copy link
Member

@bergwolf bergwolf commented Jan 11, 2017

VolumeDescription.Source is <server>:/<export>, and
VolumeDescription.Format is nas and VolumeDescription.Fstype should be nfs. The volume is passed to hyperstart for further handling.

Works with hyperstart change (hyperhq/hyperstart#252).

nfs volume podfile example:

{
  "resource": {
    "vcpu": 1,
    "memory": 1024
  },
  "containers": [{
      "image": "bergwolf/ubuntu-fio",
      "volumes": [{
        "volume": "sharevolume",
        "path": "/export",
        "readOnly": false
      }]
  }],
  "volumes": [{
    "name": "sharevolume",
    "source": "192.168.80.72:/home/bergwolf",
    "format": "nas",
    "fstype": "nfs"
  }]
}

Test results:

[hypervsock@~]$sudo hyperctl run -d -p ubuntu.pod
POD id is pod-VVnZwkkoZp
Time to run a POD is 7733 ms
[hypervsock@~]$sudo hyperctl exec -t pod-VVnZwkkoZp bash
root@pod-VVnZwkkoZp:/# df
Filesystem                   1K-blocks      Used Available Use% Mounted on
/dev/sda                     104805376    298180 104507196   1% /
devtmpfs                         23808         0     23808   0% /dev
tmpfs                            26940         0     26940   0% /dev/shm
rootfs                           23808     16044      7764  68% /lib/modules/4.4.28-hyper
192.168.80.72:/home/bergwolf 410056704 108126208 301930496  27% /export

VolumeDescription.Source is server://export, and
VolumeDescription.Format is "nas" and VolumeDescription.Fstype should be "nfs".

Signed-off-by: Peng Tao <bergwolf@gmail.com>
@gao-feng
Copy link
Contributor

gao-feng commented Feb 7, 2017

LGTM

@gao-feng gao-feng merged commit 15afa57 into hyperhq:master Feb 7, 2017
@bergwolf bergwolf deleted the nfs-volume branch March 23, 2017 06:04
jimoosciuc pushed a commit to jimoosciuc/runv that referenced this pull request May 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants