In the previous blog, we talked about the concepts behind virtual data optimizer (VDO) and how to configure it with Red Hat Enterprise Linux (RHEL) 7.5 Beta. In the last step, we created a VDO volume.
In this blog we are going to experiment and observe real world savings on storage. For the experiment, I am not going to use any artificially generated workload but, rather, we'll follow the simplest way by introducing some data on the disk and then multiplying the same data on the disk with a different name. This simple exercise can ensure that we are adding redundant data to disk to trigger deduplication.
VM SPECIFICATIONS:
OS : RHEL 7.5 Beta pre-release (Since, VDO is integrated in RHEL 7.5 Beta)
RAM : 4GB
OS DISK : 20GB
ADDITIONAL DISK : 15GB (VirtIO-blk)
Before beginning with the experiment, I assume you have a successfully running volume with "enabled" Deduplication and Compression. To verify this run the commands :
# vdo status -n <vdo_vol_name> | grep Deduplication
# vdo status -n <vdo_vol_name> | grep Compression
From the output we see that both deduplication and compression are enabled.
If either of the above options are disabled, you can enable them with the following commands:
# vdo enableCompression -n <vdo_vol_name>
# vdo enableDeduplication -n <vdo_vol_name>
Before we add data to the VDO volume, let’s check the storage status :
# vdostats --hu
The output of "vdostats -- hu" shows:
- User available space (in my case, 12.0GB)
- UDS metadata space (in my case, 3GB)
- Storage savings (in my case, 98%)
Now, we’ll test the effect of deduplication, zero block elimination, and compression.
- For this purpose, I add a RHEL-7.5-x86_64-boot.iso file to the vdo_vol device on the /vdo_vol mountpoint.
# df -hT
- Next, I copy the same image file to the same directory four times (using "cp -pr <file to be copied> <dest_directory>").
# ls -l --block-size=1MB
This is the output of a directory listing (ls) before copying the data
- Each RHEL iso is approximately 557MB, so total logical space consumed on disk is 557x4=2228MB ~ 2.2GB
This is output of a directory listing (ls) after making three more copies of the data
- Next we check the resulting space savings. Since only unique streams of data blocks should persist on media within a VDO volume, the additional space usage in 12GB of user space shouldn't be more than 500-700MB.
To verify this, we run the command:
# vdostats --hu
Status of storage on a VDO vol after adding redundant data
OBSERVATIONS:
- The initial space used by the VDO volume was 3.0 GB according to vdostats output.
- The space used after the initial copy was 3.5 GB in the vdostats output.
- The space occupied by 4 RHEL iso images on a VDO vol is : 0.5 GB, the same as for a single RHEL iso file on the underlying storage.
- The df -hT output shows the logical space occupied by these 4 iso files as seen by the filesystem on the VDO volume reported as. 2.2GB.
- Since VDO manages a logical to physical block map, df sees logical space consumed according to the file system that resides on top of the VDO volume. vdostats --hu is viewing the physical block device as managed by VDO. Physically a single RHEL image is residing on the disk, but logically the file system thinks there are 4 copies, occupying 2.2GB.
# df -HT
df -hT output (after applying the copy operation)
Based on this, we can conclude that VDO eliminates the redundancy of data stored on a VDO volume.
저자 소개
채널별 검색
오토메이션
기술, 팀, 인프라를 위한 IT 자동화 최신 동향
인공지능
고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트
오픈 하이브리드 클라우드
하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요
보안
환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보
엣지 컴퓨팅
엣지에서의 운영을 단순화하는 플랫폼 업데이트
인프라
세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보
애플리케이션
복잡한 애플리케이션에 대한 솔루션 더 보기
오리지널 쇼
엔터프라이즈 기술 분야의 제작자와 리더가 전하는 흥미로운 스토리
제품
- Red Hat Enterprise Linux
- Red Hat OpenShift Enterprise
- Red Hat Ansible Automation Platform
- 클라우드 서비스
- 모든 제품 보기
툴
체험, 구매 & 영업
커뮤니케이션
Red Hat 소개
Red Hat은 Linux, 클라우드, 컨테이너, 쿠버네티스 등을 포함한 글로벌 엔터프라이즈 오픈소스 솔루션 공급업체입니다. Red Hat은 코어 데이터센터에서 네트워크 엣지에 이르기까지 다양한 플랫폼과 환경에서 기업의 업무 편의성을 높여 주는 강화된 기능의 솔루션을 제공합니다.