Shrinking zpool

Thread Tools Search this Thread
Operating Systems Solaris Shrinking zpool
# 1  
Old 09-13-2013
Shrinking zpool

Hello experts,

I have a solaris 10 (SunOS 5.10 Generic_148888-05 sun4u sparc SUNW,SPARC-Enterprise) that by mistake I added a second san space of 700g to the pool. the whole pool is now 1.2T and, I need to take the space away from the pool and, make the pool 700g total. this is live oracle filesystem. I have not done any zfs shrinking of sort (I know you can not do this). Here is my zpool status

# zpool status DLMS01Cpool
  pool: DLMS01Cpool
 state: ONLINE
status: The pool is formatted using an older on-disk format.  The pool can
        still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on older software versions.
 scan: resilvered 392G in 2h36m with 0 errors on Thu Apr 19 20:08:46 2012

        NAME                     STATE     READ WRITE CKSUM
        DLMS01Cpool              ONLINE       0     0     0
          c3t50002AC17D9D072Bd0  ONLINE       0     0     0
          c3t50002AC21226072Bd0  ONLINE       0     0     0

errors: No known data errors

what are my best options? Can you give me the commands please?

Last edited by Scott; 09-13-2013 at 01:10 PM.. Reason: Use code tags, please...
# 2  
Old 09-13-2013
You can't shrink a zpool. You need to create a new zpool and copy the data to it. Then delete the old zpool. Your database should be turned off when your doing this.
# 3  
Old 09-13-2013
Thanks, DustinT. If I create a new pool do I need to reboot the zone in order for zone to see the new pool?
# 4  
Old 09-13-2013
No reboot is required. You'll probably want to read up on zoneadm to understand how to mount the zpool so it's visible by the zone.
# 5  
Old 09-13-2013
disregard this..

Last edited by os2mac; 09-13-2013 at 03:24 PM.. Reason: I'm an idiot
# 6  
Old 09-13-2013
I was talking about rebooting non-global zone not global zone. If I add the new-temp-pool to the global-zone and then, add the temp-FS to NG as lofs without rebooting the NG to pick up the new FS. Am I not correct? Or maybe not. ignore please.

Last edited by afadaghi; 09-13-2013 at 05:22 PM..
# 7  
Old 09-14-2013
I'm not sure what you said there but I did catch the 'ignore this' part... post back if you have more questions, ok?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Zpool mirroring

Now this doesnt look right to me. All of these disks are 100Gb LUNS so total zpool size is 300Gb. Am I right in saying that this zpool consists of two disks plus one more disk that is 6 way mirrored? So a bit pointless because only one of the three is mirrored (and 6 way is a bit of overkill... (3 Replies)
Discussion started by: psychocandy
3 Replies

2. UNIX for Dummies Questions & Answers

Shrinking partitions in enterprise

Hello , to invent some software we need to massive shrink system volumes in our company (800 pc windows xp) . For that purpose we are planing to run remotely some linux distro with fdisk script. Some one have similar experience? ? Any information would be helpfull . THanks.;) (3 Replies)
Discussion started by: Y2J
3 Replies

3. Solaris

How to tell what disks are used for a zpool?

Hello, Does anyone know how I can tell what disk are being not being used by a zpool? For example in Veritas Volume manager, I can run a "vxdisk list" and disks that are marked as "online invalid" are disk that are not used. I'm looking for a similar command in ZFS which will easily show... (5 Replies)
Discussion started by: robertinoau
5 Replies

4. Linux

About shrinking LVM and then adding the freed space to another OS on dualboot system

Hi all, Fedora 17, 64bit Ubuntu 12.04 desktop 64bit HD 160G I installed Ubuntu 12.04 on the HD first taking up the whole disc. Later I added/installed Fedora 17 selecting the "Shrink" option and save the bootloader on /dev/sda1 to make them dualboot. Installation is successful with... (0 Replies)
Discussion started by: satimis
0 Replies

5. Solaris

ZPOOL help..

hi ... i have added a physical disk to the pool with ""zpool add <poolname> diskname"""... after that i realized that i have to mirror it instead..then i tried to take that disk out of the pool but i m not able to do that.. i have gone through many unix help sites , nothing worked , so please... (6 Replies)
Discussion started by: yrajendergoud
6 Replies

6. Windows & DOS: Issues & Discussions

Consolidating Freespace to allow shrinking partition?

i have an "old" laptop with 84gb used space, 203gb free, running 32bit Windows Vista. i've tried all defragmenting programs i could find and though some offer Free Space Defrag, they don't seem to take into account where on the disk to consolidates the space to. what i am trying to achieve is... (4 Replies)
Discussion started by: Sterist
4 Replies

7. AIX

shrinking filesystem error

Hi Guys, probably a standard issue, so what do I miss here? Error message: > chfs -a size=-128M /export/nim/aix/5300-10 chfs: 0506-964 There is not enough free space to shrink the file system. df shows 0.75GB free > df -g . Filesystem GB blocks Free %Used Iused %Iused... (7 Replies)
Discussion started by: raba
7 Replies

8. Linux

shrinking root partition and using free space to create a block device

We are intending to protect a set of user specified files using LVM mirroring where the protected space on which the user files are stored is mirrored on an LV on a different disk. Our problem is that for a user with a custom layout has installed linux with 2 partitons for swap and / and there is... (0 Replies)
Discussion started by: kickdgrass
0 Replies

9. Solaris

need zpool to revert...

hi i have created a pool using zpool command for my /dev/dsk/c1d0s3 disk. The poolname is qwertyuiopasdfghjklmnbvcxzzxcvbnmasdfghjklqwertyuiopoiuytrewqasdfghjklkjhgfdsazxcvbnmmnbnbcxczxzassd ddddvfhfghgjjgjhgkhkljfjlhohihiuyuioyguioyguiowyuiogwyuigwrigywuigyguiyuiogyugiyguioyuyguiowygiuygui... (1 Reply)
Discussion started by: SankarV
1 Replies

10. Shell Programming and Scripting

Shrinking a file

Hi All I have a somewhat complex requirement. I have a file containing about 1 million records The records in the file are of fixed length Every record begins with 03,04 ,05 or 06 03 record is parent record. 04 05 and 06 are child records Every 03 record can have zero ,1 or more than 1... (5 Replies)
Discussion started by: aashoo_5
5 Replies
Login or Register to Ask a Question