Kenneth.Boyd at Sun.COM
2007-Jun-18 19:20 UTC
[zfs-discuss] ZFS: How to increase the size of one of the mount points
I have a cu that would like to increase a mount point with his zpool....Cu explains below. I need to increase the size of one of the mount points, i.e. /d01. I need the procedure to do this while on line. attached is the information I have on my server as you will see I have the command "zpool status" executed and also a df -h. I need to increase the size of /d01 I need the step by step command to do this sr1-ubur-06 97 =>more dfh root at pdm-eti-1 # root at pdm-eti-1 # root at pdm-eti-1 # root at pdm-eti-1 # zpool status pool: array1 state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM array1 ONLINE 0 0 0 c4t600C0FF0000000000987B02C6CA32C00d0 ONLINE 0 0 0 errors: No known data errors root at pdm-eti-1 # root at pdm-eti-1 # root at pdm-eti-1 # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 65G 5.0G 59G 8% / /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K 0% /system/contract proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab swap 15G 1.2M 15G 1% /etc/svc/volatile objfs 0K 0K 0K 0% /system/object /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1 65G 5.0G 59G 8% /platform/sun4u-us3/lib/libc_psr.so.1 /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1 65G 5.0G 59G 8% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1 fd 0K 0K 0K 0% /dev/fd swap 15G 864K 15G 1% /tmp swap 15G 64K 15G 1% /var/run /dev/md/dsk/d5 27G 27M 26G 1% /d08 /dev/md/dsk/d6 27G 3.5G 23G 14% /d09 array1 803G 24K 303G 1% /array1 array1/d1 50G 35G 15G 71% /d01 array1/d2 50G 36K 50G 1% /d02 array1/d3 50G 24K 50G 1% /d03 array1/d4 175G 24K 175G 1% /d04 array1/d5 175G 24G 151G 14% /d05 Thanks for any help on this ken -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070618/c7b2f768/attachment.html>
Eric Schrock
2007-Jun-18 19:29 UTC
[zfs-discuss] ZFS: How to increase the size of one of the mount points
The user has set an explicit quota on the filesystems (50G on d[1-3], 175G on d[4-5]). You can increase the quota using ''zfs set quota'' or eliminate it alltogether using ''zfs inherit quota''. See zfs(1M) for more information. Incidentally, ''zfs list'' is a much easier way to view this information over a combination of zpool and df. - Eric On Mon, Jun 18, 2007 at 03:20:20PM -0400, Kenneth.Boyd at sun.com wrote:> I have a cu that would like to increase a mount point with his > zpool....Cu explains below. > > I need to increase the size of one of the mount points, i.e. /d01. I > need the procedure to do this while on line. attached is the information > I have on my server > > as you will see I have the command "zpool status" executed and also a df > -h. I need to increase the size of /d01 > I need the step by step command to do this > > > sr1-ubur-06 97 =>more dfh > root at pdm-eti-1 # > root at pdm-eti-1 # > root at pdm-eti-1 # > root at pdm-eti-1 # zpool status > pool: array1 > state: ONLINE > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > array1 ONLINE 0 0 0 > c4t600C0FF0000000000987B02C6CA32C00d0 ONLINE 0 0 0 > > errors: No known data errors > root at pdm-eti-1 # > root at pdm-eti-1 # > root at pdm-eti-1 # df -h > Filesystem size used avail capacity Mounted on > /dev/md/dsk/d0 65G 5.0G 59G 8% / > /devices 0K 0K 0K 0% /devices > ctfs 0K 0K 0K 0% /system/contract > proc 0K 0K 0K 0% /proc > mnttab 0K 0K 0K 0% /etc/mnttab > swap 15G 1.2M 15G 1% /etc/svc/volatile > objfs 0K 0K 0K 0% /system/object > /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1 > 65G 5.0G 59G 8% > /platform/sun4u-us3/lib/libc_psr.so.1 > /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1 > 65G 5.0G 59G 8% > /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1 > fd 0K 0K 0K 0% /dev/fd > swap 15G 864K 15G 1% /tmp > swap 15G 64K 15G 1% /var/run > /dev/md/dsk/d5 27G 27M 26G 1% /d08 > /dev/md/dsk/d6 27G 3.5G 23G 14% /d09 > array1 803G 24K 303G 1% /array1 > array1/d1 50G 35G 15G 71% /d01 > array1/d2 50G 36K 50G 1% /d02 > array1/d3 50G 24K 50G 1% /d03 > array1/d4 175G 24K 175G 1% /d04 > array1/d5 175G 24G 151G 14% /d05 > > > Thanks for any help on this > ken >> _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock
Will Murnane
2007-Jun-18 19:30 UTC
[zfs-discuss] ZFS: How to increase the size of one of the mount points
On 6/18/07, Kenneth.Boyd at sun.com <Kenneth.Boyd at sun.com> wrote:> > I have a cu that would like to increase a mount point with his zpool....Cu > explains below.Is he adding more disks or redistributing the free space he''s got? A simple "zfs set quota=100g array1/d1" may be all he needs.
Tomas Ă–gren
2007-Jun-18 19:35 UTC
[zfs-discuss] ZFS: How to increase the size of one of the mount points
On 18 June, 2007 - Kenneth.Boyd at Sun.COM sent me these 10K bytes:> I have a cu that would like to increase a mount point with his > zpool....Cu explains below. > > I need to increase the size of one of the mount points, i.e. /d01. I > need the procedure to do this while on line. attached is the information > I have on my server > > as you will see I have the command "zpool status" executed and also a df > -h. I need to increase the size of /d01 > I need the step by step command to do this''quota'' is the magic (key)word. kalv:~# zfs list -o name,used,avail,quota,mountpoint NAME USED AVAIL QUOTA MOUNTPOINT kaka 104G 2.04T none /kaka ... kaka/staff/stric 50.0G 0 50G /kaka/staff/stric kalv:~# df -h kaka 2.1T 33K 2.1T 1% /kaka .. kaka/staff/stric 51G 51G 0 100% /kaka/staff/stric (51G is about 50G + 10kB, rounded up) kalv:~# zfs get all kaka/staff/stric ... kaka/staff/stric quota 50G local Increasing: kalv:~# zfs set quota=55g kaka/staff/stric kalv:~# df -h ... kaka/staff/stric 55G 51G 5.0G 91% /kaka/staff/stric So, what you want is: zfs set quota=100g array1/d1 or some other good value.> array1 803G 24K 303G 1% /array1 > array1/d1 50G 35G 15G 71% /d01 > array1/d2 50G 36K 50G 1% /d02 > array1/d3 50G 24K 50G 1% /d03 > array1/d4 175G 24K 175G 1% /d04 > array1/d5 175G 24G 151G 14% /d05quota is just an upper limit, it doesn''t guarantee space.. there is 303GB left for d01-d05 to share. /Tomas -- Tomas ?gren, stric at acc.umu.se, http://www.acc.umu.se/~stric/ |- Student at Computing Science, University of Ume? `- Sysadmin at {cs,acc}.umu.se