Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Solaris zfs mirror

Hello,


I try to setup Solaris 10 on a UCS C200 M1 server.

2 identical disks inside, Solaris is installed.


Does someone know if this procedure is ok?


! root@sungrid03:/ # cat /etc/release
                       Solaris 10 10/09 s10x_u8wos_08a X86
           Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 16 September 2009


! root@sungrid03:/ # df -h
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/tank        228G   594M   223G     1%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   8.4G   612K   8.4G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                       223G   594M   223G     1%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
rpool/ROOT/tank/var    228G   2.0G   223G     1%    /var
swap                   8.4G     0K   8.4G     0%    /tmp
swap                   8.4G    16K   8.4G     1%    /var/run
rpool/export           228G    23K   223G     1%    /export
rpool/export/home      228G    21K   223G     1%    /export/home
rpool                  228G    34K   223G     1%    /rpool
! root@sungrid03:/ #
! root@sungrid03:/ # zpool list
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
rpool   232G  3.55G   228G     1%  ONLINE  -


! root@sungrid03:/ # prtvtoc /dev/rdsk/c0t4d0s0 | fmthard -s - /dev/rdsk/c0t5d0s0
fmthard: Partition 2 specifies the full disk and is not equal
full size of disk.  The full disk capacity is 488359935 sectors.
fmthard:  New volume table of contents now in place.


! root@sungrid03:/ # zpool attach -f rpool c0t4d0s0 c0t5d0s0
Please be sure to invoke installgrub(1M) to make 'c0t5d0s0' bootable.


! root@sungrid03:/ # installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t5d0s0
Partition 0 of the disk has an incorrect offset


! root@sungrid03:/ # zpool status rpool
  pool: rpool
state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scrub: resilver in progress for 0h1m, 72.86% done, 0h0m to go
config:

        NAME          STATE     READ WRITE CKSUM
        rpool         ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c0t4d0s0  ONLINE       0     0     0
            c0t5d0s0  ONLINE       0     0     0  2.59G resilvered

errors: No known data errors

Now, the mirror seems to be set up.

What I find annoying are these messages, they confuse me.


Also: why can't I see details about the 2nd disk?


! root@sungrid03:/ # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t4d0 <DEFAULT cyl 30398 alt 2 hd 255 sec 63>
          /pci@0,0/pci8086,3408@1/pci152d,896d@0/sd@4,0
       1. c0t5d0 <DEFAULT cyl 30399 alt 2 hd 255 sec 63>
          /pci@0,0/pci8086,3408@1/pci152d,896d@0/sd@5,0
Specify disk (enter its number): 0

partition> p
Current partition table (original):
Total disk cylinders available: 30398 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       1 - 30397      232.85GB    (30397/0/0) 488327805
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wm       0 - 30397      232.86GB    (30398/0/0) 488343870
  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       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0
  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
  9 unassigned    wm       0                0         (0/0/0)             0

...

format> disk


AVAILABLE DISK SELECTIONS:
       0. c0t4d0 <DEFAULT cyl 30398 alt 2 hd 255 sec 63>
          /pci@0,0/pci8086,3408@1/pci152d,896d@0/sd@4,0
       1. c0t5d0 <DEFAULT cyl 30399 alt 2 hd 255 sec 63>
          /pci@0,0/pci8086,3408@1/pci152d,896d@0/sd@5,0
Specify disk (enter its number)[0]: 1
selecting c0t5d0
[disk formatted]
/dev/dsk/c0t5d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
format> p
WARNING - This disk may be in use by an application that has
          modified the fdisk table. Ensure that this disk is
          not currently in use before proceeding to use fdisk.
format>


-- Nick

Everyone's tags (1)
1788
Views
0
Helpful
0
Replies