• UPDATE TO “Solaris Disk Partition Layout & Mirroring Scripts

    Several Months ago, I tried to use my old mirroring scripts on a new Solaris 9 install. I found that the the kernel would panic upon reboot because it was unable to mount /. I tried many things, including opening a support call with Sun. They reviewed my scripts and said that they should work, but despite repeated tries, they did not.

    In the end, I created only one metadb partition instead of two, and found that the system would boot. I attributed this to a problem with the mirror disk, until it happened to me again this week. For some reason, the implementation of Disk Suite on Solaris 9 does not accept multiple metadb partitions.

    Previously, in Solaris 8, I always created a total of four metadb partitions. Two on each drive…

    #!/bin/sh
    #Mirrorme.sh
    prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s – /dev/rdsk/c1t1d0s2
    metadb -a -f -c2 /dev/dsk/c1t0d0s3 /dev/dsk/c1t1d0s3
    metadb -a -f -c2 /dev/dsk/c1t0d0s4 /dev/dsk/c1t1d0s4

    Currently, with Solaris 9, that method does not work, and results in a kernel panic. To resolve this issue, you must create only one metadb partition on each disk. I’ve been using s3 for this, although you could use any slice you wish.

    #!/bin/sh
    #Mirrorme.sh
    prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s – /dev/rdsk/c1t1d0s2
    metadb -a -f -c2 /dev/dsk/c1t0d0s3 /dev/dsk/c1t1d0s3

    Aside from this change, the mirroring scripts continue to work. Please let me know if you find any other problems not mentioned.

    This entry was posted on Friday, September 9th, 2005 at 10:26 am and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 7 Comments

    Take a look at some of the responses we've had to this article.

    1. [...] UPDATED “Problems With Multiple MetaDB Partitions” [...]

    2. Tom Stanley
      Mar 21st
      Reply

      You say:

      “To resolve this issue, you must create only one metadb partition on each disk. I’ve been using s2 for this, although you could use any slice you wish.”

      but I think you mean s3.

    3. Have slightly different setup to you.
      bash-2.05# df -k
      Filesystem kbytes used avail capacity Mounted on
      /dev/dsk/c1t1d0s0 2497231 1857711 589576 76% /
      /proc 0 0 0 0% /proc
      mnttab 0 0 0 0% /etc/mnttab
      fd 0 0 0 0% /dev/fd
      swap 3858776 40 3858736 1% /var/run
      swap 3859168 432 3858736 1% /tmp
      /dev/dsk/c1t1d0s3 10084613 10566 9973201 1% /opt
      /dev/dsk/c1t1d0s4 18151018 1030001 16939507 6% /ora
      /dev/dsk/c1t1d0s7 1986263 60918 1865758 4% /export/home
      Have installed metadbs on slice 5 as follows:
      prtvtoc /dev/rdsk/c1t1d0s2 | fmthard -s – /dev/rdsk/c1t2d0s2
      metadb -a -f -c2 /dev/dsk/c1t1d0s5 /dev/dsk/c1t2d0s5
      metainit -f d10 1 1 c1t1d0s0
      metainit d20 1 1 c1t2d0s0
      metainit d30 -m d10
      metaroot d30
      So far so good for the root partition.
      I am not clear of what specifying the hsp001 on the last filesystem does. Is is needed to terminate the list? I guess i need to read the man pages a few more times – but perhaps you could clarify?
      TIA

      # /opt filesystem:
      metainit -f d14 1 1 c1t0d0s7
      metainit d24 1 1 c1t1d0s7
      metainit d34 -m d14
      metainit hsp001

    4. May 15th
      Reply

      I’m glad to hear things are going well so far.

      Metainit hsp001 is really an optional step. It creates an empty hot spare pool and gets rid of an annoying warning on boot. If you don’t mind seeing the warning, you can just skip this step.

    5. May 15th
      Reply

      “but I think you mean s3.”

      Indeed, I did mean to write s3… Thanks for the correction.

    6. [...] you can see, I like to leave partiton 3 and (4 UPDATED “Problems With Multiple MetaDB Partitions“) reserved to the meta databases required by Solstice Disk Suite. I also like to get the swap [...]

    7. lakshmanan
      Nov 28th
      Reply

      i am metadb created ,intel machine ,i am comand using
      metadb -a-f c0d0s0 .enter the command not created .
      this problem metadb:smartadmin:c0d0s0:is mounted on /
      why are you problem please tele me

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: metadb (140) - t (99) - prtvtoc fmthard (95) - solaris metadb (69) - clear metadb (55) - metainit hsp001 (54) - metadb solaris (46) - solaris prtvtoc fmthard (44) - metadb clear (40) - metadb "not found" (31) - how to clear metadb (26) - sun + metadb (24) - prtvtoc fmthard solaris (19) - metadb solaris 10 (19) - metadb -p (16) - metadb partition (16) - metadb sun (16) - metadb several mirrors (16) - metainit raid-10 (15) - solaris 10 metadb (14) - metadb in solaris (13) - metadb problem (12) - hsp001: is empty (12) - metadb metainit (11) - metastat: not found (11) - solaris clear metadb (11) - metadb problems (10) - solaris 9 metadb (10) - metadb RAID (10) - solaris (9) - prtvtoc metadb (9) - metadb prtvtoc (9) - fmthard in solaris (9) - metadb : is mounted on (9) - solaris fmthard example (9) - fmthard solaris (8) - metadb howto (8) - metadb solaris 8 (8) - metadb syntax (8) - solaris x86 metadb (7) - solaris fmthard prtvtoc (7) - solaris 10 create metadb (7) - solaris metadb slice (7) - clearing metadb (7) - metadb is mounted on (7) - metadb M (7) - all (6) - metadb mirroring (6) - fmthard (6) - metadb fmthard (6) - metadb -M (6) - metainit raid10 (6) - metadb x86 (6) - Solaris 8 metadb (6) - metadb mirror (6) - sun metadb (6) - metadb: is mounted on / (6) - solstice (5) - prtvtoc fmthard metadb (5) - solaris fmthard (5) - solaris raid 1 metadb (5) - solaris metadb metainit (5) - V240 RAID (5) - metadb prtvtoc fmthard (5) - multiple metadb (5) - what is metadb (5) - metadb raid 5 (5) - metadb slice (5) - solaris mirror metadb (5) - f (5) - metainit raid 10 (5) - metadb -d (4) - prtvtoc solaris (4) - fmthard metainit (4) - prtvtoc fmthard metainit (4) - solaris metadb partition (4) - solaris 9 fmthard (4) - metainit prtvtoc (4) - metainit solaris (4) - how to create METADB (4) - prtvtoc+fmthard (4) - Solaris metadb prtvtoc (4) - metadb, solaris 9 (4) - mss (4) - partition metadb (4) - Clear metadb in Solaris (4) - how to create metadb in solaris 10 (4) - create metadb solaris 10 (4) - clear metadb solaris (4) - metadb solaris 7 (4) - http://spiralbound.net/2005/09/09/problems-with-multiple-metadb-partitions (4) - metadb not found (4) - solaris prtvtoc (3) - solaris metainit (3) - solaris "raid 10" metainit (3) - solaris metainit "raid 10" (3) - prtvtoc in solaris (3) - "raid 10" metainit (3) - create metadb (3) - rebuilding metadb (3) - prtvtoc and fmthard (3) - metainit problem (3) - prtvtoc fmthard solaris 10 (3) - sun v240 raid (3) - metadb is mounted (3) - metadb raid5 (3) - how to clear metadb in solaris (3) - solaris 8 prtvtoc (3) - mirror metadb (3) - DiskSuite metadb partition (3) - solaris 10 metainit (3) - create metadb partition (3) - solaris metadb create (3) - sun v240 disk mirror (3) - clearing metadb in solaris (3) - metadb -c (3) - solaris raid1 metadb (3) - metadb solaris mirror (3) - solaris metadb clear (3) - solaris x86 prtvtoc fmthard (3) - mirroring on v240 (3) - mirroring metadb (3) - solaris create metadb (3) - metainit raid 1 (3) - clearing the metadb (3) - solaris 10 clear metadb (3) - using metadb (3) - metadb: is mounted on (3) - metadb on a mounted partition (3) - metainit multiple disks (2) - metainit solaris 10 (2) - solaris 10 fmthard (2) - 3 metadb (2) - How to mirror on V240 (2) - solaris 10 metadb metainit (2) - solaris raid kernel panic (2) - metadb not found in solaris (2) - prtvtoc (2) - sun v240 boot issue mirror (2) - V240 solaris 10 mirror panic (2) - solaris metainit create metadb (2) - solaris mirror fmthard prtvtoc (2) - solaris 9 prtvtoc (2) - prtvtoc solaris fmthard (2) - SunFire V240 RAID (2) - solaris metadb -a (2) - solaris mirror fmthard (2) - raid10 solaris (2) - metainit "RAID 5" (2) - metadb -a in solaris (2) -