[OpenIndiana-discuss] zfs iscsi lun expansion
Jim Klimov
jimklimov at cos.ru
Thu Mar 14 23:44:16 UTC 2013
On 2013-03-14 11:31, Randy S wrote:
>
> Let me refrase the question :-)
>
> If you do zfs list -t volume, you see the original size.
> If you do zfs get volsize pool/volumename, you see the new size.
>
> What would be the reason for this ?
> Will this in anyway influence the behaviour of something like zfs send and receive ? (e.g. using this to make backups to other machines).
I might be mistaken, but I think that the former lists the space used
by the volume (allocated for its data), and the latter is the limit
(max size). It might be that you created the volume and preallocated
or otherwise reserved disk space for it, and this did not happen when
you expanded it?
Anyhow, in my experiments in this area, I did create a volume, export
over iSCSI, created a ZFS pool inside, expanded the volume by changing
volsize, and had the inner pool expanded (maybe not auto, but manually).
I think it was also needed to change the partition labeling (MBR/SMI
in the test); maybe full-disk vdevs can do this automatically.
I am not sure now about intermediate steps - i.e. was it required to
reimport the volume into the client or reboot any of the experimental
hosts involved?..
>
> Rgds,
>
> R
>
>> From: sim.ple at live.nl
>> To: openindiana-discuss at openindiana.org
>> Date: Thu, 14 Mar 2013 11:15:31 +0100
>> Subject: [OpenIndiana-discuss] zfs iscsi lun expansion
>>
>>
>> Hi all
>>
>> Let's say that you have created a volume for iSCSI of 20 GB. This volume is exported through iscsi. The pool is very large, let's say 1 TB.
>>
>> Now, the iscsi lun is used and almost filled.
>>
>> Is it possible to expand this lun by modifying the size to e.g. 40GB? If yes, will this expansion than be reflected in the volume size or am I mixing things up?
>>
>> I have tried this and the lun expansion works but I don't see a diff in the volume size. So maybe somebody can explain to me how this works?
>>
>> Rgds,
>>
>> Randy
>>
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
More information about the OpenIndiana-discuss
mailing list