Buscador

martes, 25 de enero de 2011

Gestores de Volumenes (1)


Los difrentes tipos de gestor de Volumenes que tenemos en Solaris.


Los podemos diferenciar del siguiente modo:

1) /dev/md/dsk/d41  -> Solaris Volumen Manager -> metastat (xxx)

Utilizamos las hard/soft partition que se diferencian porque las soft  posibles ampliar en caliente.

-Tenemos un script que nos mira el espacio libre en cada disco. (metafree.sh)

root@xxx # /usr/bin/metafree.shsh


Unused Device                   MB Available

----------------------------------------------

WARNING: Disk c1t2d0 has overlapping partitions.


WARNING: Disk c1t3d0 has overlapping partitions.


Unpartitioned: c1t0d0           3517

Unpartitioned: c1t1d0           3517

Unpartitioned: c1t2d0           128700

Unpartitioned: c1t3d0           128700

Partition: c1t2d0s7             9

Partition: c1t3d0s7             9

----------------------------------------------


Total MB Avail: 264452

-Una vez seleccionado los discos en los que vamos a poner las particiones, lo que hacemos es comprobar que no tenemos nada en la particion indicada. Los discos en general tendran una particion total, la 2, de backup. En nuestro caso, el resultado final será, estas particiones serian las denominadas hard partitions:

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm     104 -  1134       10.01GB    (1031/0/0)   20982912
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wm       0 - 14086      136.71GB    (14087/0/0) 286698624
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0 -   103        1.01GB    (104/0/0)     2116608
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7        usr    wu       0 -     0        9.94MB    (1/0/0)         20352
En nuestro caso, el disco que hemos elegido es: c1t2d0 => Que como podemos comprobar tiene 118Gb libres.

-Los discos que disponemos: format:

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@400/pci@0/pci@8/scsi@0/sd@0,0
       1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@400/pci@0/pci@8/scsi@0/sd@1,0
       2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@400/pci@0/pci@8/scsi@0/sd@2,0
       3. c1t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@400/pci@0/pci@8/scsi@0/sd@3,0

-Las particiones existentes a nivel de soft partition son: 

root@ctm-inet2 # metastat | more
d92: Mirror
    Submirror 0: d94
      State: Okay
    Submirror 1: d91
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 31464192 blocks (15 GB)

d94: Submirror of d92
    State: Okay
    Size: 31464192 blocks (15 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d93             0     No            Okay   No

d93: Soft Partition
    Device: c1t1d0s4
    State: Okay
    Size: 31464192 blocks (15 GB)
        Device     Start Block  Dbase Reloc
        c1t1d0s4          0     No    Yes

        Extent              Start Block              Block count
             0                 13696900                 31464192


d91: Submirror of d92
    State: Okay
    Size: 31464192 blocks (15 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d90             0     No            Okay   No

d90: Soft Partition
    Device: c1t0d0s4
    State: Okay
    Size: 31464192 blocks (15 GB)
        Device     Start Block  Dbase Reloc
        c1t0d0s4          0     No    Yes

        Extent              Start Block              Block count
             0                 13696900                 31464192


d82: Mirror
    Submirror 0: d84
      State: Okay
    Submirror 1: d81
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 8405376 blocks (4,0 GB)

d84: Submirror of d82
    State: Okay
    Size: 8405376 blocks (4,0 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d83             0     No            Okay   No

d83: Soft Partition
    Device: c1t1d0s4
    State: Okay
    Size: 8405376 blocks (4,0 GB)
        Device     Start Block  Dbase Reloc
        c1t1d0s4          0     No    Yes

        Extent              Start Block              Block count
             0                  5291523                  8405376


d81: Submirror of d82
    State: Okay
    Size: 8405376 blocks (4,0 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d80             0     No            Okay   No

d80: Soft Partition
    Device: c1t0d0s4
    State: Okay
    Size: 8405376 blocks (4,0 GB)
        Device     Start Block  Dbase Reloc
        c1t0d0s4          0     No    Yes

        Extent              Start Block              Block count
             0                  5291523                  8405376


d62: Mirror
    Submirror 0: d64
      State: Okay
    Submirror 1: d61
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 4212864 blocks (2,0 GB)

d64: Submirror of d62
    State: Okay
    Size: 4212864 blocks (2,0 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d63             0     No            Okay   No

d63: Soft Partition
    Device: c1t1d0s4
    State: Okay
    Size: 4212864 blocks (2,0 GB)
        Device     Start Block  Dbase Reloc
        c1t1d0s4          0     No    Yes

        Extent              Start Block              Block count
             0                  1078658                  4212864


d61: Submirror of d62
    State: Okay
    Size: 4212864 blocks (2,0 GB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d60             0     No            Okay   No

d60: Soft Partition
    Device: c1t0d0s4
    State: Okay
    Size: 4212864 blocks (2,0 GB)
        Device     Start Block  Dbase Reloc
        c1t0d0s4          0     No    Yes

        Extent              Start Block              Block count
             0                  1078658                  4212864


d52: Mirror
    Submirror 0: d54
      State: Okay
    Submirror 1: d51
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 1078656 blocks (526 MB)

d54: Submirror of d52
    State: Okay
    Size: 1078656 blocks (526 MB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d53             0     No            Okay   No

d53: Soft Partition
    Device: c1t1d0s4
    State: Okay
    Size: 1078656 blocks (526 MB)
        Device     Start Block  Dbase Reloc
        c1t1d0s4          0     No    Yes

        Extent              Start Block              Block count
             0                        1                  1078656


d51: Submirror of d52
    State: Okay
    Size: 1078656 blocks (526 MB)
    Stripe 0:
        Device   Start Block  Dbase        State Reloc Hot Spare
        d50             0     No            Okay   No

d50: Soft Partition
    Device: c1t0d0s4
    State: Okay
    Size: 1078656 blocks (526 MB)
        Device     Start Block  Dbase Reloc
        c1t0d0s4          0     No    Yes

        Extent              Start Block              Block count
             0                        1                  1078656


d41: Mirror
    Submirror 0: d40
      State: Okay
    Submirror 1: d70
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 2116608 blocks (1,0 GB)

d40: Submirror of d41
    State: Okay
    Size: 2116608 blocks (1,0 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t2d0s4          0     No            Okay   Yes


d70: Submirror of d41
    State: Okay
    Size: 2116608 blocks (1,0 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t3d0s4          0     No            Okay   Yes


d5: Mirror
    Submirror 0: d25
      State: Okay
    Submirror 1: d15
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 20982912 blocks (10 GB)

d25: Submirror of d5
    State: Okay
    Size: 20982912 blocks (10 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s5          0     No            Okay   Yes


d15: Submirror of d5
    State: Okay
    Size: 20982912 blocks (10 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s5          0     No            Okay   Yes


d1: Mirror
    Submirror 0: d21
      State: Okay
    Submirror 1: d11
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 16790400 blocks (8,0 GB)

d21: Submirror of d1
    State: Okay
    Size: 16790400 blocks (8,0 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s1          0     No            Okay   Yes


d11: Submirror of d1
    State: Okay
    Size: 16790400 blocks (8,0 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s1          0     No            Okay   Yes


d0: Mirror
    Submirror 0: d20
      State: Okay
    Submirror 1: d10
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 20982912 blocks (10 GB)

d20: Submirror of d0
    State: Okay
    Size: 20982912 blocks (10 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s0          0     No            Okay   Yes


d10: Submirror of d0
    State: Okay
    Size: 20982912 blocks (10 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s0          0     No            Okay   Yes


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

d32: Submirror of d30
    State: Okay
    Size: 31464192 blocks (15 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s3          0     No            Okay   Yes


d31: Submirror of d30
    State: Okay
    Size: 31464192 blocks (15 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s3          0     No            Okay   Yes


Device Relocation Information:
Device   Reloc  Device ID
c1t0d0   Yes    id1,sd@n5000cca0004badb0
c1t1d0   Yes    id1,sd@n5000cca00034df18
c1t3d0   Yes    id1,sd@n5000c5000bb1c3bb
c1t2d0   Yes    id1,sd@n5000c5000bb140d3

Ver Gestores de Volumenes (2)

No hay comentarios:

Publicar un comentario