Grow zpool in Solaris

How to Grow zpool with different disk size and should be mirrored . In the Given example we have to increase the size of datapool with two disk emcpower0c(724 GB)  and  emcpower4c (730 GB) .First the add the disk with lower size in the pool and after that just attach both the disk emcpower0c  and emcpower4c .

 # zpool list

# zpool list
NAME     SIZE  ALLOC FREE  CAP HEALTH ALTROOT
datapool 1.97T 1.60T 374G  81% ONLINE -
rpool    113G  15.5G 97.5G 13% ONLINE -

# zpool add datapool emcpower0c

3 zpool add datapool emcpower0c

4 # zpool attach datapool emcpower0c emcpower4c

5.root@unixlab # zpool list

NAME        SIZE  ALLOC   FREE    CAP  HEALTH  ALTROOT

datapool   2.67T  1.60T  1.07T    59%  ONLINE  –

rpool        68G  34.0G  34.0G    49%  ONLINE  –

 

One Reply to “Grow zpool in Solaris”

Leave a Reply

Your email address will not be published. Required fields are marked *