root@solaris:~# echo | format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1d0 <Unknown-Unknown-0001-40.00GB>
/virtual-devices@100/channel-devices@200/disk@0
Specify disk (enter its number): Specify disk (enter its number):
root@solaris:~# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 39.8G 5.98G 33.8G 15% 1.00x ONLINE -
root@solaris:~# zpool status
rool: rpool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c1d0 ONLINE 0 0 0
errors: No known data errors
Adding a disk 80 GiB
#ssh -l root solaris
Oracle Corporation SunOS 5.11 11.4 Aug 2018
root@solaris:~#
root@solaris:~#
root@solaris:~# echo | format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1d0 <Unknown-Unknown-0001-40.00GB>
/virtual-devices@100/channel-devices@200/disk@0
1. c1d1 <SUN-DiskImage-80GB cyl 2273 alt 2 hd 96 sec 768>
/virtual-devices@100/channel-devices@200/disk@1
Specify disk (enter its number): Specify disk (enter its number):
root@solaris:~# zpool status
pool: rpool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c1d0 ONLINE 0 0 0
errors: No known data errors
root@solaris:~# zpool attach rpool c1d0 c1d1
Make sure to wait until resilver is done before rebooting.
root@solaris:~# zpool status
pool: rpool
state: DEGRADED
status: One or more devices are currently being resilvered. The pool will
continue to function in a degraded state.
action: Wait for the resilver to complete.
Run 'zpool status -v' to see device specific details.
scan: resilver in progress since Wed Jul 7 16:13:56 2021
5.99G scanned
177M resilvered at 138M/s, 0.00% done, 44s to go
config
NAME STATE READ WRITE CKSUM
rpool DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
c1d0 ONLINE 0 0 0
c1d1 DEGRADED 0 0 0 (resilvering)
errors: No known data errors
root@solaris:~# zpool status
pool: rpool
state: ONLINE
scan: resilvered 4.98G in 2m15s with 0 errors on Wed Jul 7 16:16:11 2021
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c1d0 ONLINE 0 0 0
c1d1 ONLINE 0 0 0
errors: No known data errors
root@solaris:~# bootadm install-bootloader -v -P rpool
Installing loader on /dev/rdsk/c1d0s0 with `/sbin/installboot -F zfs -u 11.4,5.11-11.4.0.0.1.15.0 //usr/platform/sun4v/lib/fs/zfs/bootblk /dev/rdsk/c1d0s0'...
Output from "/sbin/installboot -F zfs -u 11.4,5.11-11.4.0.0.1.15.0 //usr/platform/sun4v/lib/fs/zfs/bootblk /dev/rdsk/c1d0s0" was:
<END OF OUTPUT>
Installing loader on /dev/rdsk/c1d1s0 with `/sbin/installboot -F zfs -u 11.4,5.11-11.4.0.0.1.15.0 //usr/platform/sun4v/lib/fs/zfs/bootblk /dev/rdsk/c1d1s0'...
Output from "/sbin/installboot -F zfs -u 11.4,5.11-11.4.0.0.1.15.0 //usr/platform/sun4v/lib/fs/zfs/bootblk /dev/rdsk/c1d1s0" was:
<STDERR>:
bootblock version installed on /dev/rdsk/c1d1s0 is more recent or identical
Use -f to override or install without the -u option
<END OF OUTPUT>
root@solaris:~#
root@solaris:~# zpool set autoexpand=on rpool
root@solaris:~#
root@solaris:~# zpool detach rpool c1d0
root@solaris:~#
root@solaris:~# zpool status
pool: rpool
state: ONLINE
scan: resilvered 4.98G in 2m15s with 0 errors on Wed Jul 7 16:16:11 2021
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c1d1 ONLINE 0 0 0
errors: No known data errors
root@solaris:~#
root@solaris:~# prtconf -vp | grep disk
disk-write-fix:
name: 'disk-label'
name: 'vdisk-helper-pkg'
bootarchive: '/ramdisk-root'
bootpath: '/virtual-devices@100/channel-devices@200/disk@0'
boot-device: 'disk net'
903451-disk: '/virtual-devices@100/channel-devices@200/disk@0'
903459-disk: '/virtual-devices@100/channel-devices@200/disk@1'
disk: '/virtual-devices@100/channel-devices@200/disk@0'
name: 'disk'
compatible: 'SUNW,sun4v-disk'
name: 'disk'
compatible: 'SUNW,sun4v-disk'
name: 'disk'
compatible: 'SUNW,ramdisk'
name: 'ramdisk-root'
root@solaris:~# eeprom | grep boot-device
boot-device=disk net
boot-device-index=0
boot-file: data not available.
root@solaris:~# eeprom boot-device=903459-disk
root@solaris:~#
root@solaris:~# eeprom| grep boot-device
root@solaris:~# init 6
# ssh -l root solaris
Oracle Corporation SunOS 5.11 11.4 Aug 2018
You have new mail.
root@solaris:~#
root@solaris:~#
root@solaris:~# zpool status
pool: rpool
state: ONLINE
scan: resilvered 4.98G in 2m15s with 0 errors on Wed Jul 7 16:16:11 2021
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c1d1 ONLINE 0 0 0
errors: No known data errors
root@solaris:~# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 79.G 5.99G 73.8G 7% 1.00x ONLINE -
root@solaris:~#
root@solaris:~#
root@solaris:~# df -h /
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/solaris 79G 2.5G 73G 4% /
root@solaris:~#
root@solaris:~#
Comments