We have installed Solaris 11.1.11.4.0 on a server.We have created a pool and trying to create zvol. Pleas refer the below steps.
-----------------------------------------------------------------------------------------------
# iostat -Eni c3t2d0 -----> shows the disk details
c3t2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: Dell Product: VIRTUAL DISK Revision: 1028 Device Id: id1,sd@n600508e000000000d5058d1edf129e0f
Size: 249.91GB <249905020928 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 55 Predictive Failure Analysis: 0
#format -----> shows that 232GB is available
1. c3t2d0 <Dell-VIRTUAL DISK-1028-232.74GB>
/pci@0,0/pci8086,2779@1/pci8086,32c@0/pci1028,1f09@8/sd@2,0
# zpool create testpool2 c3t2d0 -----> created testpool2 using c3t2d0 disk
# zpool list testpool2 -----> shows that 232G is FREE
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
testpool2 232G 85K 232G 0% 1.00x ONLINE -
# zfs list -----> shows that 228G as available
NAME USED AVAIL REFER MOUNTPOINT
testpool2 85K 228G 31K /testpool2
# zfs create -V 228G testpool2/lu1 -----> shows error while trying to create a vol
cannot create 'testpool2/lu1': out of space
# zfs create -V 227G testpool2/lu1
cannot create 'testpool2/lu1': out of spac
--------------------------------------------------------------------------------------
My queries are...
1. "zpool list testpool2" shows as 232GB is FREE but zfs list testpool2 shows 228GB is available? There is 4GB difference. May I know where it is allocated?
2. While trying to create a 228G vol it shows out of space though we have 228G is available.May I know the reason?