• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How To Increase rpool Size On Solaris 11 (Requires a Reboot)

by admin

With Solaris 11, Oracle introduces the new zpool split command to split the ZFS pool (SPARC / x86 ). This comes in handy to increase the size of the rpool. Below are the high level steps involved :

Steps Involved

  1. attach a mirror device to the rpool
  2. reboot off the mirror (to verify everything works).
  3. split the original disk from the pool.
  4. set the “autoexpand” property of the rpool

Detailed procedure

1. Assuming that your initial rpool has the disk c0t0d0s0 and that you have a new disk c1t1d0s0 that is the size that you want to expand to. We will attach the new device c1t1d0s0 to the exisitng rpool.

# zpool attach rpool c0t0d0s0 c1t1d0s0

2. Now wait for the resilvering to complete. You can track this with :

# zpool status rpool

3. At this point, you can reboot from the mirror disk to verify that it works.
– On Sparc, you can do this by setting OBP to boot from the mirror disk c1t1d0s0, e.g.:

# init 6      ( or init 0 if you have autoboot set to true)
ok> boot /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@1

– On x86, you would configure the system BIOS.

4. And then we detach the old sub-mirror.

# zpool split rpool oldrpool c0t0d0s0

Now if you look at the pool it will show only one device (the new disk) but at the old size. You will also see a pool called “oldrpool” with the old disk that we split off. At this point, you should be able to boot from either of the two disks, but each will be a distinct rpool.

5. In order to expand the rpool size to that of the new disks we added, we need to tell zfs to expand to the capacity of the new disk. To do so, we have to set the autoexpand property on.

# zpool set autoexpand=on rpool

Filed Under: Solaris 11, ZFS

Some more articles you might also be interested in …

  1. How to disable IPv6 in Solaris 11
  2. Solaris ZFS : How to Designate Hot Spares in a Storage Pool
  3. How to configure Shared Memory Parameters in Solaris 10,11
  4. Solaris 11.3 – Changing from iSCSI SendTargets Discovery to Static Discovery
  5. How To Delete Files on a ZFS Filesystem that is 100% Full
  6. How to measure NIC Performance/Throughput in Solaris 11 using iftop
  7. A beginners guide to Solaris performance monitoring and troubleshooting
  8. Solaris ZFS : How to replace a failed disk in rpool (x86)
  9. How to configure an IP address in Solaris 11
  10. Beginners Guide to Solaris 11 Image Packaging System (IPS)

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright