3 Replies Latest reply: Jul 27, 2012 3:09 AM by Nik RSS

    Expand a UFS Lun in Solaris OS got lost of data

    user205128
      Hello All,

      Now I have facing problem whenever I expand a UFS Lun in Solaris OS. Below is the history:

      I have one 6140 storage and netra t2000 which direct attached, I expanded the volume size on the storage and grow the filesystem to fill the disk on the server site (format, select the disk, and set the type to 'auto'). When I remount back the filesystem /u11 is fine but /u12 is always ask for mount: /dev/dsk/c3t1d0s1 is not this fstype. So I cannot use /u12 unless newfs /dev/dsk/c3t1d0s1 (Lost data). How can I expand a UFS Lun in Solaris OS without lost of data?



      root@netrat2000 # vi /etc/vfstab
      "/etc/vfstab" 14 lines, 515 characters
      #device device mount FS fsck mount mount
      #to mount to fsck point type pass at boot options
      #
      fd - /dev/fd fd - no -
      /proc - /proc proc - no -
      /dev/dsk/c0t1d0s1 - - swap - no -
      /dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no
      -
      /dev/dsk/c3t1d0s0 /dev/rdsk/c3t1d0s0 /u11 ufs 1 yes
      -
      /dev/dsk/c3t1d0s1 /dev/rdsk/c3t1d0s1 /u12 ufs 1 yes
      -
      /devices - /devices devfs - no -
      sharefs - /etc/dfs/sharetab sharefs - no -
      ctfs - /system/contract ctfs - no -
      objfs - /system/object objfs - no -
      swap - /tmp tmpfs - yes -
      ~



      root@netrat2000 #
      root@netrat2000 # mount /u11
      root@netrat2000 # mount /u12
      mount: /dev/dsk/c3t1d0s1 is not this fstype
      root@netrat2000 #




      Thanks and Regards,
        • 1. Re: Expand a UFS Lun in Solaris OS got lost of data
          fchagnon
          Can you show us the partition table of the disk?

          # prtvtoc /dev/rdsk/......
          • 2. Re: Expand a UFS Lun in Solaris OS got lost of data
            952122
            Do you have try to use Solaris Volume Manager ?
            I think we can increase volume of the filesystem.
            just create more LUN on storage side, and assign it to the server.

            but need to know, add exisiting disk into solaris volume manager will lost the data or not ? still question on me.
            just try to create new LUN and try to use it on server and add some data, after that you add it into solaris volume manager, just check, it will lost the data or not.

            I hope this can help you.

            rgds
            John.Simangusong
            • 3. Re: Expand a UFS Lun in Solaris OS got lost of data
              Nik
              Hi.

              In case you cafully read Docs, you can found that Lun expansion not supported for Solaris....


              What realy happens:

              /u11 ; /u12 Use same disk but different partitions.
              /dev/dsk/c3t1d0s0 /u11
              /dev/dsk/c3t1d0s1 /u12

              After you increase LUN, disk c3t1d0 will have additional free cylinders at the end of the disk.
              After format, select the disk, and set the type to 'auto' - You lost partition table.

              You should restore partitoon that use first cylinders same as original and can increase space for last partitions.
              It's look like s0 - use first cyinders and s1 - next. So you can make growfs only for /u12.


              In case You restore size c3t1d0s0 and configure start cylinder of c3t1d0s1 as original, you can try restore data.

              For found what size in cylinders was c3t1d0s0 - use fstyp -v /dev/rdsk/c3t1d0s0 and found ncyl.

              Regards.