2 Replies Latest reply: Apr 18, 2013 1:55 AM by Reidod RSS

    How to increase disk size in solaris

    Rodrigo0461
      Hi all

      I have two disk c1t0d0s0 / c1t0d0s7

      I do haven't space in disk /dev/dsk/c1t0d0s0

      run df -h

      /dev/dsk/*c1t0d0s0* 8,8G 7,4G 1,3G 86% /
      /devices 0K 0K 0K 0% /devices
      ctfs 0K 0K 0K 0% /system/contract
      proc 0K 0K 0K 0% /proc
      mnttab 0K 0K 0K 0% /etc/mnttab
      swap 3,4G 984K 3,4G 1% /etc/svc/volatile
      objfs 0K 0K 0K 0% /system/object
      sharefs 0K 0K 0K 0% /etc/dfs/sharetab
      /usr/lib/libc/libc_hwcap1.so.1
      8,8G 7,4G 1,3G 86% /lib/libc.so.1
      fd 0K 0K 0K 0% /dev/fd
      swap 3,4G 72K 3,4G 1% /tmp
      swap 3,4G 40K 3,4G 1% /var/run
      /dev/dsk/*c1t0d0s7* 20G 21M 20G 1% /export/home


      I want increasing the space in c1t0d0s0. when I installed Solaris 10 I do not looked attentively the size allocated


      Thanks
        • 1. Re: How to increase disk size in solaris
          bobthesungeek76036
          Rodrigo0461 wrote:
          Hi all

          I have two disk c1t0d0s0 / c1t0d0s7
          Actually you have <b>one</b> disk with two (or more) partitions. Run this command and put the output here and we'll see how easy it will be to increase the size:

          prtvtoc /dev/rdsk/c1t0d0s2
          • 2. Re: How to increase disk size in solaris
            Reidod
            Hi,

            As I understand, you want to increase the size of the root partition (where you installed Solaris) which resides in c1t0d0s0. I think it can be done using Concatenations from Solaris Volume Manager (SVM).

            I have tried it in non root partition like /export/home and it is very easy.

            metainit -f d0 2 1 c1t0d0s7 1 c2t0d0s7 //this will create volume d0 as a concatenation
            growfs -M /export/home /dev/md/rdsk/d0 //this will grow the /export/home partition

            Regards,
            Rei