Hi Jeffrey,

jeffrey huang wrote:
> Hi, Jan,
>
> After successfully install AI on SPARC(zpool/zfs created), without
> reboot, I want try a installation again, so I want to destroy the rpool.
>
> # dumpadm -d swap --> ok
> # zfs destroy rpool/dump --> ok
> # swap -l
> # swap -d /dev/zvol/dsk/rpool/swap --> failed
> Retuns error:
> /dev/zvol/dsk/rpool/swap: Not enough space
>
> The above steps works on x86.
> You can take a quick look on my machine by telnet to 10.13.30.11 with
> root.

After taking a look at machine in question, it seems that system
can't release swap device, even if only small portion is utilized
and there is sufficient memory available (machine has 8GB).

# prtconf -vp | grep Memory
Memory size: 8184 Megabytes

# swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 253,1 16 8380400 8359664

# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 13.1G 53.9G 21K /rpool
rpool/ROOT 3.07G 53.9G 18K legacy
rpool/ROOT/opensolaris 3.07G 53.9G 3.02G /
rpool/export 59.5K 53.9G 20K /export
rpool/export/home 39.5K 53.9G 19K /export/home
rpool/export/home/jack 20.5K 53.9G 20.5K /export/home/jack
rpool/swap 10G 63.9G 4.07M -

# truss swap -d /dev/zvol/dsk/rpool/swap
...
uadmin(16, 3, -2147484920) Err#12 ENOMEM
/dev/zvol/dsk/rpool/swapwrite(2, " / d e v / z v o l / d s".., 24) = 24
: write(2, " : ", 2) = 2
Not enough spacewrite(2, " N o t e n o u g h s".., 16) = 16

write(2, "\n", 1) = 1
_exit(2)


uadmin(2) is utilized for releasing swap device and as truss shows,
it fails with ENOMEM.

Since I am not sure, if this the intentional behavior,
I am CCing ZFS team - people there have better knowledge
about how swap on ZFS volume is supposed to work or if
the problem we encounter is swap generic behavior.

Thank you,
Jan



>
> -- 
> Great Thanks & Best Regards
>
> ---
> Jeffrey Huang                  SWAN: x51683, Ext: 0086-10-62673683
> Solaris QE Group                      Email: jeffrey.hu...@sun.com
>            China Engineering & Research Institute, Sun Microsystems
>          7/F Chuang Xin Plaza, Tsinghua Science Park, Beijing China
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> caiman-discuss mailing list
> caiman-disc...@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to