Disk space management on Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Disk space management on Solaris
# 1  
Old 11-25-2006
Disk space management on Solaris

Hi,

I'm using sun solaris. Using df -h I have the following:

Filesystem size used avail capacity Mounted on
/dev/md/dsk/d2 12G 7.1G 4.6G 61% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 13G 96K 13G 1% /var/run
dmpfs 13G 0K 13G 0% /dev/vx/dmp
dmpfs 13G 0K 13G 0% /dev/vx/rdmp
swap 13G 1016K 13G 1% /tmp
/dev/md/dsk/d8 44G 7.9G 35G 19% /space
/dev/vx/dsk/localdg/cr_vol
3.0G 1.1G 1.8G 40% /oracrs
/dev/vx/dsk/localdg/or_vol
10G 9.5G 538M 95% /oracle
/dev/null 0K 0K 0K 0% /dev/odm
/dev/vx/dsk/crs_oradg/crs_vol
500M 17M 453M 4% /ora_crs
/dev/vx/dsk/rac_dg/rac_vol2
39G 11G 26G 30% /rac_archive
/dev/vx/dsk/rac_dg/rac_vol1
98G 72G 24G 75% /rac_ts



Well I don't know exactly how filesystems are organized on UNIX. But, I need to increase the one for /oracle. I searched the net a lot but couldn't find something suitable.
Can anyone help me with this and if possible explain the filesystems which I have for me?
# 2  
Old 11-25-2006
Since your using veritas, provided you have some free disk space you can use vxassist to grow the /oracle filesystem, on the fly and without an outage.

Have a look here:
http://www.adminschoice.com/docs/vxa...g%20a%20Volume
Tornado
# 3  
Old 11-25-2006
Or if you prefer a GUI, use vmsa
Tornado
# 4  
Old 11-25-2006
Your vfstab output is a bit hard to read the way it is posted.
To make it easier use the code tags.
Code:
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d2          12G   7.1G   4.6G    61%    /
/proc                    0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
fd                       0K     0K     0K     0%    /dev/fd
swap                    13G    96K    13G     1%    /var/run
dmpfs                   13G     0K    13G     0%    /dev/vx/dmp
dmpfs                   13G     0K    13G     0%    /dev/vx/rdmp
swap                    13G  1016K    13G     1%    /tmp
/dev/md/dsk/d8          44G   7.9G    35G    19%    /space
/dev/vx/dsk/localdg/cr_vol
                       3.0G   1.1G   1.8G    40%    /oracrs
/dev/vx/dsk/localdg/or_vol
                        10G   9.5G   538M    95%    /oracle
/dev/null                0K     0K     0K     0%    /dev/odm
/dev/vx/dsk/crs_oradg/crs_vol
                       500M    17M   453M     4%    /ora_crs
/dev/vx/dsk/rac_dg/rac_vol2
                        39G    11G    26G    30%    /rac_archive
/dev/vx/dsk/rac_dg/rac_vol1
                        98G    72G    24G    75%    /rac_ts

Looking at this tells me that you are using disksuite on your boot disk
Code:
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d2          12G   7.1G   4.6G    61%    /
/dev/md/dsk/d8          44G   7.9G    35G    19%    /space

and veritas with Dynamic Multipathing(DMP) on your data disks.
Code:
Filesystem             size   used  avail capacity  Mounted on
dmpfs                   13G     0K    13G     0%    /dev/vx/dmp
dmpfs                   13G     0K    13G     0%    /dev/vx/rdmp
/dev/vx/dsk/localdg/cr_vol
                       3.0G   1.1G   1.8G    40%    /oracrs
/dev/vx/dsk/localdg/or_vol
                        10G   9.5G   538M    95%    /oracle
/dev/vx/dsk/crs_oradg/crs_vol
                       500M    17M   453M     4%    /ora_crs
/dev/vx/dsk/rac_dg/rac_vol2
                        39G    11G    26G    30%    /rac_archive
/dev/vx/dsk/rac_dg/rac_vol1
                        98G    72G    24G    75%    /rac_ts

You have 3 veritas disk groups:
localdg
crs_oradg
rac_dg

You can get more info about these diskgroups by running
Code:
vxprint -ht -g localdg
vxprint -ht -g crs_oradg
vxprint -ht -g rac_dg

you might also want to look at your disks
Code:
vxdisk list

Why are you mounting /dev/null , Is this an Oracle RAC thing ?
Also
Your root metadevice is d2.
You can use what ever you like for your metadevices, but it's common practice to use the disk slice number for your metadevices, so d0 for your root metadevice and d1 for your swap devices. If you also have a seperate slice for /var and /opt then you would use d3 for /var and d4 for /opt.
The metadb is normally put on slice 7.
You can see what slices are used by running metastat -p
ie:
Code:
$ metastat -p
d0 -m d10 d20 1
d10 1 1 c1t0d0s0
d20 1 1 c1t1d0s0
d1 -m d11 d21 1
d11 1 1 c1t0d0s1
d21 1 1 c1t1d0s1
d3 -m d13 d23 1
d13 1 1 c1t0d0s3
d23 1 1 c1t1d0s3
d4 -m d14 d24 1
d14 1 1 c1t0d0s4
d24 1 1 c1t1d0s4
$
$ df -kl
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d0       4138926 1434624 2662913    36%    /
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
swap                 12715568      40 12715528     1%    /var/run
swap                 12927408  211880 12715528     2%    /tmp
/dev/md/dsk/d3       8268461 1044556 7141221    13%    /var
/dev/md/dsk/d4       8268461  566367 7619410     7%    /opt
$
$ swap -l
swapfile             dev  swaplo blocks   free
/dev/md/dsk/d1      85,1      16 16790384 16731680
$
$ metadb
        flags           first blk       block count
     a m  p  luo        16              1034            /dev/dsk/c1t0d0s7
     a    p  luo        1050            1034            /dev/dsk/c1t0d0s7
     a    p  luo        16              1034            /dev/dsk/c1t1d0s7
     a    p  luo        1050            1034            /dev/dsk/c1t1d0s7
     a    p  luo        16              1034            /dev/dsk/c4t600C0FF000000000083E1164D2E9EF00d0s7
     a    p  luo        16              1034            /dev/dsk/c4t600C0FF000000000083E11646E8CA000d0s7
     a    p  luo        16              1034            /dev/dsk/c4t600C0FF000000000083E114D508A0C00d0s7
$

Tornado
# 5  
Old 11-25-2006
Quote:
Originally Posted by Tornado
Since your using veritas, provided you have some free disk space you can use vxassist to grow the /oracle filesystem, on the fly and without an outage.

Have a look here:
http://www.adminschoice.com/docs/vxa...g%20a%20Volume

If using VFS 4.0 or later you should use vxresize, it is simpler because it resizes the filesystem as well as the volume.
# 6  
Old 11-25-2006
For a novice vmsa is the easiest way. vxva was way better, but vmsa replaced that Smilie
Tornado
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Disk management in RHEL 6

Hi, I want to Create a patition /home with 100G which be taken from /Archive, Note that we are using Raid 10. Thanks and regards root@mainmgt1 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup-lv_root 94G 69G 20G 78% / tmpfs 24G 668M... (0 Replies)
Discussion started by: stam51
0 Replies

2. Solaris

Df -k command shows duplicate information in Solaris machine, How to get the exact disk space

While getting the total disk space in solaris machine using df -k command, i am getting the same disk info for every user available in that system. Is there any way to remove it. Filesystem 1024-blocks Used Available Capacity Mounted on rpool/ROOT/solaris 573898752... (3 Replies)
Discussion started by: prasankn
3 Replies

3. Solaris

Disk management

Dear experts, I have a freshly installed solaris 10 64bit os in one hard disk Now i have added another hard disk and managed all settings perfectly in bios mode. Now how can i manage my second hard disk in solaris. because i want to install sap which i have dump in 2nd hard... (1 Reply)
Discussion started by: prathapkutty
1 Replies

4. Solaris

disk space solaris 10

I got 4 hd each of 75GB. The os sun solaris 10 is installed on disk 0 and is almost full. see at df -k shows the following $ df -k Dateisystem kByte belegt verfügbar Kapazität Eingehängt auf /dev/dsk/c1t0d0s0 6856805 6388140 400097 95% / /devices 0 ... (3 Replies)
Discussion started by: j2me
3 Replies

5. Solaris

How to utilize the 2nd hard disk space in x86 solaris 5.10

I have 2 hard disks ,one hard disk(40gb) completely for windows Os,and the other(120gb) for solaris Os. In the second hard disk.I have utilised around 10gb for the solaris installation and also partitioned with the available 10gb space for the solaris x86 OS. Now i need to utilise the... (8 Replies)
Discussion started by: jayaprakash
8 Replies

6. Solaris

solaris 8 / disk space almost full

Hi All, My Solaris 8 firewall server is getting full on the / filesystem. I don't know which one should I delete. I think there's no more to delete on the file like logs or temp file. Does someone knows about deleting a safe file (or folder) on FS like /usr, /opt, /platform, /kernel, /sbin?... (7 Replies)
Discussion started by: itik
7 Replies

7. Shell Programming and Scripting

Disk Space availability on solaris machine

Hi, I have a question regarding finding free space on the disk of a solaris machine. Many mount points are available in my machine. Right now i am using df -b option to get the free disk space available. I have an assignment to check free space on the disk. I pass the directory as a... (3 Replies)
Discussion started by: raghu.amilineni
3 Replies

8. Programming

How to get free disk space size in C/C++ program( Solaris system)

How to get free disk space size in C/C++ program( Solaris system)? Is there any standard function or system function? Just like "df" or "getdfree" in Linux. (4 Replies)
Discussion started by: yidu
4 Replies

9. Solaris

command to find free disk space on solaris

In linux df is the command to find free space what is the equivalent command in the Solaris (2 Replies)
Discussion started by: harishankar
2 Replies

10. UNIX for Advanced & Expert Users

How to re-allocate disk space on solaris 10

I am not very good at UNIX and seek help here. I tried to install Oracle 10g on a 64 bit Sun sparc machine with solaris 10 as OS. After I installed solaris 10, the current file system on the machine looks like this: /dev/dsk/c0t0d0s0 5104758 4854293 199418 97% / /devices ... (2 Replies)
Discussion started by: duke0001
2 Replies
Login or Register to Ask a Question