Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below:

root@moneta # df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d0         9.8G   513M   9.3G     6%    /
/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                    21G   1.7M    21G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/dev/md/dsk/d6         9.8G   4.0G   5.7G    42%    /usr
fd                       0K     0K     0K     0%    /dev/fd
/dev/md/dsk/d1         9.8G   3.5G   6.2G    36%    /var
swap                    21G   208K    21G     1%    /tmp
swap                    21G    96K    21G     1%    /var/run
/dev/dsk/c4t60A98000646F6172636F677178564852d0s0
                       197G   100G    95G    52%    /ora_moneta_oraarch
/dev/md/dsk/d30        550G    52G   493G    10%    /local_backup
/dev/dsk/c4t60A98000646F6172636F677231526977d0s0
                        43G   753M    42G     2%    /moneta_polled01
/dev/dsk/c4t60A98000646F6172636F677234564655d0s0
                        64G    13G    51G    21%    /moneta_parsed01
/dev/dsk/c4t60A98000646F6172636F67724B4C2D6Dd0s6
                       689G   548G   134G    81%    /moneta_collected02
/dev/dsk/c4t60A98000646F6172636F677231507347d0s0
                        64G    53G    10G    84%    /moneta_temp01
/dev/md/dsk/d5         9.8G    69M   9.7G     1%    /opt
/dev/dsk/c4t60A98000646F6172636F677253506852d0s0
                       584G   513G    65G    89%    /ora_data01
/dev/md/dsk/d4         192G   151G    39G    80%    /internaldisk1
/dev/dsk/c4t60A98000646F6172636F67717542506Ad0s0
                       5.9G   2.4G   3.5G    41%    /moneta_home
/dev/dsk/c4t60A98000646F6172636F67724D6B7548d0s6
                       591G   462G   122G    80%    /moneta_collected03
/dev/dsk/c4t60A98000646F6172636F677255764435d0s0
                       583G   505G    72G    88%    /ora_data04
/dev/dsk/c4t60A98000646F6172636F677176744B35d0s0
                        20G   9.8G   9.7G    51%    /oracle
/dev/dsk/c4t60A98000646F6172636F6772557A4931d0s0
                       584G   522G    56G    91%    /ora_data03
/dev/dsk/c4t60A98000646F6172636F6772554A706Dd0s0
                       584G   521G    57G    91%    /ora_data02

As you can some of these file systems have exceed the 90% mark, so we want to extend them. From my research I need to convert the

/dev/dsk/c4t60A98000646F6172636F6772554A706Dd0s0

into �/dev/dsk/md/d60� as an example, which is �solaris volume manager� nomenclature. Then I can use growfs -m to resize the partition.
But I need first to convert those disks into solaris volume manager disks. Please can you give me the steps to do that?
FR

unmount FS

metainit d60 1 1 c4t6*s0

edit /etc/vfstab
mountall
growfs -M

Should I add to your metainit command the new lun provided by the netapp admin, like metainit d60 1 1 <current lun> <new lun added>

metainit d60 1 1 c4t60A98000646F6172636F677176744B35d0s6 c4t60A98000646F6172636F6A5649744E72d0s6

No. First run

metainit d60 1 1 <current lun>

Then do all the changes mentioned by rua. Then run:

metattach d60 <new lun>

and you can use growfs .

1 Like

thank you very much, it worked fine

FR

---------- Post updated 20-04-12 at 08:42 AM ---------- Previous update was 19-04-12 at 03:39 PM ----------

Can I do this for very big file systems, like:

/dev/dsk/c4t60A98000646F6172636F67724D6B7548d0s6
                       591G   455G   129G    78%    /moneta_collected03
/dev/dsk/c4t60A98000646F6172636F677255764435d0s0
                       583G   505G    72G    88%    /ora_data04

I want to increase those two to 850Gb,

FR