6 Replies Latest reply: Aug 8, 2012 9:30 AM by 747435 RSS

    Solaris 10 virtual machine not finding physical disk

    747435
      Hi,

      I created a new physical disk using the Oracle VM Manager and have added it to a virtual machine running Solaris 10 8/11 (x86). However, Solaris does not pick up on the disk being added. I tried using "format" and "devfsadm" to rescan for hardware changes. I also read some places on the internet that using cfgadm can pick up on new disks being added, but that command does not work (not supported).
      I have not tried restarting the virtual machine, which I hopefully don't have to...

      So can anyone tell me how I can start using the newly presented physical disk without restarting the virtual machine?

      Oracle VM version is 3.1.1

      regards,
      John

      Edited by: John on Aug 3, 2012 10:58 AM
        • 1. Re: Solaris 10 virtual machine not finding physical disk
          938853
          Hi Everybody,

          I have the same issue with Sol10 and Sol11
          in addition to above I reboted the Sol10 with and without reconfigure but did not get any progress

          Regards,
          -Aref
          • 2. Re: Solaris 10 virtual machine not finding physical disk
            830567
            hi



            # ls /dev/rdsk/*s0

            noted current disk names and try devfsadm command or devfsadm -Cv command

            again # ls /dev/rdsk/*s0 see if you found newly added HDD.



            tc

            Edited by: usr080678 on Aug 6, 2012 3:11 PM
            • 3. Re: Solaris 10 virtual machine not finding physical disk
              747435
              Hi, I get the following from following your suggestion:
              bash-3.2# ls /dev/rdsk/*s0
              /dev/rdsk/c0d0s0    /dev/rdsk/c0t1d0s0  /dev/rdsk/c1d0s0
              bash-3.2# format
              Searching for disks...done
              
              
              AVAILABLE DISK SELECTIONS:
                     0. c0d0 <DEFAULT cyl 7829 alt 2 hd 255 sec 63>
                        /pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
              Specify disk (enter its number): 0
              selecting c0d0
              Controller working list found
              [disk formatted, defect list found]
              /dev/dsk/c0d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
              
              format> quit
              bash-3.2# devfsadm -Cv
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s13
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0p1
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s9
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s3
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s4
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s14
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0p2
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s10
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s0
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s7
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s5
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s15
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s12
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0p0
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s2
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s8
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s6
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0p4
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0p3
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s11
              devfsadm[1475]: verbose: removing file: /dev/rdsk/c1d0s1
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0p3
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s1
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s12
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s15
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s6
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0p4
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0p0
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s11
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s8
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s2
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s5
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s14
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s7
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0p2
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s0
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s13
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s4
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0p1
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s10
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s3
              devfsadm[1475]: verbose: removing file: /dev/dsk/c1d0s9
              bash-3.2# ls /dev/rdsk/*s0
              /dev/rdsk/c0d0s0    /dev/rdsk/c0t1d0s0
              Seems like I get one less disk after running devfsadm -Cv
              What does that mean?


              regards,
              John
              • 4. Re: Solaris 10 virtual machine not finding physical disk
                830567
                if you have OVM utility installed, take vmdisk status for the guest machine.

                tc
                • 5. Re: Solaris 10 virtual machine not finding physical disk
                  861130
                  Nothing much - just means that you added then removed a disk, and the OS created the devices for this when it saw the new disk.
                  You can see there are 2 disks - c0t0 and c0t1. if you have 2 disks added to the VM via the manager this is fine. In format you should be able to check the disk sizes and verify they are the 2 disks that you wanted.
                  • 6. Re: Solaris 10 virtual machine not finding physical disk
                    747435
                    Problem solved...

                    After talking with Oracle Support they told me that hot plugging on Solaris 10 update 10 or older is not supported. (Maybe this is limited to Solaris 10 running as guest OS on Oracle VM?)

                    Thus I could not avoid rebooting.

                    After rebooting I found the disk using devfsadm -Cv (or maybe -cV?) and format


                    thanks,
                    John

                    Edited by: John on Aug 8, 2012 4:28 PM