Périphériques

Périphériques


Cette documentation n'est utile
que pour l'administration de LIDO

Les périphériques sont ici décrits avec leur fournisseur et leur emploi par machine.

Fournisseurs :

archiv

Disques de archiv : On voit la composition des périphériques avec la commande dmesg :
..............................
sd0 at esp0 target 3 lun 0
sd0: 
sd1 at esp0 target 1 lun 0
sd1: 
sd2 at esp0 target 2 lun 0
sd2: 
sr0 at esp0 target 6 lun 0
..............................
 
archiv est en SunOs 4.1.3 : les disques sont nommés sdxy, et les (faux) fichiers système correspondants sont /dev/sdxy.

Les sd* sont des disques, et sr0 est un CDROM.

Le "target" est le numéro de périphérique sur le bus SCSI.

On trouve physiquement sur le bus SCSI les éléments suivants :

Pour trouver la configuration matérielle des disques (que l'on devrait restituer en cas de remplacement d'un disque), on utilise la commande /usr/etc/format : en séquence, on fait un choix de disque, puis on va dans le menu partition, et enfin on i Voici un exemple complet sur le disque interne :
archiv{root}1: format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
        0. sd0 at esp0 slave 24
           sd0: 
        1. sd1 at esp0 slave 8
           sd1: 
        2. sd2 at esp0 slave 16
           sd2: 
Specify disk (enter its number): 0
selecting sd0: 
[disk formatted, defect list found]
Warning: Current Disk has mounted partitions.


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        show       - translate a disk address
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        quit
format> p


PARTITION MENU:
        a      - change `a' partition
        b      - change `b' partition
        c      - change `c' partition
        d      - change `d' partition
        e      - change `e' partition
        f      - change `f' partition
        g      - change `g' partition
        h      - change `h' partition
        select - select a predefined table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        quit
partition> print
Current partition table (original sd0):
        partition a - starting cyl      0, # blocks    40176 (124/0/0)
        partition b - starting cyl    124, # blocks   100116 (309/0/0)
        partition c - starting cyl      0, # blocks   406296 (1254/0/0)
        partition d - starting cyl      0, # blocks        0 (0/0/0)
        partition e - starting cyl      0, # blocks        0 (0/0/0)
        partition f - starting cyl      0, # blocks        0 (0/0/0)
        partition g - starting cyl    433, # blocks   266004 (821/0/0)
        partition h - starting cyl      0, # blocks        0 (0/0/0)

partition> q
Et voici les données qui correspondent aux autres disques d'archiv :
1. sd1 at esp0 slave 8
sd1: 

selecting sd1: 
[disk formatted, defect list found]
Warning: Current Disk has mounted partitions.

Current partition table (original sd1):
        partition a - starting cyl      0, # blocks   400350 (314/0/0)
        partition b - starting cyl      0, # blocks        0 (0/0/0)
        partition c - starting cyl      0, # blocks  2672400 (2096/0/0)
        partition d - starting cyl      0, # blocks        0 (0/0/0)
        partition e - starting cyl      0, # blocks        0 (0/0/0)
        partition f - starting cyl      0, # blocks        0 (0/0/0)
        partition g - starting cyl    314, # blocks  2272050 (1782/0/0)
        partition h - starting cyl      0, # blocks        0 (0/0/0)
.....................................................................

2. sd2 at esp0 slave 16
sd2: 
selecting sd2: 
[disk formatted, defect list found]
Warning: Current Disk has mounted partitions.

Current partition table (original sd2):
        partition a - starting cyl      0, # blocks        0 (0/0/0)
        partition b - starting cyl      0, # blocks        0 (0/0/0)
        partition c - starting cyl      0, # blocks  7861668 (3567/0/0)
        partition d - starting cyl      0, # blocks        0 (0/0/0)
        partition e - starting cyl      0, # blocks        0 (0/0/0)
        partition f - starting cyl      0, # blocks        0 (0/0/0)
        partition g - starting cyl      0, # blocks  3874632 (1758/0/0)
        partition h - starting cyl   1758, # blocks  3876836 (1759/0/0)
La commande df permet de voir les disques montés, et (en SunOs 4.1.3) leur occupation :

archiv:/home1/avin 6 >df
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/sd0a              18727   13989    2866    83%    /
/dev/sd1a             196798  163142   13977    92%    /usr
/dev/sd1g            1125255  142868  869862    14%    /d1
/dev/sd0g             124249   38143   73682    34%    /d0
/dev/sd2g            1822018 1363025  276792    83%    /d2
/dev/sd2h            1823120 1410040  230768    86%    /d3
stel:/d0/usr/lang     124249   78508   33317    70%    /usr/lang
stel:/d0/local/share  124249   78508   33317    70%    /share
stel:/d0/local/exec/sun4/bin
                      124249   78508   33317    70%    /import/bin
stel:/d0/local/exec/sun4/lib
                      124249   78508   33317    70%    /import/lib
stel:/d0/usr/guide    124249   78508   33317    70%    /usr/guide
sol:/d4/archiv       2097151  353723  910738    28%    /sauve

On voit que sur le disque physique interne (sd0), il y a deux partitions, sd0a qui correspond à la racine, et sd0g qui correspond à /d0.

De même, /usr et /d1 sont sur le disque physique sd1, et /d2 et /d3 sont sur le disque physique sd2.

Les sauvegardes ont été effectuées comme suit :

stel

alix

On voit la composition des disques de alix avec la commande dmesg :
esp0 at espdma0: SBus slot f 0x800000 sparc ipl 4
sd0 at esp0: target 0 lun 0
sd0 is /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@0,0
	
sd1 at esp0: target 1 lun 0
sd1 is /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@1,0
	
sd3 at esp0: target 3 lun 0
sd3 is /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0
	

alix est en Solaris 2.4 : les disques sont nommés sdx, et les (faux) fichiers système correspondants sont /dev/dsk/c0txd0sy : c0 pour le premier bus SCSI, tx pour le numéro de target (périphérique SCSI), d0 toujou On trouve physiquement sur le bus SCSI les éléments suivants : La commance /usr/sbin/format donne la partition des disques (voir son utilisation dans le paragraphe de archiv) :

AVAILABLE DISK SELECTIONS:
       0. c0t0d0 
          /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@0,0
       1. c0t1d0 
          /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@1,0
       2. c0t3d0 
          /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0

............................................................


Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.

Current partition table (original):
Total disk cylinders available: 3500 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size       Blocks
  0 unassigned    wm       0 - 1749        2.01GB    (1750/0/0)
  1 unassigned    wm    1750 - 3499        2.01GB    (1750/0/0)
  2 unassigned    wm       0               0         (0/0/0)
  3 unassigned    wm       0               0         (0/0/0)
  4 unassigned    wm       0               0         (0/0/0)
  5 unassigned    wm       0               0         (0/0/0)
  6 unassigned    wm       0               0         (0/0/0)
  7 unassigned    wm       0               0         (0/0/0)

............................................................

selecting c0t1d0
[disk formatted]
Warning: Current Disk has mounted partitions.

Current partition table (original):
Total disk cylinders available: 3500 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size       Blocks
  0 unassigned    wm       0               0         (0/0/0)
  1 unassigned    wm       0               0         (0/0/0)
  2 unassigned    wm       0 - 3499        4.03GB    (3500/0/0)
  3 unassigned    wm       0               0         (0/0/0)
  4 unassigned    wm       0               0         (0/0/0)
  5 unassigned    wm       0               0         (0/0/0)
  6 unassigned    wm       0 - 3499        4.03GB    (3500/0/0)
  7 unassigned    wm       0               0         (0/0/0)

............................................................

selecting c0t3d0
[disk formatted]
Warning: Current Disk has mounted partitions.

Current partition table (original):
Total disk cylinders available: 2036 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size       Blocks
  0       root    wm       0 - 1904      937.62MB    (1905/0/0)
  1       swap    wu    1905 - 2035       64.48MB    (131/0/0)
  2     backup    wm       0 - 2035     1002.09MB    (2036/0/0)
  3 unassigned    wm       0               0         (0/0/0)
  4 unassigned    wm       0               0         (0/0/0)
  5 unassigned    wm       0               0         (0/0/0)
  6 unassigned    wm       0               0         (0/0/0)
  7 unassigned    wm       0               0         (0/0/0)

La commande df permet de voir les disques montés :
alix:/home1/avin 1 >df
/                  (/dev/dsk/c0t3d0s0 ):  819566 blocs   429786 fichiers
/proc              (/proc             ):       0 blocs      953 fichiers
/dev/fd            (fd                ):       0 blocs        0 fichiers
/d3                (/dev/dsk/c0t1d0s6 ): 2321888 blocs  1935422 fichiers
/tmp               (swap              ):  341024 blocs    12531 fichiers
/d1                (/dev/dsk/c0t0d0s0 ): 2698542 blocs   980057 fichiers
/d2                (/dev/dsk/c0t0d0s1 ): 1983580 blocs   981267 fichiers
/home              (stel:/home        ):  153574 blocs       -1 fichiers
/elodie            (archiv:/d1/elodie ): 1964774 blocs       -1 fichiers
/home1             (archiv:/d2/home1  ):  959152 blocs       -1 fichiers
En Solaris, on doit lancer la commande df -k pour voir l'occupation des disques :
alix:/home1/avin 5 >df -k 
Système fichiers          Ko    util   dispo capacité  Monté sur
/dev/dsk/c0t3d0s0     901526  488923  322453    60%    /
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
/dev/dsk/c0t1d0s6    3968692 2807748  764084    79%    /d3
swap                  170568      12  170556     0%    /tmp
/dev/dsk/c0t0d0s0    1983762  634491 1150901    36%    /d1
/dev/dsk/c0t0d0s1    1983762  991972  793420    56%    /d2
stel:/home            383023  306236   38485    89%    /home
archiv:/d1/elodie    1125255  142868  869862    14%    /elodie
archiv:/d2/home1     1822018 1342442  297375    82%    /home1
On voit que le disque interne (de 1 Go) est en une seule partition , /d1 et /d2 sont sur le premier disque de 4 Go (adresse 0), et /d3 sur le second disque de 4 Go (adresse 1).

Les sauvegardes ont été effectuées comme suit :