3 Replies Latest reply: May 20, 2014 7:32 AM by Pascal Kreyer -Oracle RSS

    How to alter disk in LDOM's?

    1641335

      Hello,

       

      I have Sparct T4-1 server with several LDOM's.

      Now I want to alter disk size in 2 LDOM's & assign free space to new LDOM's.

      Any help how to alter disk of existing LDOM?

       

      Creation of LDOM was done by Oracle partner & I don't have expertise on LDOM's.

       

      Regards,

      Amey.

        • 1. Re: How to alter disk in LDOM's?
          Pascal Kreyer -Oracle

          You must check how the disk was assigned to the LDOM ? Is it a complete disk ? A slice ? Is it a virtual disk ?

           

          # ldm list -e

          • 2. Re: How to alter disk in LDOM's?
            1641335

            Hello Pascal,

             

            The server has inbuilt disks with software RAID5. [ As the server don't have RAID card ]

            Base OS is Solaris 11

             

            Output of #ldm list -e as follows =

             

            NAME       STATEFLAGS   CONSVCPU  MEMORY   UTIL  UPTIME
            primary    active-n-cv-  UART88G 0.8%  52d 23h 38m

             

            SOFTSTATE

            Solaris running

             

            UUID

             

            MAC

            D
            ecbe4

             

            CONTROL

            failure-policy=ignore
            extended-mapin-space=off

             

            DEPENDENCY

            master=

             

            CORE

            CIDCPUSET
            0(0, 1, 2, 3, 4, 5, 6, 7)

             

            VCPU

            VIDPIDCIDUTIL STRAND
            0002.2%   100%
            1100.5%   100%
            2200.5%   100%
            3300.9%   100%
            4400.6%   100%
            5500.5%   100%
            6600.8%   100%
            7700.5%   100%

             

            MEMORY

            RA         PA         SIZE    
            0xe000000000xe000000008G

             

            VARIABLES

            boot-device=/pci@400/pci@1/pci@0/pci@4/scsi@0/disk@w36d846c586107951,0:a disk net
            nvramrc=devalias bootpath /pci@400/pci@1/pci@0/pci@4/scsi@0/iport@v0/disk@w36d4846c586107951,0

            devalias bootdisk pci@400/pci@1/pci@0/pci@4/scsi@0/iport@v0/disk@w36d4846c586107951,0

            ." ChassisSerialNumber 1302BDY919 " cr

            use-nvramrc?=true

             

            IO

            DEVICE                     PSEUDONYM  OPTIONS
            pci@400                    pci_0   
            niu@480                    niu_0   
            pci@400/pci@1/pci@0/pci@8  /SYS/MB/RISER0/PCIE0
            pci@400/pci@2/pci@0/pci@8  /SYS/MB/RISER1/PCIE1
            pci@400/pci@1/pci@0/pci@6  /SYS/MB/RISER2/PCIE2
            pci@400/pci@2/pci@0/pci@c  /SYS/MB/RISER0/PCIE3
            pci@400/pci@1/pci@0/pci@0  /SYS/MB/RISER1/PCIE4
            pci@400/pci@2/pci@0/pci@a  /SYS/MB/RISER2/PCIE5
            pci@400/pci@1/pci@0/pci@4  /SYS/MB/SASHBA0
            pci@400/pci@2/pci@0/pci@4  /SYS/MB/SASHBA1
            pci@400/pci@2/pci@0/pci@6  /SYS/MB/NET0 
            pci@400/pci@2/pci@0/pci@7  /SYS/MB/NET2 

             

            VCC

            NAME       PORT-RANGE
            primary-vcc5000-5100

             

            VSW

            NAME       MAC         NET-DEV   ID   DEVICELINKPROP   DEFAULT-VLAN-ID PVID VID            MTU   MODE   INTER-VNET-LINK
            primary-vsw000:14:4f:f9:ea:5e net00switch@0        1         1                   1500   on 

             

            VDS

            NAME       VOLUME   OPTIONS    MPGROUP  DEVICE
            primary-vds0s10ldom2 ro                        /home/sigma/sol-10-u10-ga2-sparc-dvd.iso
            disk3                                    /rpool/ldom/ldm4.img
            sola10   ro                        /home/si/sol-10-u10-ga2-sparc-dvd.iso
            s10      ro                        /home/si/sol-10-u10-ga2-sparc-dvd.iso
            snew10   ro                        /home/si/sol-10-u10-ga2-sparc-dvd.iso
            sol10    ro                        /home/si/sol-10-u10-ga2-sparc-dvd.iso
            iso10    ro                        /home/si/sol-10-u10-ga2-sparc-dvd.iso
            disk2                                    /datapool1/ldom/ldm3.img
            disk4                                    /datapool1/ldom/ldm5.img
            disk10                                   /datapool1/ldom/ldom6.img
            disk6                                    /datapool1/ldom/ldm7.img
            disk7                                    /datapool1/ldom/ldm8.img
            newdisk4                                 /datapool1/ldom/ldm4secdisk.img
            disk0                                    /datapool1/ldom/ldm1.img
            s10ldom1 ro                        /home/si/sol-10-u10-ga2-sparc-dvd.iso
            disk1                                    /rpool/ldom/ldm2.img
            disk20                                   /datapool1/ldom/ldm2opt.img

             

            VLDC

            NAME    
            primary-vldc0
            primary-vldc3

             

            VLDCC

            NAME       SERVICE               DESC
            ds         primary-vldc0@primary domain-services
            ds         primary-vldc0@primary domain-services
            ds         primary-vldc0@primary domain-services
            ds         primary-vldc0@primary domain-services
            ds         primary-vldc0@primary domain-services
            ds         primary-vldc0@primary domain-services
            ds         primary-vldc0@primary domain-services
            ds         primary-vldc0@primary domain-services
            ds         primary-vldc0@primary domain-services
            vldcc1     primary-vldc0@primary ldmfma   
            vldcc2     SP                    spfma    

             

            VCONS

            NAME       SERVICE               PORT
            UART

             

            ------------------------------------------------------------------------------

            NAME       STATEFLAGS   CONSVCPU  MEMORY   UTIL  UPTIME
            ldom1      active-n----  500648G  47%  45d 20h 11m

             

            SOFTSTATE

            Solaris running

             

            UUID

            4520fb1d-1b64-e8

             

            MAC

            0b:b2:47

             

            HOSTID

            47

             

            CONTROL

            failure-policy=ignore
            extended-mapin-space=off

             

            DEPENDENCY

            master=

             

            CORE

            CIDCPUSET
            5(40, 41, 42, 43)

             

            VCPU

            VIDPIDCIDUTIL STRAND
            0405 39%   100%
            1415 59%   100%
            2425 46%   100%
            3435 45%   100%

             

            MEMORY

            RA         PA         SIZE    
            0x20000000 0x8200000008G

             

            VARIABLES

            auto-boot?=true
            boot-device=disk:a disk net
            keyboard-layout=US-English

             

            NETWORK

            NAME       SERVICE               ID   DEVICEMAC         MODE   PVID VID            MTU   LINKPROP
            vnet1      primary-vsw0@primary  0network@0  00:14:4f:f9:79:42  1                   1500    

             

            DISK

            NAME       VOLUME                TOUT ID   DEVICE  SERVER   MPGROUP
            vdisk1     disk0@primary-vds0         0disk@0  primary              
            iso        s10ldom1@primary-vds0      1disk@1  primary              

             

            VLDCC

            NAME       SERVICE               DESC
            ds         primary-vldc0@primary domain-services

             

            VCONS

            NAME       SERVICE               PORT
            ldom1      primary-vcc@primary   5006

             

            ------------------------------------------------------------------------------

            NAME       STATEFLAGS   CONSVCPU  MEMORY   UTIL  UPTIME
            ldom2      active-n----  500748G  48%  45d 20h 11m

             

            SOFTSTATE

            Solaris running

             

            UUID

            e2301e0a-3c1b-ea50-b5fc-85648c180d1c

             

            MAC

            00:14:4f:fb:66:8f

             

            HOSTID

            0x84fb668f

             

            CONTROL

            failure-policy=ignore
            extended-mapin-space=off

             

            DEPENDENCY

            master=

             

            CORE

            CIDCPUSET
            5(44, 45, 46, 47)

             

            VCPU

            VIDPIDCIDUTIL STRAND
            0445 56%   100%
            1455 45%   100%
            2465 43%   100%
            3475 46%   100%

             

            MEMORY

            RA         PA         SIZE    
            0x20000000 0xa200000008G

             

            VARIABLES

            auto-boot?=true
            boot-device=disk:a disk net
            keyboard-layout=US-English

             

            NETWORK

            NAME       SERVICE               ID   DEVICEMAC         MODE   PVID VID            MTU   LINKPROP
            vnet2      primary-vsw0@primary  0network@0  00:14:4f:f9:1c:4f  1                   1500    

             

            DISK

            NAME       VOLUME                TOUT ID   DEVICE  SERVER   MPGROUP
            vdisk2     disk1@primary-vds0         0disk@0  primary              
            isoldom2   s10ldom2@primary-vds0      1disk@1  primary              
            vdisk3     disk20@primary-vds0        2disk@2  primary              

             

            VLDCC

            NAME       SERVICE               DESC
            ds         primary-vldc0@primary domain-services

             

            VCONS

            NAME       SERVICE               PORT
            ldom2      primary-vcc@primary   5007

             

            ------------------------------------------------------------------------------

            NAME       STATEFLAGS   CONSVCPU  MEMORY   UTIL  UPTIME
            ldom3      active-n----  500088G 1.0%  41d 4h

             

            SOFTSTATE

            Solaris running

             

            UUID

            5ff7d5f6-d72d-ce56-bc7c-e94b85e8e358

             

            MAC

            00:14:4f:f9:b3:bc

             

            HOSTID

            0x84f9b3bc

             

            CONTROL

            failure-policy=ignore
            extended-mapin-space=off

             

            DEPENDENCY

            master=

             

            CORE

            CIDCPUSET
            1(8, 9, 10, 11, 12, 13, 14, 15)

             

            VCPU

            VIDPIDCIDUTIL STRAND
            0810.9%   100%
            1910.6%   100%
            21010.6%   100%
            31110.6%   100%
            41210.7%   100%
            51311.3%   100%
            61410.6%   100%
            71511.4%   100%

             

            MEMORY

            RA         PA         SIZE    
            0x20000000 0x20000000 8G

             

            VARIABLES

            auto-boot?=true
            boot-device=disk:a disk net
            keyboard-layout=US-English

             

            NETWORK

            NAME       SERVICE               ID   DEVICEMAC         MODE   PVID VID            MTU   LINKPROP
            vnet3      primary-vsw0@primary  0network@0  00:14:4f:fb:71:3d  1                   1500    

             

            DISK

            NAME       VOLUME                TOUT ID   DEVICE  SERVER   MPGROUP
            vdisk3     disk2@primary-vds0         0disk@0  primary              

             

            VLDCC

            NAME       SERVICE               DESC
            ds         primary-vldc0@primary domain-services

             

            VCONS

            NAME       SERVICE               PORT
            ldom3      primary-vcc@primary   5000

             

            ------------------------------------------------------------------------------

            NAME       STATEFLAGS   CONSVCPU  MEMORY   UTIL  UPTIME
            ldom4      active-n----  500188G  19%  13d 4h 52m

             

            SOFTSTATE

            Solaris running

             

            UUID

            99e47832-2edf-4034-8486-ddc81c7d634c

             

            MAC

            00:14:4f:f9:c3:f7

             

            HOSTID

            0x84f9c3f7

             

            CONTROL

            failure-policy=ignore
            extended-mapin-space=off

             

            DEPENDENCY

            master=

             

            CORE

            CIDCPUSET
            2(16, 17, 18, 19, 20, 21, 22, 23)

             

            VCPU

            VIDPIDCIDUTIL STRAND
            0162 18%   100%
            1172 24%   100%
            2182 20%   100%
            3192 22%   100%
            4202 14%   100%
            5212 14%   100%
            6222 18%   100%
            7232 19%   100%

             

            MEMORY

            RA         PA         SIZE    
            0x20000000 0x2200000008G

             

            VARIABLES

            auto-boot?=true
            boot-device=disk:a disk net
            keyboard-layout=US-English

             

            NETWORK

            NAME       SERVICE               ID   DEVICEMAC         MODE   PVID VID            MTU   LINKPROP
            vnet4      primary-vsw0@primary  0network@0  00:14:4f:fb:f2:c3  1                   1500    

             

            DISK

            NAME       VOLUME                TOUT ID   DEVICE  SERVER   MPGROUP
            vdisk4     disk3@primary-vds0         0disk@0  primary              
            newiso     sola10@primary-vds0        1disk@1  primary              
            ndisk4     newdisk4@primary-vds0      2disk@2  primary              

             

            VLDCC

            NAME       SERVICE               DESC
            ds         primary-vldc0@primary domain-services

             

            VCONS

            NAME       SERVICE               PORT
            ldom4      primary-vcc@primary   5001

             

            ------------------------------------------------------------------------------

            NAME       STATEFLAGS   CONSVCPU  MEMORY   UTIL  UPTIME
            ldom5      active-n----  500244G 0.2%  52d 22h 21m

             

            SOFTSTATE

            Solaris running

             

            UUID

            b577fc07-515b-c2c6-a784-8d00e8821df6

             

            MAC

            00:14:4f:f9:fc:ef

             

            HOSTID

            0x84f9fcef

             

            CONTROL

            failure-policy=ignore
            extended-mapin-space=off

             

            DEPENDENCY

            master=

             

            CORE

            CIDCPUSET
            3(24, 25, 26, 27)

             

            VCPU

            VIDPIDCIDUTIL STRAND
            02430.3%   100%
            12530.1%   100%
            22630.2%   100%
            32730.7%   100%

             

            MEMORY

            RA         PA         SIZE    
            0x20000000 0x4200000004G

             

            VARIABLES

            auto-boot?=true
            boot-device=disk:a disk net
            keyboard-layout=US-English

             

            NETWORK

            NAME       SERVICE               ID   DEVICEMAC         MODE   PVID VID            MTU   LINKPROP
            vnet5      primary-vsw0@primary  0network@0  00:14:4f:f9:76:0d  1                   1500    

             

            DISK

            NAME       VOLUME                TOUT ID   DEVICE  SERVER   MPGROUP
            vdisk5     disk4@primary-vds0         0disk@0  primary              

             

            VLDCC

            NAME       SERVICE               DESC
            ds         primary-vldc0@primary domain-services

             

            VCONS

            NAME       SERVICE               PORT
            ldom5      primary-vcc@primary   5002

             

            ------------------------------------------------------------------------------

            NAME       STATEFLAGS   CONSVCPU  MEMORY   UTIL  UPTIME
            ldom6      active-n----  500344G 1.1%  40d 3h 31m

             

            SOFTSTATE

            Solaris running

             

            UUID

            30999419-6d42-c74e-cebb-ba32190e5640

             

            MAC

            00:14:4f:fa:b2:80

             

            HOSTID

            0x84fab280

             

            CONTROL

            failure-policy=ignore
            extended-mapin-space=off

             

            DEPENDENCY

            master=

             

            CORE

            CIDCPUSET
            3(28, 29, 30, 31)

             

            VCPU

            VIDPIDCIDUTIL STRAND
            02830.7%   100%
            12930.6%   100%
            23030.6%   100%
            33131.4%   100%

             

            MEMORY

            RA         PA         SIZE    
            0x20000000 0x5200000004G

             

            VARIABLES

            auto-boot?=true
            boot-device=disk:a disk net
            keyboard-layout=US-English

             

            NETWORK

            NAME       SERVICE               ID   DEVICEMAC         MODE   PVID VID            MTU   LINKPROP
            vnet6      primary-vsw0@primary  0network@0  00:14:4f:f9:80:d0  1                   1500    
            vnet1      primary-vsw0@primary  1network@1  00:14:4f:f8:10:ba  1                   1500    

             

            DISK

            NAME       VOLUME                TOUT ID   DEVICE  SERVER   MPGROUP
            vdisk10    disk10@primary-vds0        0disk@0  primary              
            sol10      iso10@primary-vds0         1disk@1  primary              

             

            VLDCC

            NAME       SERVICE               DESC
            ds         primary-vldc0@primary domain-services

             

            VCONS

            NAME       SERVICE               PORT
            ldom6      primary-vcc@primary   5003

             

            ------------------------------------------------------------------------------

            NAME       STATEFLAGS   CONSVCPU  MEMORY   UTIL  UPTIME
            ldom7      active-n----  500444G 0.3%  52d 22h 58m

             

            SOFTSTATE

            Solaris running

             

            UUID

            00519b29-9eeb-ed19-da5f-a3a9ff9713f7

             

            MAC

            00:14:4f:fa:f7:e9

             

            HOSTID

            0x84faf7e9

             

            CONTROL

            failure-policy=ignore
            extended-mapin-space=off

             

            DEPENDENCY

            master=

             

            CORE

            CIDCPUSET
            4(32, 33, 34, 35)

             

            VCPU

            VIDPIDCIDUTIL STRAND
            03240.5%   100%
            13340.2%   100%
            23440.1%   100%
            33540.1%   100%

             

            MEMORY

            RA         PA         SIZE    
            0x20000000 0x6200000004G

             

            VARIABLES

            auto-boot?=true
            boot-device=disk:a disk net
            keyboard-layout=US-English

             

            NETWORK

            NAME       SERVICE               ID   DEVICEMAC         MODE   PVID VID            MTU   LINKPROP
            vnet7      primary-vsw0@primary  0network@0  00:14:4f:fb:49:24  1                   1500    

             

            DISK

            NAME       VOLUME                TOUT ID   DEVICE  SERVER   MPGROUP
            vdisk7     disk6@primary-vds0         0disk@0  primary              
            iso        s10@primary-vds0           1disk@1  primary              

             

            VLDCC

            NAME       SERVICE               DESC
            ds         primary-vldc0@primary domain-services

             

            VCONS

            NAME       SERVICE               PORT
            ldom7      primary-vcc@primary   5004

             

            ------------------------------------------------------------------------------

            NAME       STATEFLAGS   CONSVCPU  MEMORY   UTIL  UPTIME
            ldom8      active-n----  500544G 0.2%  52d 22h 39m

             

            SOFTSTATE

            Solaris running

             

            UUID

            9cbfb3dc-4b55-e7ed-ebf6-e7a2042102c3

             

            MAC

            00:14:4f:fa:9b:29

             

            HOSTID

            0x84fa9b29

             

            CONTROL

            failure-policy=ignore
            extended-mapin-space=off

             

            DEPENDENCY

            master=

             

            CORE

            CIDCPUSET
            4(36, 37, 38, 39)

             

            VCPU

            VIDPIDCIDUTIL STRAND
            03640.3%   100%
            13740.2%   100%
            23840.2%   100%
            33940.1%   100%

             

            MEMORY

            RA         PA         SIZE    
            0x20000000 0x7200000004G

             

            VARIABLES

            auto-boot?=true
            boot-device=disk:a disk net
            keyboard-layout=US-English

             

            NETWORK

            NAME       SERVICE               ID   DEVICEMAC         MODE   PVID VID            MTU   LINKPROP
            vnet8      primary-vsw0@primary  0network@0  00:14:4f:fb:34:28  1                   1500    

             

            DISK

            NAME       VOLUME                TOUT ID   DEVICE  SERVER   MPGROUP
            vdisk8     disk7@primary-vds0         0disk@0  primary              
            niso       snew10@primary-vds0        1disk@1  primary              

             

            VLDCC

            NAME       SERVICE               DESC
            ds         primary-vldc0@primary domain-services

             

            VCONS

            NAME       SERVICE               PORT
            ldom8      primary-vcc@primary   5005
            • 3. Re: How to alter disk in LDOM's?
              Pascal Kreyer -Oracle

              With your configuration, I don't know how we can expand or reduce the IMG file size without to destroy the existing data.

              Maybe with a lot of operations like backup/restore we can readjust it.