lvconvert --merge
로 스냅샷을 병합하면 원본이 스냅샷 시점으로 되돌아갑니다.참고: 스냅샷 용량(-L)은 “변경되는 데이터량”을 담을 만큼 필요합니다. 부족해 overflow가 나면 스냅샷이 무효가 됩니다.
# lvcreate -s -L 512M -n snap_ext4 /dev/vgtest/lv_ext4
출력 예시:
Logical volume "snap_ext4" created.
# lvcreate -s -L 512M -n snap_xfs /dev/vgtest/lv_xfs
출력 예시:
Logical volume "snap_xfs" created.
# echo "hello-ext4" > /mnt/ext4/TEST.txt # echo "hello-xfs" > /mnt/xfs/TEST.txt
# cat /mnt/ext4/TEST.txt # cat /mnt/xfs/TEST.txt
# umount /mnt/ext4 /mnt/xfs
# lvconvert --merge /dev/vgtest/snap_ext4
출력 예시:
Merging of volume vgtest/snap_ext4 started. vgtest/lv_ext4: Merged: 100.00%
# lvconvert --merge /dev/vgtest/snap_xfs
출력 예시:
Merging of volume vgtest/snap_xfs started. vgtest/lv_xfs: Merged: 100.00%
# mount /dev/vgtest/lv_ext4 /mnt/ext4 # mount /dev/vgtest/lv_xfs /mnt/xfs
# ls -l /mnt/ext4 /mnt/xfs
출력 예시:
/mnt/ext4: total 16 drwx------. 2 root root 16384 Aug 27 10:21 lost+found /mnt/xfs: total 16 drwx------. 2 root root 16384 Aug 27 10:21 lost+found
https://youtu.be/ZcxB7akkDKs 1. 개요 두 개의 디스크(/dev/vdb, /dev/vdc)로 LVM을 구성하고, ext4·XFS 파일시스템 생성 → 마운트 → VG/LV 확장 → ext4 축소(오프라인)까지 전체…
https://youtu.be/XYBR1ZFrV9s 1. 개요 parted를 사용해 새 디스크에 GPT 라벨 생성 → 파티션 생성(ext4/XFS) → 포맷/마운트 →…
https://youtu.be/yYV8RQKCFzA 1. 개요 이 문서는 fdisk를 사용해 MBR(DOS) 디스크에 파티션을 생성하고, ext4/XFS 파일시스템을 포맷·마운트, /etc/fstab에 등록했다가, 안전하게 해제·삭제하는 전…
1. 개요 Linux에서 디스크 파티션 스타일은 MBR(Master Boot Record) 와 GPT(GUID Partition Table)에 대해 설명합니다. 2. MBR이란? 디스크…
https://youtu.be/CNd1bJV4wGY 1. 개요 Windows Server를 새로 설치할 때의 설치 과정을 단계별로 정리하였습니다. Windows Server 설치…
https://youtu.be/dVe6vc76yL0 1. 개요 Rocky Linux 9.5 환경에서 두 개의 NIC를 하나로 묶는 Active-Backup Bonding 구성 후, 해당…