Skip to content

Instantly share code, notes, and snippets.

@gdhgdhgdh
Created March 22, 2015 01:13
Show Gist options
  • Select an option

  • Save gdhgdhgdh/fdb32f467969ce26f2db to your computer and use it in GitHub Desktop.

Select an option

Save gdhgdhgdh/fdb32f467969ce26f2db to your computer and use it in GitHub Desktop.
[root@userver1 0]# onedatastore list
ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS TM
0 system 7.8G 80% - 0 sys - shared
1 default 7.8G 80% - 0 img fs shared
2 files 7.8G 80% - 0 fil fs ssh
102 cephstore 1023.5G 100% - 1 img ceph ceph
@gdhgdhgdh

Copy link
Copy Markdown
Author
[root@userver1 0]# oneimage list
  ID USER       GROUP      NAME            DATASTORE     SIZE TYPE PER STAT RVMS
   0 oneadmin   oneadmin   ttylinux        cephstore      40M OS    No used    1

@gdhgdhgdh

Copy link
Copy Markdown
Author
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
    <name>one-0</name>
    <cputune>
        <shares>103</shares>
    </cputune>
    <memory>131072</memory>
    <os>
        <type arch='x86_64'>hvm</type>
        <boot dev='hd'/>
    </os>
    <devices>
        <emulator>/usr/libexec/qemu-kvm</emulator>
        <disk type='file' device='disk'>
            <source file='/var/lib/one//datastores/0/0/disk.0'/>
            <target dev='hda'/>
            <driver name='qemu' type='raw' cache='none'/>
        </disk>
        <disk type='file' device='cdrom'>
            <source file='/var/lib/one//datastores/0/0/disk.1'/>
            <target dev='hdb'/>
            <readonly/>
            <driver name='qemu' type='raw'/>
        </disk>
        <graphics type='vnc' listen='0.0.0.0' port='5900'/>
    </devices>
    <features>
        <acpi/>
    </features>
</domain>

@gdhgdhgdh

Copy link
Copy Markdown
Author
[root@userver1 0]# pwd
/var/lib/one/datastores/0/0
[root@userver1 0]# ls -l
total 368
-rw-rw-r-- 1 oneadmin oneadmin    749 Mar 22 00:48 deployment.0
-rw-r--r-- 1 oneadmin oneadmin 372736 Mar 22 00:48 disk.1
lrwxrwxrwx 1 oneadmin oneadmin     34 Mar 22 00:48 disk.1.iso -> /var/lib/one/datastores/0/0/disk.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment