2021년 7월 5일 월요일

inode 번호를 써서 이상한 파일 지우는 방법

 VDICA-NAS02-1# ls -li

total 23

4295260576 drwxr-xr-x     3 root  wheel    29 Mar  7 23:00 .isilon

         2 dr-xr-xr-x     2 root  wheel     0 Jul  4 22:01 .snapshot

4295229588 drwxr-xr-x     2 root  wheel    69 Dec  9  2020 LGCMGR

4296417361 drwxr-xr-x     2 root  wheel     0 Jun 18 14:28 PROJ_LGES

4294967313 -rw-r--r--     1 root  wheel  1034 Dec  9  2020 README.txt   <--삭제대상

4295229587 drwxr-xr-x     2 root  wheel    69 Dec  9  2020 c4profile

4295294979 drwxrwxrwx     4 root  wheel    53 Apr 27 17:29 data

4295360525 drwxrwxr-x     4 root  wheel    28 Dec  9  2020 home

4295360646 drwxr-xr-x     2 root  wheel    81 Dec  9  2020 userdata

VDICA-NAS02-1#

VDICA-NAS02-1# find . -inum 4294967313 -exec rm {} \;

VDICA-NAS02-1# ls -li

total 14

4295260576 drwxr-xr-x     3 root  wheel  29 Mar  7 23:00 .isilon

         2 dr-xr-xr-x     2 root  wheel   0 Jul  4 22:01 .snapshot

4295229588 drwxr-xr-x     2 root  wheel  69 Dec  9  2020 LGCMGR

4296417361 drwxr-xr-x     2 root  wheel   0 Jun 18 14:28 PROJ_LGES

4295229587 drwxr-xr-x     2 root  wheel  69 Dec  9  2020 c4profile

4295294979 drwxrwxrwx     4 root  wheel  53 Apr 27 17:29 data

4295360525 drwxrwxr-x     4 root  wheel  28 Dec  9  2020 home

4295360646 drwxr-xr-x     2 root  wheel  81 Dec  9  2020 userdata

VDICA-NAS02-1#


2021년 2월 22일 월요일

Export & Import a quota configuration

 

    Procedure

  1. Open a secure shell (SSH) connection to any node in the cluster and log in.
  2. At the command prompt, run the following command:
    isi_classic quota list --export

    The quota configuration file displays as raw XML.

    Procedure

  3. Open a secure shell (SSH) connection to any node in the cluster and log in.
  4. Navigate to the location of the exported quota configuration file.
  5. At the command prompt, run the following command, where <filename> is the name of an exported configuration file:
    isi_classic quota import --from-file=<filename>
    The system parses the file and imports the quota settings from the configuration file. Quota settings that you configured before importing the quota configuration file are retained, and the imported quota settings are effective immediately.