首页 > 其他分享 >Exadata计算节点,如何收缩(/)根文件系统的空间

Exadata计算节点,如何收缩(/)根文件系统的空间

时间:2024-08-22 14:28:09浏览次数:3  
标签:文件系统 system iso LVDbSys1 Exadata 节点 Select

1. 前言

为什么会有收缩根文件系统空间的这种需求呢,这主要是近期的一次Exadata升级项目遇到这种困境。一台11.2.3.3.0版本的Exadata,进行计算节点升级时,提示LVDbSys1的空间大于LVDbSys2的空间,无法进行操作系统备份,升级前的预检查工作失败。(LVDbSys1已经被扩展至1.1TB;而LVDbSys2还是默认的30GB)

打算在计算节点正式升级的过程中,跳过操作系统备份这个步骤。但发现,正式升级时,仍然会执行预检查工作,依旧提示LVDbSys1大于LVDbSys2。由于该VG的剩余空间不足以扩展LVDbSys2,所以只能想办法收缩LVDbSys1的大小。

 

2. Exadata计算节点,收缩(/)根文件系统的步骤

2.1  查阅Exadata官方手册,手册中,只提及如何扩展(/)根文件系统, 或者 如何收缩普通的文件系统。没有提及 如何收缩(/)根文件系统。

参考Exadata官方手册中“收缩普通的文件系统”的内容,可以发现:即使该文件系统支持在线扩展功能,但如果是收缩操作,也必须先将该文件系统umount下来,再进行操作。同样地,我们可以先用diag.iso引导启动该计算节点,然后把展(/)根文件系统当作普通的文件系统来处理即可。

2.2 用diag.iso引导启动该计算节点,

  1. Restart the system in diagnostic mode as follows:

    1. Copy the /opt/oracle.SupportTools/diagostics.iso file to a directory on the machine using the ILOM interface.

    2. Log in to the ILOM web interface.

    3. Select the Remote Control tab.

    4. Select the Redirection tab.

    5. Click Launch Remote Console. The ILOM Remote Console window is displayed.

    6. Select the Devices menu in the ILOM Remote Console window.

    7. Click CD-ROM image.

    8. Navigate to the location of the diagnostics.iso file on the local machine in the File Open dialog box.

    9. Select the diagnostics.iso file.

    10. Click Open. A message similar to the following will appear on the console.

    11. Select Host Control from the Remote Control tab.

    12. Select CDROM as the next boot device from the list of values.

    13. Click Save. When the system is booted, the diagnostics.iso image is used. The system reverts to the default after the next restart.

    14. Log in as the root user in the ILOM Remote Console window.

    15. Restart the server using the following command:

      # shutdown -r -y now
      

      The system starts using the diagnostics.iso image.

  2. Enter e to enter the diagnostic shell as follows:

    Choose from following by typing letter in '()':
    (e)nter interactive diagnostics shell. Must use credentials from Oracle
    support to login (reboot or power cycle to exit the shell),
    (r)estore system from NFS backup archive,
    Select:e
    
  3. Log in to the system as the root user. You will be prompted for the password.

    localhost login: root
    Password: *********
    -sh-3.1# 
    
  4. Copy the /mnt/cell/sbin/resize2fs file to the /sbin directory using the following command:

    # cp /mnt/cell/sbin/resize2fs /sbin
    
  5. Unmount the root file system using the following command.

    # cd /
    # umount /mnt/cell
    
  6. Verify the logical volume name using the following command:

    # lvm lvscan
    ACTIVE '/dev/VGExaDb/LVDbSys1' [1126.00 GB] inherit
    ACTIVE '/dev/VGExaDb/LVDbSwap1' [24.00 GB] inherit
    ACTIVE '/dev/VGExaDb/LVDbOra1' [100.00 GB] inherit

 2.3 正式收缩文件系统空间

# e2fsck -f /dev/VGExaDb/LVDbSys1
# resize2fs /dev/VGExaDb/LVDbSys1 30G
# lvm lvreduce -L 30G --verbose /dev/VGExaDb/LVDbSys1

 

3. 重启操作系统,验证(/)根文件系统已经收缩至30GB。

标签:文件系统,system,iso,LVDbSys1,Exadata,节点,Select
From: https://www.cnblogs.com/missyou-shiyh/p/18373760

相关文章

  • centos7安装Kafka单节点环境部署一-ZooKeeper安装与配置
    由于Kafka运行需要zookeeper配合,zookeeper需要运行在JVM上,所以需要安装JDK,zookeeper。Kafka从2.0.0版本开始就不再支持JDK7及以下版本,就以CentOS764位JDK8为例1、下载ZooKeeperwgethttps://archive.apache.org/dist/zookeeper/zookeeper-3.4.12/zookeeper-3.4.12.ta......
  • 树形菜单节点上下移动(同级别)
     在软件开发过程中,有遇到过树形菜单节点排序问题,如节点上移、节点下移。以下是一种实现方式,请工程师们审查是否合理!     publicclassNodeInfoEntity{///<summary>///id///</summary>[Column(Name="id")]publicstringId{......
  • FUSE文件系统
    应用访问限制分区存储的目标是保护应用和用户数据的隐私。这包括保护用户信息(例如照片元数据)、防止应用在未经明确许可的情况下修改或删除用户文件,以及保护下载到“下载”或其他文件夹的敏感用户文档。使用分区存储的应用可具有以下访问权限级别(实际访问权限因实现而异)。对自......
  • AVL树、2-3-4树、红黑树节点增加删除原理(详细说明)
    AVL树与红黑树引入:BST(二叉查找树)在插入的时候会导致倾斜,不同的插入顺序会导致树的高度不一样,树的高度直接影响到树的查找效率,最坏的情况就是所有节点就在一条斜线上,导致树的高度为N。平衡二叉树(BalancedBST)在插入和删除的时候,会通过旋转将高度保持在Logn。删除节点:   ......
  • 电力系统潮流计算(牛顿-拉夫逊法、高斯-赛德尔法、快速解耦法)【6节点 9节点 14节点 26
      ......
  • 零壹塔(力扣,递归,找父节点)
    https://leetcode.cn/problems/k-th-symbol-in-grammar/0/\01/\/0110/\/\/\/\01101001#include<iostream>usingnamespacestd;intsolve(i......
  • 基于STM32(STM32F103RETX)项目:水质检测与水位控制器(节点板)
    目录项目介绍一、项目需求二、设计方案三、相关技术点四、预计效果设备开发一、TDS模块二、LORA模块项目介绍一、项目需求1.水资源保护与管理的需求随着工业化和城市化的快速发展,水资源的污染问题日益严重,对水质进行实时监测和管理变得尤为重要。水质检测与水......
  • RabbitMQ消息队列:概念、单节点和集群示例
    目录消息队列概念主流的消息队列消息队列名词(1)Broker(2)Topic(3)Producer(4)Consumer(5)Queue(6)Message消息队列中两种工作模式Point-to-Point(PTP、点到点)Pub/Sub消息队列的缺点系统可用性降低系统复杂性提高数据一致性无法保证RabbitMQ相关术语(1)生产者(2)消费者(3)队......
  • 第10章 无持久存储的文件系统 (2)
    目录10.1proc文件系统10.1.2数据结构10.1.3初始化10.1.4装载proc文件系统10.1.5管理/proc数据项10.1.6读取和写入信息10.1.7进程相关信息10.1.8系统控制机制本专栏文章将有70篇左右,欢迎+关注,查看后续文章。 10.1proc文件系统10.1.2数据结构1.pr......
  • 在K8S中,⼀个pod的不同container能够分开被调动到不同的节点上吗?
    在Kubernetes(K8S)中,一个Pod是一组一起部署和管理的容器的集合。Pod内的容器总是被调度到同一个节点上运行,这是因为Pod设计的基本理念是其内的所有容器需要紧密耦合并且共享相同的网络命名空间和存储卷。具体来说,Pod内的容器有以下特点:共享IP地址:Pod内的所有容器共享......