Determine free space in a Disk device


 
Thread Tools Search this Thread
Operating Systems Solaris Determine free space in a Disk device
# 8  
Old 11-08-2011
Quote:
Originally Posted by polavan
Thank you Bartus11,Foorsa

From my underlying disk c1t0d0

I need to create the following filesystems.

9GB for /
2GB for swap
1.5GB for /tmp
1GB for /export/home
20GB for /u02

Can this be done during the installation itself? If so, In the following link , at "Screen 29"

ORACLE - DBA Tips Corner

What should i choose ?

Should i allocate the entire disk space to 'Solaris' partion On "Customize fdisk partitions' screen at first ?
Yes during instillation that would be easier just follow the disk layout screen during installation I have attached some screen shot that illustrates the steps ,Otherwise if your Solaris storage management skills is good you can grow your UFS file system on a fully installed OS but you need to repartition your disk layout
Determine free space in a Disk device-1png
Determine free space in a Disk device-2png
Determine free space in a Disk device-3png
Determine free space in a Disk device-4png
Determine free space in a Disk device-5png

# 9  
Old 11-08-2011
Thank you foorsa.Thanks everyone.

I think i found the cause of the "issue" with the help from you guys.

On the screen 'Customize fdisk partitions' (the 3rd screenshot above)
i allocated only 10,000mb to 'Solaris' partition thinking that the rest of 25 gb can be used later to create a new slice.

I shouldn't have done this . Right?
# 10  
Old 11-08-2011
Right. Solaris fdisk partition is treated by Solaris as whole disk, so if you want to have 35GB disk in Solaris (that you can later divide into slices), then you need to create 35 Solaris fdisk partition.
This User Gave Thanks to bartus11 For This Post:
# 11  
Old 11-08-2011
it is possible to change size of last slice after re-labeling the drive.
ufs filesystem can 'grow', but to shrink it you'd need to backup+restore.
This User Gave Thanks to orange47 For This Post:
# 12  
Old 11-11-2011
yes ferrozo said the right thing.......you have only 9.75 gb complete space in solaris ...u have to re partition ur disk again
# 13  
Old 11-11-2011
@polavan: can you tell what is the full size of your hard disk and not just its Solaris partition which is 9.75 GB ?

This can be shown with
Code:
iostat -En | sed -n '/c1t0d0/,$p' | head -5

Show us also its current fdisk partitioning:
Code:
echo 6 | fdisk /dev/rdsk/c1t0d0p0 | sed -n '/Total/,/SELECT/p'

# 14  
Old 11-11-2011
Here you go
Code:
# iostat -En | sed -n '/c1t0d0/,$p' | head -5
c1t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: VMware,  Product: VMware Virtual S Revision: 1.0  Serial No:
Size: 37.58GB <37580963328 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 4 Predictive Failure Analysis: 0
#
#
#
# echo 6 | fdisk /dev/rdsk/c1t0d0p0 | sed -n '/Total/,/SELECT/p'
             Total disk size is 4568 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  1275    1275     28





Here is the output of df (if it is useful)
Code:
# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0      8.6G   4.2G   4.4G    49%    /
/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                   1.7G  1004K   1.7G     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.6G   4.2G   4.4G    49%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   1.7G   144K   1.7G     1%    /tmp
swap                   1.7G    36K   1.7G     1%    /var/run
/dev/dsk/c1t0d0s7      464M   1.0M   417M     1%    /export/home



Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

I need help!! disk free space script

i want to write a shell script,when disk uses is 90% then automatically send a email to distribution list (group member)...... (1 Reply)
Discussion started by: sonu pandey
1 Replies

2. Solaris

No space left on device but free space and inodes are available...

hi guys, me again ;) i recently opened a thread about physical to zone migration. My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone. We are talking about 22mio of files. i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies

3. Shell Programming and Scripting

Free space at disk

Hi, I would like to create the new file system(mount point) in our unix server. before that i would like to know the total free space available in /home directory. Can you please let me know, how to find free space available for new filesystem? Be careful with your spelling and... (2 Replies)
Discussion started by: koti_rama
2 Replies

4. AIX

Determine disk space in AIX

Hi I need to extend a FS in AIX but Im not sure on how to calculate the free space Please advise if my math is correct: -------PP SIZE: 64 megabyte(s) --------TOTAL PPs: 1086 (69504 megabytes) so the total size of volume is 64 * 1086 = 69504 MB (695GB) Free PP is-- FREE... (4 Replies)
Discussion started by: hedkandi
4 Replies

5. Linux

shrinking root partition and using free space to create a block device

We are intending to protect a set of user specified files using LVM mirroring where the protected space on which the user files are stored is mirrored on an LV on a different disk. Our problem is that for a user with a custom layout has installed linux with 2 partitons for swap and / and there is... (0 Replies)
Discussion started by: kickdgrass
0 Replies

6. AIX

Determine space on a disk

Hello, I am trying to understand how to calculate actual disk space on a logical volume. Based on the output below, how would I convert the total and free PPs to MB and GB? Thank you. # lsvg rootvg VOLUME GROUP: rootvg VG IDENTIFIER: ... (4 Replies)
Discussion started by: dkranes
4 Replies

7. Programming

free disk space calc

I everybody!! How can i use statvfs() to calculate disk usage and free disk space?? Im using this code: /* Any file on the filesystem in question */ char *filename = "/home/nesto/test/test.cpp"; struct statvfs buf; if (!statvfs(filename, &buf)) { ... (1 Reply)
Discussion started by: ninjanesto
1 Replies

8. UNIX for Dummies Questions & Answers

how to determine the disk space usage

how can we determine the disk space used by a certain directory? (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies

9. UNIX for Dummies Questions & Answers

available disk space on disk device???

Hello, Can someone please tell me which command to use to determine the available disk space on a given disk device? I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be? Thanks in advance! Al. (4 Replies)
Discussion started by: alan
4 Replies

10. UNIX for Dummies Questions & Answers

Device Free Space

Hi, I've tried to find answer to this question in the forums but i haven't found it. How can i know the space left in my devices (tape, disk, floppy, etc...)? It is very important to know at least the free space in the TAPE device. Can someone help? Thanx in advance. Jorge (1 Reply)
Discussion started by: jorge.ferreira
1 Replies
Login or Register to Ask a Question