Проблема: есть LUN, который я получаю по FC
# fdisk -l /dev/disk/by-vdev/LVM-SAMBA
Disk /dev/disk/by-vdev/LVM-SAMBA: 107.4 GB, 107374182400 bytes, 26214400 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 524288 bytes
Создаю на нем пулл:
#zpool create -f -o ashift=12 SMB /dev/disk/by-vdev/LVM-SAMBA
#zpool list -v
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
SMB 99.5G 276K 99.5G - 0% 0% 1.00x ONLINE -
LVM-SAMBA 99.5G 276K 99.5G - 0% 0%
# fdisk -l /dev/disk/by-vdev/LVM-SAMBA
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/disk/by-vdev/LVM-SAMBA: 107.4 GB, 107374182400 bytes, 26214400 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 524288 bytes
Disk label type: gpt
# Start End Size Type Name
1 2048 26195967 99.9G Solaris /usr & zfs
9 26195968 26212351 64M Solaris reserve
Теперь я хочу увеличить размер LUN-а (из dmesg):
[1215785.131463] sd 2:0:0:8: [sdm] 91750400 4096-byte logical blocks: (375 GB/350 GiB)
[1215785.132673] sdm: detected capacity change from 107374182400 to 375809638400
# fdisk -l /dev/disk/by-vdev/LVM-SAMBA
Disk /dev/disk/by-vdev/LVM-SAMBA: 375.8 GB, 375809638400 bytes, 91750400 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 524288 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/disk/by-vdev/LVM-SAMBA1 1 26214399 104857596 ee GPT
Пытаюсь расширить пулл:
# zpool online -e SMB /dev/disk/by-vdev/LVM-SAMBA
Раздел вроде расширился:
# fdisk -l /dev/disk/by-vdev/LVM-SAMBA
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/disk/by-vdev/LVM-SAMBA: 375.8 GB, 375809638400 bytes, 91750400 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 524288 bytes
Disk label type: gpt
# Start End Size Type Name
1 2048 91731967 349.9G Solaris /usr & zfs
9 91731968 91748351 64M Solaris reserve
Но размер пула остался прежний:
# zpool list -v
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
SMB 99.5G 372K 99.5G - 0% 0% 1.00x ONLINE -
LVM-SAMBA 99.5G 372K 99.5G - 0% 0%
Что я делаю не так?
ЗЫ: с autoexpand ситуация аналогичная, за исключением того, что еще и раздел не увеличивается.