Home > OS >  Linux disk space is insufficient, how to increase
Linux disk space is insufficient, how to increase

Time:10-12

. Recently, I installed the ubuntu 14.04, install the asking price is more, prompt disk space is insufficient, is I use df -h command, check the results as shown in the above, the mount point the host disk capacity is large, and the mount point "/" g space occupied more than 80%, could you tell me how can add the control under the host to the file system/dev/loop0 mount point "/" here?

CodePudding user response:

Loop is what, magic ubuntu18 as well

CodePudding user response:

Sda1, sda2 two sda is the hard disk partitions,

CodePudding user response:

1, df -h
2, resize2fs -p/dev/mapper/VolGroup - lv_home 1000 g
- the Filesystem at/dev/mapper/VolGroup - lv_home is mounted on/home; On - line resizing the required
3, the fuser - m/home
/home: 10278 c 10279 c 10280 c 10281 c 10282 c, 10295, 10365, 18222 c
4, kill 9 10278...
5, umount/home
6, e2fsck -f/dev/mapper/VolGroup - lv_home
7, resize2fs -p/dev/mapper/VolGroup - lv_home 1000 g
8, the mount/home/
9, df -h
10, lvreduce -l 1000 g/dev/mapper/VolGroup - lv_home
11, vgdisplay
12, lvextend -l + 2000 g/dev/mapper/VolGroup - lv_root
13, resize2fs - p/dev/mapper/VolGroup - lv_root
14, df -h
- if it is found that space into the original space + new space just by the way,,,


Here is my table space DBF file mapping to other systems, the method of please consult,

1, offline ora11_data table space, table space ora11_data offline
Up sqlplus/as sysdba
SQL> The alter in tablespace ora11_data offline;

2, copy the data files to the new directory
The mkdir -p/home/oracle/oradata ora11
Chown -r oracle: oracle/home/oracle/oradata ora11
Cp/oracle/app/oradata ora11/ora11_data. DBF/home/oracle/oradata/ora11/ora11_data. DBF
Chown oracle: oracle/home/oracle/oradata/ora11/ora11_data. DBF

3, rename modified table space data file for the new position, and modify the control file
Up sqlplus/as sysdba
The alter in tablespace ora11_data rename datafile '/oracle/app/oradata ora11/ora11_data. DBF' to '/home/oracle/oradata/ora11/ora11_data. DBF'


4, the online table space
SQL> The alter in tablespace ora11_data online;
SQL> Select the name from v $datafile;

CodePudding user response:

I thought that to use the rm - rf/*
  • Related