Visit Our UNIX and Linux User Community


Replace zpool with another disk


 
Thread Tools Search this Thread
Operating Systems Solaris Replace zpool with another disk
# 1  
Old 11-10-2017
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; 11-10-2017 at 01:50 PM..
# 2  
Old 11-10-2017
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.
This User Gave Thanks to Peasant For This Post:
# 3  
Old 11-10-2017
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; 11-10-2017 at 06:03 PM.. Reason: CODE tags

Previous Thread | Next Thread
Test Your Knowledge in Computers #431
Difficulty: Medium
JavaScript arrow functions were first introduced in 6th Edition - ECMAScript 2015.
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

How to clear a removed single-disk pool from being listed by zpool import?

On an OmniOS server, I removed a single-disk pool I was using for testing. Now, when I run zpool import it will show it as FAULTED, since that single disk not available anymore. # zpool import pool: fido id: 7452075738474086658 state: FAULTED status: The pool was last... (11 Replies)
Discussion started by: priyadarshan
11 Replies

2. Solaris

Bad disk, how to replace ?

Hello, I see hard and transport errors on all disks under treso pool and looks like some data corruption too. I want to take backup before, I reboot and replace disk. As of now, there are no slots free on server, so one option is, to break mirror, remove second disk (I need two disks, because... (5 Replies)
Discussion started by: solaris_1977
5 Replies

3. Solaris

Exporting zpool sitting on different disk partition

Hello, I need some help in recovering ZFS pool. Here is scenerio. There are two disks - c0t0d0 - This is good disk. I cloned it from other server and boot server from this disk. c0t1d0 - This is original disk of this server, having errors. I am able to mount it on /mnt. So that I can copy... (1 Reply)
Discussion started by: solaris_1977
1 Replies

4. Solaris

Cannot remove disk added to zpool

I added a disk to a zpool using "zpool add diskname" My intention was mirror a zpool disk that no mirror; that is a zpool with only one disk. I did not issue the right command. Now, the disk has been added successfully but I cannot remove nor detach it as Solaris 11 thinks it has data on it... (14 Replies)
Discussion started by: LittleLebowski
14 Replies

5. HP-UX

LVM: is possible to replace a disk?

Scenario1: VG00 lvm,not mirrored,2 disk of 36GB vg size VG00 size is under 30G. Is possible to remove a disk of 36GB and replace "on fly" with a disk of 300GB on VG00? Thanks (6 Replies)
Discussion started by: Linusolaradm1
6 Replies

6. Solaris

Add disk to zpool

Hi, Quick question. I have a data zpool that consists of 1 disk. pool: data state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM data ONLINE 0 0 0 c0t50002AC0014B06BEd0 ONLINE... (2 Replies)
Discussion started by: general_lee
2 Replies

7. SCO

Replace Disk

Originally Posted by panos83 Hello there Sir, according to this old post, https://www.unix.com/sco/100001-warni...ler-found.html i try to restore an old image to a new hard disk drive. The problem is that i don't have basic information such as: 1) Which btld driver do i... (3 Replies)
Discussion started by: jgt
3 Replies

8. Solaris

how to replace disk in solaris 10?

solaris os run on X86. bootdisk have been mirrored.but there is one disk miss,I want to replace the fail disk,but after I replace the disk,the system can't boot! pls help! (2 Replies)
Discussion started by: netxjman
2 Replies

9. UNIX for Dummies Questions & Answers

trying to replace a disk, that's all...

Actually have a few different issues, wondering if I could get input on (tried reading/searching for an answer, with no luck) 1. Have a v240 running sol9 that needs a bad disk replaced. So, here are the steps I took: a. detached from mirroring b. cleared mirroring (metaclear) c.... (4 Replies)
Discussion started by: mr.moralito
4 Replies

Featured Tech Videos