Help with mirroring rpool


 
Thread Tools Search this Thread
Operating Systems Solaris Help with mirroring rpool
# 1  
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

# 2  
Old 04-11-2017
have you seen this?

How to Create a Mirrored Root Pool (Post Installation)

Last edited by Don Cragun; 04-11-2017 at 03:03 AM.. Reason: Add Document title to link.
This User Gave Thanks to os2mac For This Post:
# 3  
Old 04-11-2017
Yes I have.
I have tried to follow it but zpool attach replies with EFI labeled device and disk labeling requirements not met.
See my first post for exact message.
It does not matter if I use just c3d0 c7d0 or c3d0s0 c7d0s0, I get the same error message.
# 4  
Old 04-11-2017
Hi Guys,

Am I missing something here, shouldn't this be running against slice two (s2)?

Regards

Gull04
This User Gave Thanks to gull04 For This Post:
# 5  
Old 04-11-2017
Quote:
Originally Posted by gull04
Hi Guys,

Am I missing something here, shouldn't this be running against slice two (s2)?

Regards

Gull04
Indeed.

---------- Post updated at 06:31 AM ---------- Previous update was at 06:25 AM ----------

So the basic answer here is this, If you are building your zpool with virtual storage (I.E. Luns provided from a SAN, or storage exported from the global zone into the zone) you would use the whole disk I.E. c1d0. If you are in the global zone you need to provide it with the correct slice (partition). In Solaris the default slice for an OS is slice 2. So therefore you need to create the rpool against slice 2.

Like this:

Code:
zpool attach rpool c3d0s0 c7d0s2

This User Gave Thanks to os2mac For This Post:
# 6  
Old 04-11-2017
Thank you both very much for your help.

Using # zpool attach rpool c3d0s0 c7d0s2 worked and the second disk got added to the rpool. How come the Oracle documentation only shows s0 and guides everywhere only use s0?

On to the next issue, installing grub.
Code:
# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c7d0s2
raw device must be a root slice (not s2)
Unable to gather device information for /dev/rdsk/c7d0s2

So I tried s0 instead, as it is being mentioned in the oracle documentation.
Code:
# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c7d0s0
cannot read stage1 file /boot/grub/stage1
Error opening /boot/grub/stage1
# ls -l /boot/grub/
total 3101
-rw-r--r--   1 root     bin           57 Oct 21  2011 default_video_modes.txt
-rw-r--r--   1 root     bin         5432 Nov 27 17:53 grub_cfg_net
-rw-r--r--   1 root     bin      1032704 Nov 27 17:53 grub2netx64.efi
-rw-r--r--   1 root     bin       243848 Nov 27 17:53 pxegrub2
-rw-r--r--   1 root     sys       153272 Nov 27 17:53 splash.jpg

So it seems that stage1 is nonexisting, but this is perhaps as it should be? I do not know how installgrub works.
Reading the installgrub manual #man installgrub it says that installgrub is deprecated and that bootadm install-bootloader is to be used instead. Reading the manual for bootadm did not make me much smarter so I tried running it but failed. Just in case I made a snapshot of my rpool before trying. Smilie
Code:
# bootadm install-bootloader c7d0s2
bootadm: GRUB2 installation failed

I am a bit out of my competence and comfort zone here.
How to proceed?

Last edited by Zorken; 04-11-2017 at 03:04 PM.. Reason: Post got double edited and posted somehow. Corrected for clarity.
# 7  
Old 04-12-2017
well as man bootadm specifically said NOT to use s2. I would try again with the other installer but not s2.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question