How to grow a zfs file system?


 
Thread Tools Search this Thread
Operating Systems Solaris How to grow a zfs file system?
# 8  
Old 03-07-2017
please find the output of the requested commands below:

Code:
root@solaris:~# cat /etc/release
                          Oracle Solaris 11 11/11 SPARC
  Copyright (c) 1983, 2011, Oracle and/or its affiliates.  All rights reserved.
                            Assembled 18 October 2011
root@solaris:~#

Code:
root@solaris:~# zpool status oradata1
  pool: oradata1
 state: ONLINE
  scan: none requested
config:

        NAME                       STATE     READ WRITE CKSUM
        oradata1                   ONLINE       0     0     0
          c5t500A09819DE3E799d1s6  ONLINE       0     0     0

errors: No known data errors
root@solaris:~#

Code:
root@solaris:~# zpool get autoexpand oradata1
NAME      PROPERTY    VALUE   SOURCE
oradata1  autoexpand  off     default
root@solaris:~#

Code:
root@solaris:~# cfgadm -al -o show_SCSI_LUNS c4
cfgadm: Hardware specific failure: invalid option: show_SCSI_LUNS
root@solaris:~#

# 9  
Old 03-07-2017
Hi,

It now looks pretty much certain that you're using a SAN or some other kind of managed storage solution at the back-end here, rather than internal disks or other simple local storage. As per jlliagre's reply earlier, using that storage solution to enlarge the underlying LUN would be the best way forward here in all likelihood.

What is it you're using as a storage solution in this platform ? Whatever it is, it almost certainly provides a way to enlarge a LUN by one means or another. Once that's been done, you can then look at growing the ZFS pool to fill the new available size.
# 10  
Old 03-07-2017
We are using NetApp as storage
# 11  
Old 03-07-2017
Hi,

OK. I'm not myself familiar with NetApp storage solutions, but I'm sure there will be some management interface you can use to administer it no doubt. If NetApp permits you to non-destructively enlarge the underlying LUN without interrupting normal operation (you need to be totally sure about both aspects of that before doing this with the filesystem still mounted), then once you've enlarged the appropriate LUN you can come back to looking at expanding the ZFS pool.
# 12  
Old 03-07-2017
Hi,

On the NetApp front you can go two ways.
  1. Expand the NetApp LUN and grow ZFS into it.
  2. Provision a new LUN of the appropriate size and use it to replace the existing LUN.

To expand the LUN on the NetApp, you would run the following from the NetApp CLI;

vol size VolName + 500g

Then you would expand into the allocated space.

Or create a new 1Tb LUN, present it to the system and use the zfs commands to replace as follows;

Code:
zpool replace oradata1 c5t500A09819DE3E799d1s6 <newdiskname>
zpool set autoexpand=on oradata1

Regards

Gull04
This User Gave Thanks to gull04 For This Post:
# 13  
Old 03-07-2017
Thanks Gull04!

I dont have access to NetApp cli, the NetApp admin does it for me, on my side (operating system wise) If I am going to replace current oradata1disk with newdisknamewould I not be destroying current data on oradata1?
# 14  
Old 03-07-2017
Hi,

When it comes to replacing a disk in a zfs pool, the replace action does the following;

The "replace" action migrates data to the new device from the damaged device or from other devices in the pool if it is in a redundant configuration.

When the command is finished, it detaches the damaged device from the configuration, at which point the device can be removed from the system.

Hopefully your disk source is undamaged, so it will just migrate the data without significant risk.

Regards

Gull04

Last edited by gull04; 03-07-2017 at 07:50 AM.. Reason: Additional Information.
This User Gave Thanks to gull04 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

2540 volume expand and solaris zfs grow

Hello I hope everyone is having a good day! Situation: 2540 with 3.6TB of usable space volume A is 2.6TB volume B was 1TB Volume A is mounted via a single lun on a solaris server and is running out of space. Volume B was used on another server but is no longer, I deleted the volume in... (7 Replies)
Discussion started by: Metasin
7 Replies

2. Emergency UNIX and Linux Support

Not able to extend ZFS file system

Hi All, I have Solaris-10 configured with two non-global zones. All file-systems are mounted on global zone and data file-systems are mounted on non-global zone as lofs. I have added 4 luns of 100 GB each and still not able to extend a file-system. This is production server, so I can not... (5 Replies)
Discussion started by: solaris_1977
5 Replies

3. Solaris

Grow / expand a ZFS volume

Hi, I need to expand a ZFS volume from 500GB to 800GB. I'd like to ask your help to confirm the following procedure: Can I do it on the fly without bothering the users working on this volume? Thank you in advance! (6 Replies)
Discussion started by: aixlover
6 Replies

4. Solaris

Patching on ZFS file-system

Hi, I have Solaris-10 (Update-7). This is having ZFS file-system and 10 sparse-root zones are there. I want to install Solaris-10 recommended patch cluster on it, but not sure, how to go ahead with procedure. I want to patch one side of the mirror and keep intact another side safe in case of... (6 Replies)
Discussion started by: solaris_1977
6 Replies

5. Solaris

increase SWAP on ZFS file system

Hi All, I am using this commands to dynamically increase ZFS swap space on Solaris my question is: 1- after i make these commands it will permanent or it will remove after restart 2- how to make it permanent # swap -l swapfile dev swaplo bloques libre /dev/zvol/dsk/rpool/swap... (4 Replies)
Discussion started by: osmanux
4 Replies

6. Shell Programming and Scripting

ZFS file system - memory monitoring

I am working on a server where the 'root' user ZFS filesystem. Now when I do Top commands it says only 750M free .But when I count the actual memory utilized it comes only to 12 GB and the total size of the server is 32G. I think rest of the space is held up by ZFS file system. Is there a... (5 Replies)
Discussion started by: prasperl
5 Replies

7. Solaris

How to grow my files System?

Dear Gurus of Unix. When I Put this command: # iostat -E cmdk0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: SAMSUNG SV4012H Revision: Serial No: 0540J1BTC53208 Size: 40.06GB <40060403712 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal... (6 Replies)
Discussion started by: andresguillen
6 Replies

8. AIX

Cannot grow jfs file system on AIX 5.2

Hello all, I'm trying to grow a file system by 500MB using SMIT on AIX 5.2 but I receive this error: "0516-404 allocp: This system cannot fulfill the allocation request. There are not enough free partitions or not enough physical volumes to keep strictness and satisfy allocation requests.... (3 Replies)
Discussion started by: need2bageek
3 Replies

9. UNIX for Dummies Questions & Answers

zfs file system

Hi, I try add a new file system: #zfs create dsk1/mqm it came back with: #cannot create 'dsk1/mqm': no such pool 'dsk1' what do I have to do? Kind regards Mehrdad (2 Replies)
Discussion started by: mehrdad68
2 Replies
Login or Register to Ask a Question