Increase root filesystem on solaris zone using zpool

I have a solaris zone of 12 GB and i have to increase the / filesystem to 31GB as requested. Earlier I had expanded filesystems other than / by setting quota to new value like "zfs set quota=new value mountpoint" but I am not sure whether its a good practice in zfs because by default in my environment, the quota and reservation are set to NONE. So I am able to increase the space but I am not sure whether I am doing it the right way or not. Now when it comes to increasing / filesystem, I dont want to take chances and do something stupid. Let me know your views on how to increase the root filesytem of solaris zone using zpool.

FYI : When we see space from global zone using zpool, everything is just a filesystem with some space irrespective of whether its root or other filesystem but still some ideal and right way or views are welcome.

Can you copy and paste this:

prtvtoc /dev/rdsk/<disk where the zfs is located>

You can not add a new disk to an RPOOL unless it is for mirroring, but you might be able to change your partitions and relocate some data on other disks to achieve more space. Even though 12 Gigs should be more than enough for a solaris installation.

Cheers

juan

Hello Juan,
Please find the output from the global zone below :

root@server.:/# zpool status
  pool: dpool
 state: ONLINE
 scrub: none requested
config:
        NAME        STATE     READ WRITE CKSUM
        dpool       ONLINE       0     0     0
          c1t2d0    ONLINE       0     0     0
errors: No known data errors
  pool: rpool
 state: ONLINE
 scrub: none requested
config:
        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          c1t0d0s0  ONLINE       0     0     0
errors: No known data errors
root@server.:/# prtvtoc /dev/rdsk/c1t0d0s0
* /dev/rdsk/c1t0d0s0 partition map
*
* Dimensions:
*     512 bytes/sector
*     136 sectors/track
*      16 tracks/cylinder
*    2176 sectors/cylinder
*   65535 cylinders
*   65533 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00          0 142599808 142599807
       2      5    00          0 142599808 142599807

root@server.:/# zpool list 
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
dpool    68G  16.0G  52.0G    23%  ONLINE  -
rpool  67.5G  28.3G  39.2G    41%  ONLINE  -
I have to increase the root of server-z2 mounted on dpool/server-z2.domain as mentioned below :
root@server.:/# zfs list
.....
dpool/server-z2.domain        6.99G  4.92G  6.99G  /zones/server-z2.domain
.....
root@server.:/#  zfs list dpool          
NAME    USED  AVAIL  REFER  MOUNTPOINT
dpool  62.0G  4.92G    21K  /dpool
root@server.:/# zfs get available,quota,reservation dpool/server-z2.domain
NAME                    PROPERTY     VALUE   SOURCE
dpool/server-z2.domain  available    4.92G   -
dpool/server-z2.domain  quota        none    default
dpool/server-z2.domain  reservation  1G      local

Would you use "code" tags for the output, thanks!

Hey Juan,
I am new to this website.Not sure what exactly you want ?

Post #3 has been modified by a moderator to use HTML "code tags" which preserve the exact layout of the post. The moderator has inserted a link to a tutorial on "code tags".