如果当前池是根池,如何将新磁盘添加到 ZFS 并使其可用于现有安装点?

Raa*_*mEE 5 solaris zfs zpool

我的 S11 服务器有以下配置:

磁盘 #1 用于 rpool,这是我想添加磁盘 #2 以增加已安装文件夹可用大小的根池,但我无法将磁盘添加到现有 rpool,因为它是根池。

有没有办法让新磁盘可用于“/”文件夹?是我创建新 zpool 并将其安装在新文件夹下的唯一选择吗?

谢谢。

拉姆EE


 root@raamee:~# zpool status
  pool: rpool
 state: ONLINE
 status: The pool is formatted using an older on-disk format. The pool can
         still be used, but some features are unavailable.
 action: Upgrade the pool using 'zpool upgrade'. Once this is done, the
         pool will no longer be accessible on older software versions.
  scan: none requested
 config:

         NAME        STATE     READ WRITE CKSUM
         rpool       ONLINE       0     0     0
           c4t0d0s0  ONLINE       0     0     0
Run Code Online (Sandbox Code Playgroud)
root@raamee:~# zfs list
NAME                       USED  AVAIL  REFER  MOUNTPOINT
rpool                      130G  4.18G  4.59M  /rpool
rpool/ROOT                 101G  4.18G    31K  legacy
rpool/ROOT/S11-GA          152M  4.18G  7.33G  /
rpool/ROOT/S11-GA/var     17.4M  4.18G  5.20G  /var
rpool/VARSHARE             180K  4.18G   180K  /var/share
rpool/dump                8.25G  4.43G  8.00G  -
rpool/guests                31K  4.18G    31K  /guests
rpool/scratch             2.52M  4.18G  2.52M  /scratch
rpool/swap                20.6G  4.81G  20.0G  -
Run Code Online (Sandbox Code Playgroud)
root@raamee:~# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c4t0d0 <FUJITSU-MBB2147RCSUN146G-0505 cyl 17845 alt 2 hd 255 sec 63>
          /pci@7b,0/pci1022,7458@11/pci1000,3060@2/sd@0,0
          /dev/chassis/SYS/HD0/disk
       1. c4t1d0 <FUJITSU-MBB2147RCSUN146G-0505-136.73GB>
          /pci@7b,0/pci1022,7458@11/pci1000,3060@2/sd@1,0
          /dev/chassis/SYS/HD1/disk
Run Code Online (Sandbox Code Playgroud)

Chr*_*s S 7

附加第二个磁盘作为第一个磁盘的镜像,等待重新同步,移除第一个磁盘,将属性设置为自动扩展。不要忘记设置启动代码或类似的东西。例子:

zpool attach rpool olddisk newdisk
...wait, check using zpool status rpool
zpool detach rpool olddisk
zpool set autoexpand=on rpool
Run Code Online (Sandbox Code Playgroud)