리눅스에서 /var 에 저장공간을 늘리고싶은데 질문이 있습니다.

bsjun의 이미지

[root@localhost ~]# fdisk -l
 
Disk /dev/sda: 536.9 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001dac6
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          39      307200   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              39        2354    18598912   8e  Linux LVM
/dev/sda3            2354        2611     2064384   82  Linux swap / Solaris
 
 
[root@localhost ~]# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda2       18175756 9602484   7643328  56% /
tmpfs            2009776      76   2009700   1% /dev/shm
/dev/sda1         289293   30832    243101  12% /boot

현재 상황은 이렇고.. 제가 /var 에만 용량을 늘리고 싶은데요 (500GB)

fdisk /dev/sda 해서 주파티션 추가하고,

ext3 으로 파티션 포멧 후,

mount –t ext4 /dev/sda4 /var 로 마운트를 하고

fstab 에 추가하면 잘 작동 하는것 맞나요??

백연구원의 이미지

문제 없습니다.
/var에 데이터를 잘 백업해서 다시 가져오는 것이 중요하겠죠?


소곤소곤