How to determine if i have spare disks in Solaris?


 
Thread Tools Search this Thread
Operating Systems Solaris How to determine if i have spare disks in Solaris?
# 1  
Old 05-13-2016
How to determine if i have spare disks in Solaris?

Hi Guys,
obviously new to SOLARIS SUN SPARC 5.10
I would really appreciate if you help me see how to find free disks available in my system.
Like i am a linux admin. If i want to grow a file system in linux. I would first have a look at my volume groups to see if they have free PEs if not then i will look for another disks.
Does it work same way in Solaris? Any help would be much appreciated
# 2  
Old 05-13-2016
https://docs.oracle.com/cd/E26505_01/index.html

Start there and report back if you have questions the documentation can't answer.
# 3  
Old 05-13-2016
thanks for your answer.
I have been through the guide. The part i did not understand is how to see if i have spare disk available?

I understood the concept of slice and mirror. but did not understand how to see free disk.I am also putting some outputs. below
I am highlighting the file system to be expanded

Code:
bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0       15G   9.1G   5.5G    63%    /
/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                    55G   1.6M    55G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr/libc_psr_hwcap2.so.1
                        15G   9.1G   5.5G    63%    /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                        15G   9.1G   5.5G    63%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
/dev/md/dsk/d20         25G   9.8G    15G    41%    /var
swap                    55G   184K    55G     1%    /tmp
swap                    55G    48K    55G     1%    /var/run
/dev/md/dsk/d30         49G    19G    30G    40%    /oracle
/dev/md/dsk/d90         30G   794M    29G     3%    /www
/dev/md/dsk/d70         85G    21G    62G    26%    /oradata
/dev/md/dsk/d50         10G   6.3G   4.0G    61%    /export/home
/dev/md/dsk/d40         20G    13G   6.1G    69%    /usr/local
/dev/md/dsk/d60         20G    13G   6.9G    65%    /usr/local/netscape

bash-3.2# metastat
d90: Mirror
    Submirror 0: d91
      State: Okay
    Submirror 1: d92
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 64169856 blocks (30 GB)

d91: Submirror of d90
    State: Okay
    Size: 64169856 blocks (30 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t2d0s6          0     No            Okay   Yes


d92: Submirror of d90
    State: Okay
    Size: 64169856 blocks (30 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t3d0s6          0     No            Okay   Yes


d70: Mirror
    Submirror 0: d71
      State: Okay
    Submirror 1: d72
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 180379776 blocks (86 GB)

d71: Submirror of d70
    State: Okay
    Size: 180379776 blocks (86 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t2d0s4          0     No            Okay   Yes


d72: Submirror of d70
    State: Okay
    Size: 180379776 blocks (86 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t3d0s4          0     No            Okay   Yes


d60: Mirror
    Submirror 0: d61
      State: Okay
    Submirror 1: d62
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 41945472 blocks (20 GB)

d61: Submirror of d60
    State: Okay
    Size: 41945472 blocks (20 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t2d0s3          0     No            Okay   Yes


d62: Submirror of d60
    State: Okay
    Size: 41945472 blocks (20 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t3d0s3          0     No            Okay   Yes


d50: Mirror
    Submirror 0: d51
      State: Okay
    Submirror 1: d52
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 22204032 blocks (10 GB)

d51: Submirror of d50
    State: Okay
    Size: 22204032 blocks (10 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s6          0     No            Okay   Yes


d52: Submirror of d50
    State: Okay
    Size: 22204032 blocks (10 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s6          0     No            Okay   Yes


d40: Mirror
    Submirror 0: d41
      State: Okay
    Submirror 1: d42
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 41945472 blocks (20 GB)

d41: Submirror of d40
    State: Okay
    Size: 41945472 blocks (20 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s5          0     No            Okay   Yes


d42: Submirror of d40
    State: Okay
    Size: 41945472 blocks (20 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s5          0     No            Okay   Yes


d30: Mirror
    Submirror 0: d31
      State: Okay
    Submirror 1: d32
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 104873856 blocks (50 GB)

d31: Submirror of d30
    State: Okay
    Size: 104873856 blocks (50 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s4          0     No            Okay   Yes


d32: Submirror of d30
    State: Okay
    Size: 104873856 blocks (50 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s4          0     No            Okay   Yes


d20: Mirror
    Submirror 0: d21
      State: Okay
    Submirror 1: d22
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 52447104 blocks (25 GB)

d21: Submirror of d20
    State: Okay
    Size: 52447104 blocks (25 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s3          0     No            Okay   Yes


d22: Submirror of d20
    State: Okay
    Size: 52447104 blocks (25 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s3          0     No            Okay   Yes


Device Relocation Information:
Device   Reloc  Device ID
c1t3d0   Yes    id1,sd@n5000cca00092acc0
c1t2d0   Yes    id1,sd@n5000cca0009269d8
c1t1d0   Yes    id1,sd@n5000c5000f8771f3
c1t0d0   Yes    id1,sd@n5000c5000f8915b3


Last edited by DukeNuke2; 05-13-2016 at 10:28 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to get spare disks working

Dears how can i make this spare disks working online to replace a defective disks vxdisk list DEVICE TYPE DISK GROUP STATUS c0t10d0s2 sliced - - error c0t11d0s2 sliced disk08 rootdg online c1t16d0s2 sliced ... (3 Replies)
Discussion started by: thecobra151
3 Replies

2. AIX

How to determine the physical volume fo the disks

This is the report I got running the comand rptconf, but I would like to know what is the capacity of the disks installed into our server power 6 with AIX System Model: IBM,7778-23X Machine Serial Number: 1066D5A Processor Type: PowerPC_POWER6 Processor Implementation Mode: POWER 6... (6 Replies)
Discussion started by: cucosss
6 Replies

3. Solaris

list all solaris Disks

Hi Guy's can anyone advise me .. I have mapped some of EMC devices from EMC Storage to Sun Solaris server and I want to list all the disk which are assigned from the storage can anyone advise me with the command how to can I list all the disk in Solaris Thanks .. (2 Replies)
Discussion started by: roooooot
2 Replies

4. HP-UX

[Solved] How to determine that you have 2 disks mirrored ?

hi every body i want to know which command tell me more detailes to know the 2 disks mirrored or not ? in group like vg00 (5 Replies)
Discussion started by: maxim42
5 Replies

5. Shell Programming and Scripting

getting number of disks in solaris

Friends, i have used the following code to get the number of disks in solaris echo | pfexec format | egrep -v "Searching|AVAILABLE|Specify|^$|@" | wc -l is there a better way to get the same result (5 Replies)
Discussion started by: achak01
5 Replies

6. SuSE

SLES11 - RAID6 all disks marked as Spare

Hello, After a replacement of the motherboard of my server, all disks belonging to a raid6 are now marked as spare. Is there any way to mark those disks as active and restore the raid6? $ cat /proc/mdstat Personalities : md1 : inactive sda1(S) sdk1(S) sdj1(S) sdi1(S) sdh1(S)... (0 Replies)
Discussion started by: xavix
0 Replies

7. Solaris

disks in solaris

whats the command to find name of all disks. Is it iostat -En ? (1 Reply)
Discussion started by: vikashtulsiyan
1 Replies

8. Solaris

Solaris x86 - 2 new disks

Have a compaq dl380 proliant installed with solaris.. It has a smart array 5i controller.. currently I have 2 18gb disks - mirrored as far as I can see... I have just put in 2 36gb disks (just physically put in) How do I get solaris to recognise them so I can use them? format command - only... (2 Replies)
Discussion started by: frustrated1
2 Replies

9. Solaris

How to determine most recent Solaris 8 patch?

I have recently been assigned sys admin responsibilities for an 7-computer network running 3 Unix workstations (1 is SunFire V240 server; 2 are SunBlade 2000) and 4 PCs. Two Unix workstations are running Sun PCI III to allow a shell to host Windows 2000. I am having various problems w/ PC... (3 Replies)
Discussion started by: stringman
3 Replies

10. Filesystems, Disks and Memory

re-partition disks on solaris

hi all, i was wondering if i have some volume manager and i want to format all partitions/disks and re-create new slices can i use regular format command or what? i think veritas volume manager is already installed. (2 Replies)
Discussion started by: Bashar
2 Replies
Login or Register to Ask a Question