Hi,
calling format in a Solaris 10 DomU created with vbdcfg crashes the domain:
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0 <drive type unknown>
/xendev/xvbd@0
Specify disk (enter its number): p
`p'' is not an integer.
Specify disk (enter its number): 0
0
/dev/dsk/c0d0s0 is currently mounted on /. Please see umount(1M).
AVAILABLE DRIVE TYPES:
0. other
Specify disk type (enter its number): 0
Enter number of data cylinders: WARNING: init(1M) exited on fatal signal
10: restarting automatically
WARNING: exec(/sbin/init) failed with errno 5.
WARNING: failed to restart init(1M) (err=5): system reboot required
Is that a know bug?
regards
Bernd
--
Bernd Schemmer, Frankfurt am Main, Germany
http://home.arcor.de/bnsmb/index.html
Más temprano que tarde el mundio cambiará
Fidel Castro
On 3 Aug 2006, at 1:01am, Bernd Schemmer wrote:> calling format in a Solaris 10 DomU created with vbdcfg crashes the > domain: > [...] > Is that a know bug?I''m not sure about the crash, but the failure of format to do useful things with vbd images is known. A set of fixes to improve this went back to our internal gate in the last few days - expect to see them in the next drop. dme. -- David Edmondson, Solaris Engineering, http://www.dme.org
Hi,>>I''m not sure about the crash, but the failure of format to do useful >>things with vbd images is known.Ok, can I add another fileimage based disk to an existing domain right now? I know how to add the necessary entry to the domain config file and I can see the new disk in the format output of the domain after doing a devfsadm. But I can''t label the disk in format right now.>>A set of fixes to improve this went >>back to our internal gate in the last few days - expect to see them >>in the next drop.When will that be? regards Bernd This message posted from opensolaris.org
On 4 Aug 2006, at 6:51am, Bernd Schemmer wrote:>>> I''m not sure about the crash, but the failure of format to do useful >>> things with vbd images is known. > > Ok, can I add another fileimage based disk to an existing domain > right now?Yes.> I know how to add the necessary entry to the domain config file and > I can see the new disk in the format output of the domain after > doing a devfsadm. > > But I can''t label the disk in format right now.With the July code you shouldn''t format the vbd I think - just treat it as if it''s already a single partition (i.e. newfs to use it). Max, is that right?>>> A set of fixes to improve this went >>> back to our internal gate in the last few days - expect to see them >>> in the next drop. > > When will that be?Not sure right now. Once a month would be good, but the overhead of producing the drop is quite high at the moment, so we may not manage that. dme. -- David Edmondson, Solaris Engineering, http://www.dme.org
Yes, this is a known problem with the xvbd driver and has been fixed in our development gate. And as Dave points out, there is no need to format a VBD - you can mkfs/newfs slice 0 (e.g. /dev/dsk/c0d1s0). The latest VBD driver does support partitioning/labeling via format but it is of limited use unless you assign entire disks to the domU. - john This message posted from opensolaris.org