How to increase the size of rpool in Solaris 11?


 
Thread Tools Search this Thread
Operating Systems Solaris How to increase the size of rpool in Solaris 11?
# 1  
Old 07-13-2018
How to increase the size of rpool in Solaris 11?

Hi

Please let me know how to increase the size of rpool in solaris 11 in ldom. I know how to map the new LUN to LDOM after that please let me know the procedure to increase the rpool and how to identify new disk in OBP level of ldom as I need to set the new/lun to be my new boot device.
# 2  
Old 07-13-2018
You safely increase it on the storage side, not add additional luns to rpool.
After you expand the lun from the storage side, issue a fabric rescan.

If you have not used slice 2 (whole disk), you will need to expand the slice via format command.

Otherwise, issue a zpool set autoexpand=on rpool inside the ldom to see the space.

If you really want to add additional lun or using local disks i would suggest presenting the bigger lun to ldom.
Using zpool attach command mirror rpool to bigger disk.
After the re-silvering is complete detach the old disk from mirror using zpool detach.
After detach issue a autoexpand from above for rpool to grow.
Remove the old disk from ldom and set boot-device variable for that ldom to point to added disk instead of smaller one.

Hope that helps
Regards
Peasant.
These 2 Users Gave Thanks to Peasant For This Post:
# 3  
Old 10-29-2018
Hi Peasant

As per you suggestion I added new bigger LUN and then attached it to mirror and after resilvering I detach the older and disk using zpool detach command. and thing went fine. Now If due to some reason I was to boot from older detach disk is it possible. I don't have any issue if my older disk can use different rpool name. For instance my, older detached original rpool disk was c0t0d0 and new mirror bigger disk is c1t2d0 which is currently using with rpool.


Regards
hb00
# 4  
Old 10-29-2018
In that case, if you want a bootable old disk, you should have issued zpool split instead of detach, after mirroring.

There are couple of additional steps required to make that disk boot properly.

See documentation on My Oracle site.

Regards
Peasant.
# 5  
Old 10-29-2018
Thanks Peasant for suggestion but is there a way to used old detach disk to be bootable if we have implementated "zpool detach" command.

Also let me know the exact oracle link which could be useful to make the earlier old disk bootable if we have implemented "zpool split " command

It would be nice if you could reply both of my above queries
# 6  
Old 10-30-2018
zpool detach is a destructive operation, so no you cannot reuse / boot that disk.

If you are using LDOM, you could just poweroff the ldom, and remove one out of two disks using ldm commands.
You should now have two identical bootable rpools.
Be sure to reconfigure your solaris instance when booted on another LDOM and remove degraded part of mirror from both operating systems.

Perhaps same can be achieved online, by using zpool offline <old disk>, followed by zpool detach <old disk> and from hypervisor ldm rm vdisk ..

You can test this using Solaris x86 and KVM, of course you will now not be using ldm commands, but create a new KVM solaris with disk you cloned with one of the techniques mentioned.
There is also an option of storage cloning techniques, just make sure those luns are never on the same LDOM.

As for links, login to My Oracle site and search for 'zpool split rpool'.

ZFS send/recv should be used to backup zfs filesystems, including rpools, while split would be second best and storage cloning as a last resort.
Everything else is hackery, do not try to reinvent the wheel.

Hope that helps.
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Solaris

Zfs rpool size

Hi everyone, I am doing housekeeping of my Solaris 11 for zfs snapshot to reduce the snapshot size. I have already cleared the / file system, however the rpool size still not reduced. Filesystem Size Used Available Capacity Mounted on rpool/ROOT/solaris-2 98G 6.9G ... (2 Replies)
Discussion started by: freshmeat
2 Replies

3. 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

4. Solaris

How to increase jvm size for solaris 10 (sparc) operating system

Hi, I have solaris 10 (sparc) operating system machine on which I have installed supported weblogic 10.3. It was installed properly. As we know weblogic uses jvm to run and uses a part of jvm memory. But I am facing one problem in which JVM is getting crashed again and again resulting my... (2 Replies)
Discussion started by: neeraj.tati
2 Replies

5. UNIX for Dummies Questions & Answers

Increase size to sd[b-c]

hi guys I am working on my vmware workstation. I have a /dev/sdb which is 5GB. I am using LVM. Now I increase /dev/sdb 2 more GB. fdisk -l shows 7 GB but pvscan still shows 5GB. how do I make my system recognize the new 7GB added and be able to add those to my physical volumen and... (1 Reply)
Discussion started by: kopper
1 Replies

6. Solaris

how to increase file size in solaris 10 os

hi, let me know how to increase file size in solaris 10 OS (4 Replies)
Discussion started by: meet2muneer
4 Replies

7. Solaris

increase Root size

Dear all, I am very new to solaris, I have installed solaris 10, i tried installing few softwares into file system, unfortunately system failed to install stating "No space left on device " i searched few threads and it says, we have to increase root size. where my root size is... (2 Replies)
Discussion started by: radhnki
2 Replies

8. 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

9. 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

10. HP-UX

increase size

Hi All, one of the mount point in Hp ux server has reached 95% its a data base file and can not be deleted. so i want to know how to increase the size of mount point i am new to unix ,please help me (1 Reply)
Discussion started by: jyoti
1 Replies
Login or Register to Ask a Question