How to extend a filesystem

I am running solaris 10 with Veritas. I want to extend a filesystem. It's an oracle partition (/ora12). How can I find out if there is space available to expand the filesystem and then how does one extend it.

I'm from the HPUX world and so LVM was always how I did things.

Thanks

jackie

hi,
right now ur in vxvm, so
#vxdisk list
#vxdg free (i think you are in ora disk group) or #vxdg -g ora free
it will display the free space in that file system(ora)
free space is very low at that time you have to use vxassist cmd otherwise you use vxmake(very long process) cmd.

=========================================================
Through vxassist cmd
#vxdisk list
#vxdg free or #vxdg -g <diskgroup> free
#vxassist -g <diskgroup> growto vol <vol size>
#devfsadm (no need)
#vxdisk list

different ways are ther.but itz a simple way to increse the fs.
if u want more tell me.

Hello

In the case of vxvm you can proceed with vxdisk list to list the disks in the disk group [take care of mirrroring]
#vxdisk list ---will list disks

# #vxdg -g ora free -------------- if disk group is ora

you will get free space in the specific FS
free space is very low at that time you have to use vxassist cmd otherwise you use vxmake

vxdg -g <diskgroup> free
#vxassist -g <diskgroup> growto vol <vol size> -----------will increase
#devfsadm (no need)
#vxdisk list

pls revert

This is the output I get from df -k

# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d10 4128206 3279527 807397 81% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/md/dsk/d40 10326032 3064167 7158605 30% /var
swap 5589952 96 5589856 1% /var/run
swap 6363344 773488 5589856 13% /tmp
/dev/md/dsk/d50 8261517 4860433 3318469 60% /opt
/dev/vx/dsk/rootdg/ora12
61931520 38252704 23308860 63% /ora12
/dev/vx/dsk/rootdg/ora18
356515840 348081588 8304480 98% /ora18
/dev/vx/dsk/rootdg/ora07
113438720 42824748 69510880 39% /ora07
/dev/vx/dsk/rootdg/oratemp
64320512 38965342 23770535 63% /oratemp
/dev/vx/dsk/rootdg/ora03
20332544 13191700 7029308 66% /ora03
/dev/vx/dsk/rootdg/rauser
22020096 12010928 9383643 57% /rauser
/dev/vx/dsk/rootdg/ora14
43259904 15948712 26884460 38% /ora14
/dev/vx/dsk/rootdg/ora11
44040192 2115372 41269752 5% /ora11
/dev/vx/dsk/rootdg/ora10
153092096 149163556 3867204 98% /ora10
/dev/vx/dsk/rootdg/ora05
156834816 110770040 45345040 71% /ora05
/dev/vx/dsk/rootdg/ora02
20332544 13068248 7150840 65% /ora02
/dev/vx/dsk/rootdg/ora09
68157440 2116916 65008712 4% /ora09
/dev/vx/dsk/rootdg/ora04
211352064 19106216 189242924 10% /ora04
/dev/vx/dsk/rootdg/ora08
209715200 6317876 200219312 4% /ora08
/dev/vx/dsk/rootdg/ora13
75079680 21196 73885768 1% /ora13
/dev/vx/dsk/rootdg/ora06
371621888 325159952 45736000 88% /ora06
/dev/vx/dsk/rootdg/ora15
62914560 57144453 5409535 92% /ora15
/dev/vx/dsk/rootdg/ora01
28311552 17644828 10507232 63% /ora01
/dev/vx/dsk/rootdg/ora16
115343360 53497029 57980999 48% /ora16
/dev/vx/dsk/rootdg/ora17
178257920 129515645 45697279 74% /ora17
/dev/vx/dsk/rootdg/onephone
5242880 248960 4681803 6% /onephone
/dev/vx/dsk/rootdg/ora19
943718400 891611344 48850390 95% /ora19
/dev/vx/dsk/rootdg/cdrtool-tmp
70817408 54304457 16144687 78% /cdrtool-tmp
/dev/md/dsk/d60 39659328 2968253 36294482 8% /export/home
/dev/vx/dsk/rootdg/aircom
6291456 5076660 1195844 81% /data/aircom
/dev/vx/dsk/rootdg/omcrvol
1048576 329048 709084 32% /data/omcr
/dev/vx/dsk/rootdg/tis
6291456 2540747 3543882 42% /data/TIS
/dev/vx/dsk/rootdg/picsvol
41943040 32120717 9217225 78% /data/pictures
/dev/vx/dsk/rootdg/misdw
5242880 4396088 793910 85% /export/home/misdw
/dev/vx/dsk/rootdg/pictures
12582912 9495762 2899079 77% /data/pictures/survey2001
/dev/vx/dsk/rootdg/ora20
104857600 59766242 42273153 59% /ora20
/dev/vx/dsk/rootdg/proc710
576716800 21019162 520966604 4% /ora04/arch/PROC710
/dev/vx/dsk/rootdg/u02
12582912 26319 11771819 1% /u02
/dev/vx/dsk/rootdg/ora21
1064946688 1048659204 16033056 99% /ora21
/dev/vx/dsk/rootdg/ora22
1064946688 1048658812 16033440 99% /ora22
/dev/vx/dsk/rootdg/ora23
1073741824 1048857013 23329571 98% /ora23
/dev/vx/dsk/rootdg/ora24
1073741824 1048857006 23329578 98% /ora24
/dev/vx/dsk/rootdg/ora25
1048576000 839135548 196350487 82% /ora25

and this is what I get from vxdg

# vxdg free
GROUP DISK DEVICE TAG OFFSET LENGTH FLAGS
rootdg saruman02 EMC1_38 EMC1_38 209928960 3060480 n
rootdg saruman20 EMC1_20 EMC1_20 25405440 107635200 n
rootdg saruman20 EMC1_20 EMC1_20 212736000 253440 n
rootdg saruman21 EMC1_19 EMC1_19 136316160 76673280 n
rootdg saruman24 EMC1_16 EMC1_16 211944960 1044480 n

I don't see where I can see how much extra space is available for /ora12

use this to grow the size
vxassist -g dg growto volume size

dude,

just you have to go that diskgroup name, i think u r diskgroup is ora12.

Example:

#vxdg -g ora12 free or
#vxdg free (it will show the all diskgroups)

#vxdisk list
#vxdg free or #vxdg -g <diskgroup> free
#vxassist -g <diskgroup> growto vol <vol size>
#devfsadm (no need)
#vxdisk list