Sponsored Content
Full Discussion: Help with mirroring rpool
Operating Systems Solaris Help with mirroring rpool Post 302995688 by Zorken on Monday 10th of April 2017 03:50:44 PM
Old 04-10-2017
Help with mirroring rpool

Hello,

I need some help mirroring my rpool.
I have a 60gb ssd running the rpool alone and want to mirror it for redundancy so I bought a 120gb ssd that I found for a good price. 60gb drives aren't as easy to find at a good price anymore it seems.

I (a bit naively) thought after reading http://docs.oracle.com/cd/E19253-01/...dep/index.html that it would be as easy to mirror as a storage pool using just zpool attach pool drive1 drive2, but I found out it is not.

Code:
:~# zpool status rpool
  pool: rpool
 state: ONLINE
  scan: scrub repaired 0 in 10m47s with 0 errors on Sun Apr  2 00:06:47 2017

config:

        NAME      STATE     READ WRITE CKSUM
        rpool     ONLINE       0     0     0
          c3d0s0  ONLINE       0     0     0

errors: No known data errors

:~# zpool attach rpool c3d0 c7d0
Error: c7d0s0 is part of an EFI(GPT) labeled device.
A required boot partition (BIOS Boot) was not found.
cannot attach c7d0 to c3d0: All disk labeling/system requirements are not satisfied.

c3d0 being the existing drive and c7d0 the new drive.

Trying to google the answer and looking in these forums I found some information (ZFS mirroring and Create a boot disk mirror on Solaris 10 x86) on how to proceed but I just can not get it to work properly. I am probably doing something wrong with partitioning but need help figuring out what.

Here is what I have tried and where I get stuck.
Code:
:~# fdisk -B c7d0p0
:~# fdisk -W - c7d0p0

* /dev/rdsk/c7d0p0 default fdisk table
* Dimensions:
*    512 bytes/sector
*     56 sectors/track
*    224 tracks/cylinder
*   18689 cylinders
*
* systid:
*    1: DOSOS12
*    2: PCIXOS
*    4: DOSOS16
*    5: EXTDOS
*    6: DOSBIG
*    7: FDISK_IFS
*    8: FDISK_AIXBOOT
*    9: FDISK_AIXDATA
*   10: FDISK_0S2BOOT
*   11: FDISK_WINDOWS
*   12: FDISK_EXT_WIN
*   14: FDISK_FAT95
*   15: FDISK_EXTLBA
*   18: DIAGPART
*   65: FDISK_LINUX
*   82: FDISK_CPM
*   86: DOSDATA
*   98: OTHEROS
*   99: UNIXOS
*  100: FDISK_NOVELL2
*  101: FDISK_NOVELL3
*  119: FDISK_QNX4
*  120: FDISK_QNX42
*  121: FDISK_QNX43
*  130: SUNIXOS
*  131: FDISK_LINUXNAT
*  134: FDISK_NTFSVOL1
*  135: FDISK_NTFSVOL2
*  165: FDISK_BSD
*  167: FDISK_NEXTSTEP
*  183: FDISK_BSDIFS
*  184: FDISK_BSDISWAP
*  190: X86BOOT
*  191: SUNIXOS2
*  238: EFI_PMBR
*  239: EFI_FS
*

* Id    Act  Bhead  Bsect  Bcyl    Ehead  Esect  Ecyl    Rsect      Numsect
  191   128  199    8      0       254    63     1023    12544      234422272
  0     0    0      0      0       0      0      0       0          0
  0     0    0      0      0       0      0      0       0          0
  0     0    0      0      0       0      0      0       0          0

:~# prtvtoc /dev/rdsk/c3d0s0 | fmthard -s - /dev/rdsk/c7d0s0
Partition 0 not aligned on cylinder boundary: "       0      2    00      16065 117162045 117178109"

If I run format and remove the EFI partition, create a new solaris2 partition and run zpool attach, the drive returns to EFI labels. Should it do that or am I missing something there too?

Any help resolving this is much appreciated.

Code:
:~# cat /etc/release
Oracle Solaris 11.3 X86

 

10 More Discussions You Might Find Interesting

1. Solaris

rpool issue

My system is showing following .. how can i remove this rpool .. ? zpool status -v rpool pool: rpool state: UNAVAIL status: One or more devices could not be opened. There are insufficient replicas for the pool to continue functioning. action: Attach the missing device and... (0 Replies)
Discussion started by: fugitive
0 Replies

2. Solaris

How to change hostid saved in rpool?

Hi, We have a Sun M5000. I am now trying to boot the second system domain by using the boot disk (a mirrored boot disk actually) of the first domain (if succeed then no OS installation is needed for the second domain). I got the following errors: SPARC Enterprise M5000 Server, using Domain... (21 Replies)
Discussion started by: aixlover
21 Replies

3. Solaris

ZFS rpool physical disk move

I'd like to finish setting up this system and then move the secondary or primary disk to another system that is the exact same hardware. I've done things like this in the past with ufs and disk suite mirroring just fine. But I have yet to do it with a zfs root pool mirror. Are there any... (1 Reply)
Discussion started by: Metasin
1 Replies

4. Solaris

Create rpool manually

Hi All; My server's root partition was encapsulated with VxVM, I try to convert it to ZFS. I successfully de-encapsulated root. Now I try to mirror 2 root disks using ZFS. But I receive following error: # zpool create rpool mirror c0t0d0s0 c0t1d0s0 invalid vdev specification use '-f' to... (6 Replies)
Discussion started by: reseki
6 Replies

5. Solaris

How to access content of problematic rpool ?

Hi guys, I have a Solaris 10 x86 server with 2 physical disks. It had a ZFS rpool on the first disk c0t0d0s0. The server stopped booting with some error like "Cannot find bootfile". I booted with Solaris DVD and re-installed the operating system on the second disk with a different pool... (0 Replies)
Discussion started by: ARPcPro
0 Replies

6. Solaris

Resize rpool

Hi, I have rpool about 500G. So i want to use 210G from rpool and assign mount point as /database. I seek in google and couldn't found it. Does anyone know how to achieve it? Thanks. (2 Replies)
Discussion started by: mzainal
2 Replies

7. Solaris

Zfs rpool size

Hi everyone, I am doing housekeeping of my Solaris 11 for zfs snapshot to reduce the snapshot size. I have already cleared the / file system, however the rpool size still not reduced. Filesystem Size Used Available Capacity Mounted on rpool/ROOT/solaris-2 98G 6.9G ... (2 Replies)
Discussion started by: freshmeat
2 Replies

8. Solaris

Need help to understand zfs rpool space allocation

Hi, I am unable to understand that, in one of my servers while df -kh Filesystem Size Used Available Capacity Mounted on rpool/ROOT/solaris-2 98G 11G 29G 29% / Even the Root FS filled on 40gb and system becomes unstable. it is showing... (4 Replies)
Discussion started by: anuragr
4 Replies

9. Solaris

Trying to create ZFS slice on rpool

I have a 240GB disk as rpool. I have installed Solaris 11.3 to a partition which is 110GB. Now I have another 130GB which is unallocated. I want to use that additional space as a temporary folder to be shared between Solaris and Linux. The additional space had no /dev/dsk/c2t4... entry so I used... (8 Replies)
Discussion started by: kebabbert
8 Replies

10. Solaris

How to increase the size of rpool in Solaris 11?

Hi Please let me know how to increase the size of rpool in solaris 11 in ldom. I know how to map the new LUN to LDOM after that please let me know the procedure to increase the rpool and how to identify new disk in OBP level of ldom as I need to set the new/lun to be my new boot device. (5 Replies)
Discussion started by: hb00
5 Replies
All times are GMT -4. The time now is 01:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy