Determine free space in a Disk device


 
Thread Tools Search this Thread
Operating Systems Solaris Determine free space in a Disk device
# 15  
Old 11-11-2011
The simpler would be for you to create a second primary partition using the remaining unallocated 25 GiB then create a ZFS pool on it.

For the first task, use fdisk in interactive mode:
Code:
# fdisk /dev/rdsk/c1t0d0p0
Enter Selection: 1  (Create a partition)
Indicate the type of partition you want to create: 4 (Other) or 8 (FAT32) but not 1 (SOLARIS2)
Specify the percentage of disk to use for this partition: 72 (as you have already 28% used)
Should this to become the Active partition? : n
Enter Selection: 5  (update disk configuration and exit)

Then, to create the ZFS pool, simply run this command:
Code:
zpool create u02 c1t0d0p2

and you are done.
This User Gave Thanks to jlliagre For This Post:
# 16  
Old 11-11-2011
As always jlliagre rocks.
# 17  
Old 11-11-2011
Thank you jlliagre . I wanted to create a UFS filesystem.
# 18  
Old 11-11-2011
@polavan if so have a look here.
# 19  
Old 11-12-2011
Quote:
Originally Posted by polavan
Thank you jlliagre . I wanted to create a UFS filesystem.
What UFS provides ZFS doesn't ?
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