December 15, 2015

Exadata Compute Node: Filesystem resize issue

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.


30 comments:

  1. I blog quite often and I seriously thank you for your
    information. 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.

    ReplyDelete
  2. It’s difficult to find well-informed people about this
    subject, however, you seem like you know what you’re
    talking about! Thanks

    ReplyDelete
  3. I was pretty pleased to uncover this website. I want to to thank you for your time for
    this 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.

    ReplyDelete
  4. Hey there! I simply wish to offer you a huge thumbs up for your great information you have got right here on this post.
    I'll be returning to your web site for more soon.

    ReplyDelete
  5. Right here is the right website for everyone who would like to understand this topic.
    You 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!

    ReplyDelete
  6. You need to be a part of a contest for one of the best websites online.

    I am going to recommend this web site!

    ReplyDelete
  7. I truly love your blog.. Very nice colors & theme.
    Did 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!

    ReplyDelete
  8. Good day! I simply wish to offer you a big thumbs up for the excellent information you've got right here on this post.
    I am coming back to your blog for more soon.

    ReplyDelete
  9. Excellent web site you have here.. It’s hard to find quality writing like yours these days.

    I honestly appreciate people like you! Take care!!

    ReplyDelete
  10. Way cool! Some extremely valid points! I appreciate you penning this article and also the rest of the site is extremely good.

    ReplyDelete
  11. Howdy! This article could not be written any better!

    Looking 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!

    ReplyDelete
  12. You're so interesting! I do not believe I've truly read anything like that before.
    So 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!

    ReplyDelete
  13. Aw, this was a very good post. Finding the time and actual effort to
    create a really good article… but what can I say… I procrastinate a whole lot and never
    manage to get anything done.

    ReplyDelete
  14. Oh my goodness! Awesome article dude! Many thanks, However I am going through difficulties
    with 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!!

    ReplyDelete
  15. I'm pretty pleased to find this great site. I want to to thank you for ones time
    for 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.

    ReplyDelete
  16. There's definately a lot to learn about this topic.
    I love all the points you made.

    ReplyDelete
  17. An outstanding share! I've just forwarded this onto a coworker who was doing a
    little 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.

    ReplyDelete
  18. I'm pretty pleased to discover this great site.

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

    ReplyDelete
  19. Good post. I certainly appreciate this website. Thanks!

    ReplyDelete
  20. Saved as a favorite, I love your blog!

    ReplyDelete
  21. Your style is very unique compared to other folks I've read stuff from.
    Thanks for posting when you have the opportunity, Guess I will just book mark this blog.

    ReplyDelete
  22. I’m amazed, I have to admit. Rarely do I encounter a blog that’s both
    educative 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.

    ReplyDelete
  23. Pretty! This has been a really wonderful article. Thank you for providing this info.

    ReplyDelete
  24. It’s nearly impossible to find well-informed people for this topic,
    but you seem like you know what you’re talking
    about! Thanks

    ReplyDelete
  25. I would like to thank you for the efforts you've put in penning
    this 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 ;)

    ReplyDelete
  26. Hi, I do believe this is an excellent site. I stumbledupon it ;)
    I 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.

    ReplyDelete
  27. Oh my goodness! Impressive article dude! Many thanks, However I am experiencing problems with
    your 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!!

    ReplyDelete
  28. Everything is very open with a very clear explanation of the
    issues. It was definitely informative. Your website is extremely
    helpful. Thank you for sharing!

    ReplyDelete
  29. May I just say what a relief to uncover somebody that genuinely understands what
    they 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.

    ReplyDelete
  30. You should take part in a contest for one of the finest blogs on the net.
    I’m going to highly recommend this web site!

    ReplyDelete