partition> print
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm     403 -  2415        9.77GB    (2013/0/0)   20484288
  1       swap    wu       0 -   402        1.96GB    (403/0/0)     4100928
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm    2416 - 14068       56.54GB    (11653/0/0) 118580928
  7 unassigned    wm   14069 - 14086       89.44MB    (18/0/0)       183168

 

Doo aver creato la slice 7 sul disco primario:

aaggna02@root / > prtvtoc /dev/rdsk/c1t0d0s0 | fmthard -s - /dev/rdsk/c1t1d0s0

aaggna02@root / > format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number):


aaggna02@root / > metadb -a -f -c 3 c1t0d0s7

aaggna02@root / > metadb
        flags           first blk       block count
     a        u         16              8192            /dev/dsk/c1t0d0s7
     a        u         8208            8192            /dev/dsk/c1t0d0s7
     a        u         16400           8192            /dev/dsk/c1t0d0s7

aaggna02@root / > metainit -f d10 1 1 c1t0d0s0
d10: Concat/Stripe is setup

aaggna02@root / > metainit -f d20 1 1 c1t1d0s0
d20: Concat/Stripe is setup

aaggna02@root / > metainit d0 -m d10
d0: Mirror is setup


aaggna02@root / > metaroot d0

aaggna02@root / > more /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t0d0s1       -       -       swap    -       no      -
/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      -
/dev/dsk/c1t0d0s6       /dev/rdsk/c1t0d0s6      /space  ufs     2       yes     -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -


aaggna02@root / > reboot

aaggna02@root / > metattach d0 d20
d0: submirror d20 is attached

aaggna02@root / > metastat
d0: Mirror
    Submirror 0: d10
      State: Okay        
    Submirror 1: d20
      State: Resyncing   
    Resync in progress: 0 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 20484288 blocks (9.8 GB)

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


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


Device Relocation Information:
Device   Reloc  Device ID
c1t1d0   Yes    id1,sd@SSEAGATE_ST373207LSUN72G_46335CW2____________3KT35CW2
c1t0d0   Yes    id1,sd@SSEAGATE_ST373207LSUN72G_47338QNX____________3KT38QNX

 

format
partition> print
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm     403 -  2415        9.77GB    (2013/0/0)   20484288
  1       swap    wu       0 -   402        1.96GB    (403/0/0)     4100928
  2     backup    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm    2416 - 14068       56.54GB    (11653/0/0) 118580928
  7 unassigned    wm   14069 - 14086       89.44MB    (18/0/0)       183168

partition>


format> quit

aaggna02@root / > metainit -f d11 1 1 c1t0d0s1
d11: Concat/Stripe is setup
aaggna02@root / > metainit -f d21 1 1 c1t1d0s1
d21: Concat/Stripe is setup
aaggna02@root / > metainit d1 -m d11
d1: Mirror is setup
aaggna02@root / > metattach d1 d21
d1: submirror d21 is attached

aaggna02@root / > metainit -f d12 1 1 c1t0d0s6
d12: Concat/Stripe is setup
aaggna02@root / > metainit -f d22 1 1 c1t1d0s6
d12: Concat/Stripe is setup
aaggna02@root / > metainit d2 -m d12
d2: Mirror is setup
aaggna02@root / > metattach d2 d22
d2: submirror d12 is attached

 


"/etc/vfstab" 12 lines, 403 characters
aaggna02@root / > more etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/md/dsk/d1  -       -       swap    -       no      -
/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      -
/dev/md/dsk/d2  /dev/md/rdsk/d2 /space  ufs     2       yes     -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -

 

 


aaggna02@root / > metainit -f d13 1 1 c1t0d0s7
d13: Concat/Stripe is setup
aaggna02@root / > metainit -f d23 1 1 c1t1d0s7
d23: Concat/Stripe is setup
aaggna02@root / >
aaggna02@root / > metainit d3 -m d13
d3: Mirror is setup
aaggna02@root / > metattach d3 d23
d3: submirror d23 is attached

ls -la /dev/dsk/c1t1d0s0
lrwxrwxrwx   1 root     root          43 Apr 22 15:56 /dev/dsk/c1t1d0s0 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:a


aaggna02@root / > eeprom "nvramrc=devalias mirror /pci@1c,600000/scsi@2/sd@1,0:a"
aaggna02@root / > eeprom "use-nvramrc?=true"