10.01.2013 04:55, Alexandre Kouznetsov пишет:
Hello.
I can confirm, I have successfully mounted partitions from my VHD VDI
under Dom0. Thanks a lot!
El 08/01/13 12:07, George Shuklin escribió:
Ok, here important stuff. When VBD is plugged to dom0, it plugging not
as 'normal' device (with udev attention), but as device in
/dev/sm/backend.
Yes, that was important. Where have you learned that occult stuff?
Well, if you want to do something with XCP outside 'run few VMs for
internal use', you need to know its internals. Whole stuff around SM,
domain management, VHDs and so on is crucial to maintain it in normal
state under highload (like my case). So very often its just source code
research. Most of the SM part is python, some is shell scripts, lesser
part is inside xapi (ocaml, ...sigh). There is only one trusted source
of information - the source code.
Here sample log (change uuids on you taste):
xe vbd-create vm-uuid=53c3d878-b60b-48ec-aaac-73f7adf9ab3d
vdi-uuid=5e2c31a5-1d1b-4abe-9892-1fa3bc47b532 device=6
xe vbd-plug uuid=407eb3a6-919f-f605-0883-e12aaa91321d
ls -la /dev/sm/backend/55ea20d2-8611-1121-9e9e-c26b35ac1852/
итого 4
drwxr-xr-x 2 root root 80 Янв 8 21:57 .
drwxr-xr-x 3 root root 60 Дек 18 17:40 ..
brw------- 1 root root 253, 0 Янв 8 21:57
5e2c31a5-1d1b-4abe-9892-1fa3bc47b532
-rw-r--r-- 1 root root 852 Янв 8 21:57
5e2c31a5-1d1b-4abe-9892-1fa3bc47b532.attach_info
I have done the process as you described.
Got the same result as you, except that I don't have *.attach_info
file, only the device file.
What is the relevance of device=6 under vbd-create command? Really did
not knew what to put there, I have used device=autodetect, hope XCP is
smart enough to clean up everything nicely after I unplug it.
Well, I think 'device' for vbds for dom0 is artifact from earlier days
(XCP 1.1 f.e.) which has creating /dev/xvd[a-z] devices during vbd-plug.
Now, I think that field means nothing (only for dom0 vbds! for domU it
very important thing).
_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api