The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Check free space in Solaris Volume Manager fugitive SUN Solaris 3 08-26-2009 12:02 AM
Check free space in SVM fugitive SUN Solaris 4 07-12-2009 09:34 PM
Free space of HDD ? shipon_97 Red Hat 7 06-16-2009 12:45 PM
HDD free space check pppswing Shell Programming and Scripting 1 09-25-2008 01:45 PM
Perl script to check free disk space susja Shell Programming and Scripting 1 06-28-2008 04:24 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-26-2009
Mr_Webster Mr_Webster is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 4
How to check free space for a metadevice in a diskset

Anyone know then command to check the unallocated disk space for a metadevice in a disk set? like:

/dev/md/data/dsk/d830

Something similar to veritas command below is what I'm looking for:

vxassist maxgrow <volume>

---------- Post updated at 12:34 PM ---------- Previous update was at 12:17 PM ----------

metarecover -v -n -s data d801 -p

that did the trick.

---------- Post updated at 01:08 PM ---------- Previous update was at 12:34 PM ----------

This produced output like this:

The following extent headers were found on data/d801.
Name Seq# Type Offset Length

data/d950 0 ALLOC 3179283327 10485761
data/d955 0 ALLOC 3168797535 10485761
NONE 0 END 3302785023 1
NONE 0 FREE 3189769088 113015935
NONE 0 FREE 3179283296 31
NONE 0 FREE 3168797504 31


Anyone know an easy to convert this readouts to GB ?

I did this but it seems a little off:

bash-3.00# echo "(113015935*512)/1073741824" | bc
53


53Gb available?
  #2 (permalink)  
Old 08-26-2009
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
Take this with a grain of salt - I'm a little outside my area of expertise here
I would say you could check you answer by adding up the two extents listed as 'ALLOC' ie (10485761+10485761)*512/(1024^3) and see if that + 53 is the total size f the disk (minus some overhead and 62 blocks for the other 'free' spaces)
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:03 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0