Exadata documentation talks about how to resize an LVM Partitions in compute node for two different scenario -
Obviously anyone will consider to resize the filesystem ONLINE using Option 1. But if the environment came (patched/upgraded) from an older image version (e.g. from <= 11.2.3.2.0, look for imagehistory output) but current running a newer image version, lets say 11.2.3.3.x, 12.1.2.1.x or even greater, though the image is newer but still it might not possible to do the filesystem resize online. This is mainly applicable for X2, X3 (early releases).
Since this environment comes from an older image version, you will see that the filesystem does not have resize_inode options thus it's not possible to resize the filesystem online though it's a new image version currently. In this case, the only possible option is to use the offline method which is a bit critical/complex in terms of the online method.
Below is a series of steps which can be performed to enable the resize_inode option in the filesystem and does not required to use the Option 2.
-- Currently the filesystem does not have 'resize_inode' options
-- No output of the below commands, thus we won’t able to resize the filesystem online.
# tune2fs -l /dev/mapper/VGExaDb-LVDbSys1 | grep resize_inode
# tune2fs -l /dev/mapper/VGExaDb-LVDbSys2 | grep resize_inode
-- Look for the inactive root partitions
-- All Exadata compute node should have an inactive root partition which normally used for backup purpose during patching
-- In this example: Active root partition is: LVDbSys1
[root@dm01db01 ~]# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VGExaDb-LVDbSys1
30G 18G 11G 63% /
-- Inactive root partition is: LVDbSys2
[root@dm01db01 ~]# lvm lvscan
ACTIVE '/dev/VGExaDb/LVDbSys1' [30.00 GiB] inherit << ---- Active
ACTIVE '/dev/VGExaDb/LVDbSys2' [30.00 GiB] inherit << ---- Inactive
ACTIVE '/dev/VGExaDb/LVDbSwap1' [24.00 GiB] inherit
ACTIVE '/dev/VGExaDb/LVDbOra1' [150.00 GiB] inherit
ACTIVE '/dev/VGExaDb/LVDbOra2' [450.00 GiB] inherit
Step 1. Remove the existing backup LVM partition
Note: The existing backup of the / (root) partition will be lost but we will take another backup shortly
# lvremove /dev/VGExaDb/VGExaDb-LVDbSys2
Step 2. Run (
Take a backup of / (root) filesystem): /opt/oracle.SupportTools/dbserver_backup.sh
Note: It will create a new VGExaDb-LVDbSys2, if not, then create one manually as below and re-run dbserver_backup.sh once again -
# lvcreate -L 30G -n /dev/VGExaDb/VGExaDb-LVDbSys2
# mkfs.ext3 /dev/VGExaDb/VGExaDb-LVDbSys2
-- But dont’t add any label.
Step 3. Once the backup is completed, check the 'resize_inode' option.
# tune2fs -l /dev/mapper/VGExaDb-LVDbSys2 | grep resize_inode
Filesystem features: has_journal ext_attr resize_inode dir_index filetype sparse_super large_file
Step 4. Since the current image and backup image is same version, so it's not required to do anything in the /boot partition (e.g. change in grub.conf), but only -
-- Remove/Add the label
# e2label /dev/VGExaDb/LVDbSys1 ""
# e2label /dev/VGExaDb/LVDbSys2 DBSYS
OR
It's possible to use: dbnodeupdate.sh -r. (Recommend: Rollback using DBNU is well within Oracle Supported Procedure)
In this case, dbnodeupdate will rollback to the same image version using the LVDbSys2 partition
Step 5. Restart OS and it should be come up with LVDbSys2
Step 6. Remove & recreate the current backup LVM partition which is /dev/VGExaDb/VGExaDb-LVDbSys1. (Similar to Step 1 & 2 but different partition)
Step 7. Take another backup using dbserver_backup.sh (Similar to Step 1 & 2 but different partition)
Step 8. At this point, we should be able to resize the root LVM partition online using lvextend & resize2fs
For /u01 mount point, it's easier to perform the offline method since it's not required to restart the server, only unmount of the filesystem required.
I blog quite often and I seriously thank you for your
ReplyDeleteinformation. The article has truly peaked my interest.
I'm going to book mark your website and keep checking for new details about
once a week. I subscribed to your Feed as well.
It’s difficult to find well-informed people about this
ReplyDeletesubject, however, you seem like you know what you’re
talking about! Thanks
I was pretty pleased to uncover this website. I want to to thank you for your time for
ReplyDeletethis fantastic read!! I definitely appreciated every bit of it and I have you saved to fav to look at new stuff in your web site.
Hey there! I simply wish to offer you a huge thumbs up for your great information you have got right here on this post.
ReplyDeleteI'll be returning to your web site for more soon.
Right here is the right website for everyone who would like to understand this topic.
ReplyDeleteYou know a whole lot its almost hard to
argue with you (not that I really would want to…HaHa).
You definitely put a fresh spin on a topic that's been written about for ages.
Wonderful stuff, just excellent!
You need to be a part of a contest for one of the best websites online.
ReplyDeleteI am going to recommend this web site!
I truly love your blog.. Very nice colors & theme.
ReplyDeleteDid you build this amazing site yourself? Please reply back as I’m looking to create my own site and would like to find
out where you got this from or what the theme is called.
Appreciate it!
Good day! I simply wish to offer you a big thumbs up for the excellent information you've got right here on this post.
ReplyDeleteI am coming back to your blog for more soon.
Excellent web site you have here.. It’s hard to find quality writing like yours these days.
ReplyDeleteI honestly appreciate people like you! Take care!!
Way cool! Some extremely valid points! I appreciate you penning this article and also the rest of the site is extremely good.
ReplyDeleteHowdy! This article could not be written any better!
ReplyDeleteLooking through this article reminds me of my previous roommate!
He continually kept preaching about this. I am going to forward this article to him.
Fairly certain he'll have a good read. Thank you for sharing!
You're so interesting! I do not believe I've truly read anything like that before.
ReplyDeleteSo nice to find somebody with some unique thoughts on this subject.
Really.. thank you for starting this up. This web site is something that
is needed on the web, someone with a little originality!
Aw, this was a very good post. Finding the time and actual effort to
ReplyDeletecreate a really good article… but what can I say… I procrastinate a whole lot and never
manage to get anything done.
Oh my goodness! Awesome article dude! Many thanks, However I am going through difficulties
ReplyDeletewith your RSS. I don’t understand why I cannot join it.
Is there anybody getting the same RSS problems?
Anyone that knows the answer can you kindly respond?
Thanx!!
I'm pretty pleased to find this great site. I want to to thank you for ones time
ReplyDeletefor this fantastic read!! I definitely enjoyed every bit of it and i also have you saved as a favorite
to look at new things on your blog.
There's definately a lot to learn about this topic.
ReplyDeleteI love all the points you made.
An outstanding share! I've just forwarded this onto a coworker who was doing a
ReplyDeletelittle research on this. And he in fact ordered me lunch simply because I stumbled
upon it for him... lol. So let me reword this....
Thank YOU for the meal!! But yeah, thanx
for spending some time to talk about this topic here on your internet site.
I'm pretty pleased to discover this great site.
ReplyDeleteI need to to thank you for your time for this particularly fantastic read!!
I definitely enjoyed every part of it and i also have you saved as a favorite to look at new things in your
web site.
Good post. I certainly appreciate this website. Thanks!
ReplyDeleteSaved as a favorite, I love your blog!
ReplyDeleteYour style is very unique compared to other folks I've read stuff from.
ReplyDeleteThanks for posting when you have the opportunity, Guess I will just book mark this blog.
I’m amazed, I have to admit. Rarely do I encounter a blog that’s both
ReplyDeleteeducative and interesting, and without a doubt, you've hit the nail on the head.
The problem is something which not enough folks are speaking intelligently
about. I am very happy I found this in my hunt for something regarding this.
Pretty! This has been a really wonderful article. Thank you for providing this info.
ReplyDeleteIt’s nearly impossible to find well-informed people for this topic,
ReplyDeletebut you seem like you know what you’re talking
about! Thanks
I would like to thank you for the efforts you've put in penning
ReplyDeletethis website. I'm hoping to check out the same high-grade blog posts by
you in the future as well. In fact, your creative writing abilities has encouraged me to get
my own, personal blog now ;)
Hi, I do believe this is an excellent site. I stumbledupon it ;)
ReplyDeleteI will come back once again since i have bookmarked it.
Money and freedom is the greatest way to change, may you be rich and continue to
help other people.
Oh my goodness! Impressive article dude! Many thanks, However I am experiencing problems with
ReplyDeleteyour RSS. I don’t know why I am unable to subscribe to it.
Is there anyone else having the same RSS problems?
Anyone that knows the solution will you kindly respond?
Thanx!!
Everything is very open with a very clear explanation of the
ReplyDeleteissues. It was definitely informative. Your website is extremely
helpful. Thank you for sharing!
May I just say what a relief to uncover somebody that genuinely understands what
ReplyDeletethey are talking about on the internet. You definitely know how to bring a problem to light and make it important.
A lot more people ought to check this out and understand this side of
the story. I can't believe you aren't more popular since you most certainly possess the gift.
You should take part in a contest for one of the finest blogs on the net.
ReplyDeleteI’m going to highly recommend this web site!