Solaris UFS partitioning for the X4500

My first try at getting a Solaris partitioning (according to this howto):

Customize Disk: c6t0d0
Boot Disk: c6t0d0

  Entry:                            Recommended:      Cyls   Minimum:      Cyls
================================================================================
  Slice  Mount Point               Size (Cyls)  Start Cyl     End Cyl
     0   /                               59793       1005       60797
     1   swap                             1000          1        1000
     2   overlap                         60798          0       60797     (look at comment below)
     3                                       2       1001        1002           (for meta DB)
     4                                       2       1003        1004           (for meta DB)
     5                                       0          0           0
     6                                       0          0           0
     7                                       0          0           0
================================================================================
           Solaris Partition Size:       60800 Cyls
                      OS Overhead:           3 Cyls

                  Usable Capacity:       60797 Cyls
                        Allocated:       60797 Cyls
                             Free:           0 Cyls

overlap: This partition or Solaris slice is some Solaris internal thing and covers the whole of the disk. The other partitions seem to live inside it. Just ignore it and leave the values as they are.

In MB this amounts to:

  Slice  Mount Point                 Size (MB)
     0   /                              469030
     1   swap                             7844
     2   overlap                        476913
     3                                      15
     4                                      15

Setting up RAID mirroring

We'll set up the RAID mirror on the second disk that can be used as a boot disk. Using the hd command, we can identify this disk as c6t4.

The prtvtoc command can be used to print the partition table of a disk (Note that for the disk name, the special slice s2 is used, i.e. the one named overlap that contains all the others):

prtvtoc /dev/dsk/c6t0d0s2
* /dev/dsk/c6t0d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      63 sectors/track
*     255 tracks/cylinder
*   16065 sectors/cylinder
*   60800 cylinders
*   60798 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00   16145325 960574545 976719869   /
       1      3    01      16065  16065000  16081064
       2      5    00          0 976719870 976719869
       3      0    00   16081065     32130  16113194
       4      0    00   16113195     32130  16145324
       8      1    01          0     16065     16064

The information from the prtvtoc output can be piped into the fmthard command to create the same layout on another disk. We use this for the intended mirror disk.

 
prtvtoc /dev/dsk/c6t0d0s2 | fmthard -s - /dev/rdsk/c6t4d0s2

fmthard:  New volume table of contents now in place.

Initialize the Solaris RAID metadata table on the unassigned slices

metadb -af -c 2 /dev/dsk/c6t0d0s3 /dev/dsk/c6t0d0s4
metadb -af -c 2 /dev/dsk/c6t4d0s3 /dev/dsk/c6t4d0s4

The metadb command should report the following

metadb
        flags           first blk       block count
     a        u         16              8192            /dev/dsk/c6t0d0s3
     a        u         8208            8192            /dev/dsk/c6t0d0s3
     a        u         16              8192            /dev/dsk/c6t0d0s4
     a        u         8208            8192            /dev/dsk/c6t0d0s4
     a        u         16              8192            /dev/dsk/c6t4d0s3
     a        u         8208            8192            /dev/dsk/c6t4d0s3
     a        u         16              8192            /dev/dsk/c6t4d0s4
     a        u         8208            8192            /dev/dsk/c6t4d0s4

Further Information

-- DerekFeichtinger - 08 Jan 2009

Edit | Attach | Watch | Print version | History: r7 | r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r3 - 2009-01-09 - DerekFeichtinger
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback