Page tree

Unmounting partitions on used disks

To unmount a partition on a "Non ADDM Disk", log in to the appliance command line as the tideway user.

  1. Check the mounted partitions. Enter:
    [tideway@appliance01 ~]$ df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda7             965M  273M  643M  30% /
    /dev/sda1              99M   17M   78M  18% /boot
    /dev/sda6             1.5G   35M  1.4G   3% /home
    /dev/sda5             1.9G   36M  1.8G   2% /tmp
    /dev/sda8              38G   30G  6.7G  82% /usr
    /dev/sda3             2.4G  617M  1.7G  27% /var
    /dev/sdb2	      1.9G   36M  1.8G   2% /mnt/old 
    /dev/sdc2             1.2G   37M  1.1G   4% /mnt/addm/data
    tmpfs                 1.5G     0  1.5G   0% /dev/shm
    [tideway@appliance01 ~]$ 
    In this example /dev/sdb2 is mounted on /mnt/old. /dev/sdb2 shows as a "Non ADDM Disk" in the disk configuration utility. It must be unmounted before it can be configured using the disk configuration utility where it is displayed as "New Disk".
  2. Unmount the /mnt/old partition. Enter:
    [tideway@appliance01 ~]$ sudo umount /mnt/old
    [tideway@appliance01 ~]$ 
    The /mnt/old partition is unmounted.
  3. Check for enabled swap partitions. Enter:
    [tideway@appliance01 ~]$ /sbin/swapon -s
    Filename              Type            Size    Used    Priority
    /dev/sda2             partition       4192956 0       -1
    /dev/sdb1             partition       2928700 0       -2
    [tideway@appliance01 ~]$ 
    In this example /dev/sdb1 is an enabled swap partition.
  4. Disable the /dev/sdb1 swap partition. Enter:
    [tideway@appliance01 ~]$ sudo /sbin/swapoff /dev/sdb1
    [tideway@appliance01 ~]$ 

    This has an immediate effect on system resources.
  • No labels