Visit The New, Modern Unix Linux Community


Increase root filesystem on solaris zone using zpool


 
Thread Tools Search this Thread
Operating Systems Solaris Increase root filesystem on solaris zone using zpool
# 1  
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.
# 2  
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
# 3  
Hello Juan,
Please find the output from the global zone below :

Code:
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

Moderator's Comments:
Mod Comment Please use the code tags button
Image

Last edited by Scott; 05-25-2012 at 11:00 AM.. Reason: Code tags
# 4  
Would you use "code" tags for the output, thanks!
# 5  
Hey Juan,
I am new to this website.Not sure what exactly you want ?
# 6  
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".

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #178
Difficulty: Medium
The Apple Computer Company was founded on April 1, 1978.
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

How to increase the /var (UFS) filesystem and root disk under veritas control?

I need to increase the /var (UFS) filesystem and root disk under veritas control or root disk is encapsulated # df -k /var Filesystem kbytes used avail capacity Mounted on /dev/vx/dsk/var 13241195 12475897 674524 96% /var # fstyp /dev/vx/dsk/var ufs # pkginfo... (1 Reply)
Discussion started by: amity
1 Replies

2. Solaris

Increase /tmp file system size dynamically in Solaris zone

Hi Please let me know how to increase the size of /tmp file system from 512m to 1024m dynamically without reboot in solaris zone # df -h Filesystem size used avail capacity Mounted on zones/zone1 11G 1.0G 10.0G 10% / /dev 11G 1.0G ... (6 Replies)
Discussion started by: sb200
6 Replies

3. Solaris

Solaris 11 Global zone patching having Solaris 10 branded zone

I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
Discussion started by: amity
2 Replies

4. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

5. Red Hat

Increase the filesystem size

Hi I am using oracle linux 6.4. My hard drive capacity is 500 GB. my filesystem size onbly 50GB. I would like to extend my filesystem size to around 100GB. I tried many codes but still I am not able. this is the output of df -h : Filesystem Size Used Avail Use% Mounted on... (6 Replies)
Discussion started by: farshad
6 Replies

6. UNIX for Dummies Questions & Answers

How to increase the filesystem size?

Hi.. I want to increase the file system size of any filesystem online, without using the Volume manager like LVMs, is it possible? & if yes then how? (3 Replies)
Discussion started by: Amol21
3 Replies

7. Solaris

increase/decrease filesystem

Hi All, I need to increase the filesystem of / and /var (two different slices)? Space will be coming from /home slice so I need to decrease it. Is that possible without reinstallation or in a single-user-mode? Any idea or link please. Thanks in advance. (5 Replies)
Discussion started by: itik
5 Replies

8. Solaris

increase root file system size in solaris

Hi frnz, Need an urgent help... I have installed solaris 8 in a sunblade workstation with 136GB hdd. While installation it has taken a default filesystem size as 1.37GB for root. AFtr completing the installation i have extended the root partition to 130GB. But still df output shows... (4 Replies)
Discussion started by: sriram.s
4 Replies

9. Solaris

What is the command to increase filesystem on solaris

I wanted to know what is the process or command to increase a filesystem on solaris. For example the /tmp directory. (3 Replies)
Discussion started by: strikelit
3 Replies

Featured Tech Videos