> python run.py

ctrl + z

> bg

> jobs

[1]     run.py

> disown -h %1

'TA > Common' 카테고리의 다른 글

sharedata 데렉토리 속성 정의  (0) 2013.08.26
서버 날짜 수정 - date  (0) 2013.08.26
du apparent-size  (0) 2013.07.29
bash: /dev/null: Permission denied  (0) 2013.02.05
부팅시 자동 마운트 방법  (0) 2013.02.05
Posted by 옥탑방람보
,

<NFS 서버>

# chmod 514.513 /nas/data/share

# chmod g+s /nas/data/share   # set group id 설정 (디렉토리 하위에 생성되는 모든 파일은 해당 디렉토리 그룹명을 가짐)

# setfacl -m 'd:o:r-x' /nas/data/share   # file access controll 설정 (디렉토리 하위에 생성되는 모든 파일에 대한 권한 설정 가능)

 

<NFS 클라이언트>

# vi /etc/fstab

XXX.XXX.XXX.XXX:/nas/data/share   /sharedata  nfs defaults,suid   0 0

# mount -a

 

'TA > Common' 카테고리의 다른 글

실행중인 프로세스 유지하는 방법 - disown  (0) 2014.06.30
서버 날짜 수정 - date  (0) 2013.08.26
du apparent-size  (0) 2013.07.29
bash: /dev/null: Permission denied  (0) 2013.02.05
부팅시 자동 마운트 방법  (0) 2013.02.05
Posted by 옥탑방람보
,

date -s 20130625

date +%T --set="08:00:00"

 

'TA > Common' 카테고리의 다른 글

실행중인 프로세스 유지하는 방법 - disown  (0) 2014.06.30
sharedata 데렉토리 속성 정의  (0) 2013.08.26
du apparent-size  (0) 2013.07.29
bash: /dev/null: Permission denied  (0) 2013.02.05
부팅시 자동 마운트 방법  (0) 2013.02.05
Posted by 옥탑방람보
,

du apparent-size

TA/Common 2013. 7. 29. 16:34

Apparent size is the number of bytes your applications think are in the file. It's the amount of data that would be transferred over the network (not counting protocol headers) if you decided to send the file over FTP or HTTP. It's also the result of cat theFile | wc -c, and the amount of address space that the file would take up if you loaded the whole thing using mmap.

Disk usage is the amount of space that can't be used for something else because your file is occupying that space.

In most cases, the apparent size is smaller than the disk usage because the disk usage counts the full size of the last (partial) block of the file, and apparent size only counts the data that's in that last block. However, apparent size is larger when you have a sparse file (sparse files are created when you seek somewhere past the end of the file, and then write something there -- the OS doesn't bother to create lots of blocks filled with zeros -- it only creates a block for the part of the file you decided to write to).

 

du --apparent-size  : 실제 파일의 사이즈를 보여줌 즉, 네트웍상으로 전달되는 데이터 사이즈라고 보면 됨.

일반적인 ls, du 등으로 파일 사이즈 확인시에는 해당 파일이 차지하는 블럭사이즈를 계산하게 되므로 보통 --apparent-size로 보는 것보다 크게 보임.

'TA > Common' 카테고리의 다른 글

sharedata 데렉토리 속성 정의  (0) 2013.08.26
서버 날짜 수정 - date  (0) 2013.08.26
bash: /dev/null: Permission denied  (0) 2013.02.05
부팅시 자동 마운트 방법  (0) 2013.02.05
서버가 부팅시 시작되는 서비스들 확인  (0) 2013.02.05
Posted by 옥탑방람보
,

bash: /dev/null: Permission denied 라는 에러메시지 fix 방법

The problem seems to be with the permissions of
the /dev/null. This seems to be read only at the
moment for you. Check this by logging in as root
and listing it with the command:
ls -l /dev/null
You should see this if everything is correctly
set:
crw-rw-rw- 1 root root 1, 3

If you get a different set of permissions like
this maybe:
-rw-r--r-- 1 root root 1, 3

then you should (as root) delete the /dev/null with:
rm /dev/null

and recreate it (as root) again with:
mknod -m 0666 /dev/null c 1 3

(The device number according to the Kernel source
in the documentation under Documentation/devices.txt
supposed to be Major=1 und Minor=3)

Now, list the /dev/null again and you should see
the permissions as above.

'TA > Common' 카테고리의 다른 글

서버 날짜 수정 - date  (0) 2013.08.26
du apparent-size  (0) 2013.07.29
부팅시 자동 마운트 방법  (0) 2013.02.05
서버가 부팅시 시작되는 서비스들 확인  (0) 2013.02.05
원하는 사이즈를 가진 파일 만들기  (0) 2013.02.05
Posted by 옥탑방람보
,

부팅시 자동 마운트 방법
1) fstab 에 기록하는 방법
$> vi /etc/fstab 에 아래 항목 추가
XXX.XXX:/source/dir /mountpoint  nfs  defaults  0  0
2) rc.local에 등록하는 방법
$> vi /etc/rc.local
mount -t nfs XXX.XXX:/source/dir
1)과 2)번 중 하나의 방법으로 가능하다. 그러나 확인 결과 어떠한 이유때문인지는 모르겠으나, 1)번의 방법으로 안되는 경우를 많이 보았다.

Posted by 옥탑방람보
,

서버가 부팅시 시작되는 서비스들 확인 (run level에 따라 표시됨)
$> chkconfig --list
원하는 서비스 삭제방법
$> chkconfig --del iptables

Posted by 옥탑방람보
,
원하는 사이즈를 가진 파일 만들기
1G 파일 만들기
$> dd if=/dev/zero of=./out.txt bs=1024k count=1000

 

Posted by 옥탑방람보
,

네트워크 패킷전송 상황 모니터링하기
$> dstat -N total,bond0,eth0,eth1
이라고 해두고 데이터 전송을 시켜보면 어떠한 경로로 데이터가 움직이는지 확인이 가능하다.

디스크 IO상황 모니터링 하기
$> dstat -D total,sda,sdb
라고 해두고 데이터 복사를 시켜보면 IO가 얼만큼의 속도로 일어나는지 확인이 가능하다.

Posted by 옥탑방람보
,

주요 12가지 파일시스템 종류 및 비교

FAT16, FAT32, exFAT, ext2, ext4, NTFS, XFS GFS2, HFS, HFS Plus, ZFS

 

Creator

Max file size

Max volume size

WinXP

Win7

CentOS 5

Fedora16

Mac OS

특징

FAT16

Microsoft (MS-DOS 3.0)

2 GB

2 GB or 4 GB

Yes

Yes

Yes

Yes

Yes

파일사이즈 제한

FAT32

Microsoft (Win95)

4 GB

2 TB

Yes

Yes

Yes

Yes

Yes

파일사이즈 제한

exFAT

Microsoft (Win Vista)

127 PB

64 ZB, 512 TB recommended

XP SP2

Yes

With third party driver

With third party driver

10.6.5 and later

MBR, GPT

Vista 이상

Ext2

Remy Card (Linux)

2 TB

32 TB

No

Partial (Ext2Fsd)

Yes

Yes

Yes

파일사이즈 제한

Ext3

Stephen Tweedie (Linux)

2 TB

32 TB

No

Partial (Ext2Fsd)

Yes

Yes

No

파일사이즈 제한

Win에서 사용어려움

Ext4

Various (Linux)

16 TB

1 EB

No

Partial (Ext2Fsd)

Since kernel 2.6.28

Yes

10.6.5 and later

Win에서 사용 어려움

NTFS (3.0)

Microsoft (WinNT)

16 EB

16 EB

512 TB (Win)

Yes

Yes

No (since kernel 2.2)

Yes

Read only

MBR, GPT

2 TB 이상일 경우 GPT로 구성

XFS

SGI (Linux)

8 EB

8 EB

No

No

Yes

Yes

No

Win에서 사용 못함

GFS2

Sistina (Red Hat)

8 EB

8 EB

No

No

Yes

Yes

No

Win에서 사용 못함

HFS

Apple (MacOS)

2 GB

2 TB

With third party app

With third party app

Yes

Yes

Yes

Win에서 사용어려움

HFS Plus

Apple (MaxOS 8.1)

8 EB

8 EB

With third party app

With third party app

Partial

Partial

9 and later

Win, Linux 사용 어려움

ZFS

Sun Microsystems (Solais)

16 EB

16 EB

No

No

With third party

With third party kernel module

10.5 and later

Win에서 사용 못함

Linux에서 사용 어려움

Posted by 옥탑방람보
,