Hi

today I tried to attach the physical CDROM to a DomU (Dom0 and DomU both 
running Solaris, Dom0: Solaris snv_78, DomU: Solaris snv_81). The DomU 
is a PV DomU.


I found a solution for this but it doesn't look right (see below).

If I use c1t0d0s0 or c1t0d0s2 for the block-attach command I can not 
access the CDROM from within the DomU.


regards

Bernd


        How to attach the physical CDROM drive to a running Solaris DomU


# #### in the DomU

# before attaching the CDROM
#
bash-3.2# ls /dev/dsk
c0d0p0   c0d0p3   c0d0s1   c0d0s12  c0d0s15  c0d0s4   c0d0s7
c0d0p1   c0d0p4   c0d0s10  c0d0s13  c0d0s2   c0d0s5   c0d0s8
c0d0p2   c0d0s0   c0d0s11  c0d0s14  c0d0s3   c0d0s6   c0d0s9



# ### in the Dom0
#

# Note: Stop the volume management if it's running

# xm list
Name                                      ID   Mem VCPUs      State   
Time(s)
Domain-0                                   0   403     1     r-----    714.1
solaris_10_snv81                           4   367     1     -b----     32.9

# xm block-list 4
Vdev  BE handle state evt-ch ring-ref BE-path
0      0    0     4      5      8     /local/domain/0/backend/vbd/4/0 

# xm block-attach 4 phy://dev/dsk/c1t0d0p0 6 r

# xm block-list 4
Vdev  BE handle state evt-ch ring-ref BE-path
0      0    0     4      5      8     /local/domain/0/backend/vbd/4/0 
6      0    0     4      7      855   /local/domain/0/backend/vbd/4/6 



# ### in the DomU
#
bash-3.2#  ls /dev/dsk
c0d0p0   c0d0s1   c0d0s15  c0d0s7   c0d6p3   c0d6s12  c0d6s4
c0d0p1   c0d0s10  c0d0s2   c0d0s8   c0d6p4   c0d6s13  c0d6s5
c0d0p2   c0d0s11  c0d0s3   c0d0s9   c0d6s0   c0d6s14  c0d6s6
c0d0p3   c0d0s12  c0d0s4   c0d6p0   c0d6s1   c0d6s15  c0d6s7
c0d0p4   c0d0s13  c0d0s5   c0d6p1   c0d6s10  c0d6s2   c0d6s8
c0d0s0   c0d0s14  c0d0s6   c0d6p2   c0d6s11  c0d6s3   c0d6s9

bash-3.2# fstyp /dev/rdsk/c0d6s0
unknown_fstyp (no matches)

bash-3.2# fstyp /dev/rdsk/c0d6s2
unknown_fstyp (no matches)

bash-3.2# fstyp /dev/rdsk/c0d6p0
hsfs

bash-3.2# mount -o ro -F hsfs /dev/dsk/c0d6p0 /mnt

bash-3.2# df -k /mnt
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0d6p0      3851160 3851160       0   100%    /mnt

bash-3.2# ls -l /mnt
total 944
-r--r--r--   1 root     root        7024 Jan  4 00:44 Copyright
dr-xr-xr-x   6 root     root        2048 Dec 21 22:24 DeveloperTools
-r--r--r--   1 root     root      460262 Jan  4 00:37 
JDS-THIRDPARTYLICENSEREADME
dr-xr-xr-x   2 root     root        2048 Jan 15 21:30 License
-r--r--r--   1 root     root        1540 Jan  8 20:00 README.txt
dr-xr-xr-x   7 root     root        2048 Jan 15 21:31 Solaris_11
dr-xr-xr-x   4 root     root        2048 Jan 15 21:32 Sun_HPC_ClusterTools
-r-xr-xr-x   1 root     root          50 Jan  4 00:37 autorun.inf
-r-xr-xr-x   1 root     root         322 Jan  4 00:37 autorun.sh
dr-xr-xr-x   5 root     root        2048 Jan 15 21:31 boot
-r-xr-xr-x   1 root     root         257 Jan 15 21:06 installer
dr-xr-xr-x   3 root     root        2048 Jan 15 21:32 sddtool


-- 
Bernd Schemmer, Frankfurt am Main, Germany
http://home.arcor.de/bnsmb/index.html

M s temprano que tarde el mundo cambiar .
                        Fidel Castro

_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to