Enter your Email


BTOI | © copyight


Dec 28, 2008
Finding free space available in a Mirror/Slice !!!

The following command can be used to find out the free space available in a Slice/Mirror.

 

metarecover -n -v < Slice/Mirror > –p

 

Example:

Suppose the slice c1t0d0s6 is of size 40GB, and there are some soft partition exists on the same. So to find out the free space available in the slice, the following command can be used.

 

bash-2.05# metarecover -v -n c1t0d0s6 -p | more

Verifying on-disk structures on c1t0d0s6.

The following extent headers were found on c1t0d0s6.

                Name  Seq#    Type               Offset               Length

                 d21     0   ALLOC                    0                   20971521

                 d22     0   ALLOC             20971521              20971521

                 d80     0   ALLOC             41943042              4194305

                NONE     0     END             83890943                    1

                NONE     0    FREE             46137347             37753596

Found 3 soft partition(s) on c1t0d0s6.

Checking sequence numbers.

c1t0d0s6: Validating soft partition metadb entries.

…<Out put truncated>

 

Here the free space is 37753596 blocks. So almost 18GB free space is available.

 

Note: The slice name can be replaced with the mirror name to find the free space in the mirror.

0 Comments:

Post a Comment

<< Home