DBILITY

독거 가능성 100% 노후에 라면값이라도 하게 센스를 발휘합시다!😅
Please click on the ad so that I can pay for ramen in my old age!
点击一下广告,让老后吃个泡面钱吧!
老後にラーメン代だけでもするように広告を一回クリックしてください。

lvm 확장 후 fs 적용 본문

os/linux

lvm 확장 후 fs 적용

DBILITY 2018. 5. 13. 14:41
반응형

가상시스템에 디스크용량을 늘렸다.

헌데 lvm....이것 저것 찾아 해봤는데도 file system 정보에선 늘어나지 않는 용량...

CenOS 7부턴 xfs_growfs를 써야한다고 함.

생각해보니 partition의 file type이 xfs였나 보다.

[root@big-master ~]# resize2fs /dev/mapper/centos-root
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /dev/mapper/centos-root
Couldn't find valid filesystem superblock.
[root@big-master ~]# xfs_growfs /dev/centos/root
meta-data=/dev/mapper/centos-root isize=256    agcount=4, agsize=1852416 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=7409664, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal               bsize=4096   blocks=3618, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 7409664 to 15808512
[root@big-master ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   61G   23G   38G  38% /
devtmpfs                 3.9G     0  3.9G   0% /dev
tmpfs                    3.9G     0  3.9G   0% /dev/shm
tmpfs                    3.9G  8.7M  3.9G   1% /run
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda1                497M  170M  327M  35% /boot
tmpfs                    783M     0  783M   0% /run/user/1001
tmpfs                    783M     0  783M   0% /run/user/1002
tmpfs                    783M     0  783M   0% /run/user/0
[root@big-master ~]#

 

반응형

'os > linux' 카테고리의 다른 글

centos 7 cp force  (0) 2019.04.12
centos 7 rabbitmq 설치  (0) 2018.10.19
linux time sync ntp install ( 시간 동기화 ntp 설치 )  (0) 2018.05.05
centos 7 systemd 서비스 작성  (0) 2018.04.20
linux java 설치  (0) 2018.04.17
Comments