Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Replace zpool with another disk

Solaris


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 1 Week Ago   -   Original Discussion by rrodgers
rrodgers rrodgers is offline
Read Only
 
Join Date: Dec 2007
Last Activity: 10 November 2017, 9:45 PM EST
Location: Korea
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
Replace zpool with another disk

issue,
I had a zpool which was full

PHP Code:
pool_temp1   199G   197G  1.56G  99%  ONLINE  -
pool_temp2   199G   196G  3.09G  98%  ONLINE  
as you can see, full
so I replaced with a larger disk.


Code:
zpool replace pool_temp1 c3t600144F0FF8BA036000058CC1DB80008d0s0 c3t600144F0FF8BA03600005A04C89F0001d0



zpool replace pool_temp2 c3t600144F0FF8BA036000058CC1DCB0009d0s0  c3t600144F0FF8BA03600005A04C9800002d0

it resilvered fine, no errors, however in zpool status, I can see the new disk, yet it does not recognize the new size, and
when I try to

Code:
zpool set autoexpand=on pool_temp1

I get the expected error
cannot set property for pool : out of space.

how can I get the system to reconized the new size? devfsadm, reboot -r?
I backed up the data in the pool, so could I just empty the data then try set autoexpand=on again?

first time attempting this, so sorry for basic question.
thanks.

Last edited by jim mcnamara; 1 Week Ago at 12:50 PM..
Sponsored Links
    #2  
Old Unix and Linux 1 Week Ago   -   Original Discussion by rrodgers
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 19 November 2017, 9:57 AM EST
Posts: 1,083
Thanks: 31
Thanked 319 Times in 279 Posts
Are the pools now on 100% ?

You will not be able to set a property on zpool if that is the case, including autoexpand.
Are you able to delete old snapshots or data from those pools, then issue the command ?

Never have your pools above 90%, use zfs quota to limit the usage so you do not run in the same situation again.
Anything above 80% used space for databases and above 90ish% use space for static content is not recommended to have.

Hope that helps
Regards
Peasant.
The Following User Says Thank You to Peasant For This Useful Post:
rrodgers (1 Week Ago)
Sponsored Links
    #3  
Old Unix and Linux 1 Week Ago   -   Original Discussion by rrodgers
rrodgers rrodgers is offline
Read Only
 
Join Date: Dec 2007
Last Activity: 10 November 2017, 9:45 PM EST
Location: Korea
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts

Code:
pool_temp1   199G   197G  1.56G  99%  ONLINE  -
pool_temp2   199G  20.9M   199G   0%  ONLINE  -
l.root > zpool set autoexpand=on pool_temp1
cannot set property for 'pool_temp1': out of space
You have new mail in /var/mail/root

deleted data, now 99% free- but same result
do I have to destroy and recreate?

---------- Post updated at 06:29 AM ---------- Previous update was at 05:01 AM ----------

for some reason I can not get it to see the new disk , the new disk slice is 500 gig, but it is still seeing the old one that is 200g. do i have to destroy and re create using the new disk? i just thought replacing would do the trick.

Last edited by Scott; 1 Week Ago at 05:03 PM.. Reason: CODE tags
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Exporting zpool sitting on different disk partition solaris_1977 Solaris 1 03-08-2017 02:36 PM
Cannot remove disk added to zpool LittleLebowski Solaris 14 02-05-2015 09:51 AM
Add disk to zpool general_lee Solaris 2 04-19-2013 09:06 AM
Replace Disk jgt SCO 3 09-22-2010 03:00 PM



All times are GMT -4. The time now is 10:19 PM.