First delete all old partisions
You han also use sgdisk -z /dev/sdb
pvcreate /dev/sdb
WARNING: dos signature detected on /dev/sdb at offset 510. Wipe it? [y/n]: y
Wiping dos signature on /dev/sdb.
Physical volume "/dev/sdb" successfully created.
vgcreate backup_vg /dev/sdb
Volume group "backup_vg" successfully created
lvcreate -n backup_vol -l 100%FREE backup_vg
Logical volume "backup_vol" created.
mkfs.xfs -b size=4096 -m reflink=1,crc=1 /dev/backup_vg/backup_vol
meta-data=/dev/backup_vg/backup_vol isize=512 agcount=32, agsize=234414016 blks
= sectsz=4096 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=0
= reflink=1
data = bsize=4096 blocks=7501248512, imaxpct=5
= sunit=64 swidth=512 blks
naming = version 2 bsize=4096 ascii-ci=0, ftype=1
log = internal log bsize=4096 blocks=521728, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime = none extsz=4096 blocks=0, rtextents=0
mkdir /veeam
vim /etc/fstab
insert this line
/dev/backup_vg/backup_vol /veeam xfs defaults 0 0
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 447G 0 disk
├─sda1 8:1 0 1G 0 part /boot/efi
├─sda2 8:2 0 2G 0 part /boot
└─sda3 8:3 0 443G 0 part
├─rhel-root 253:0 0 70G 0 lvm /
├─rhel-swap 253:1 0 8G 0 lvm [SWAP]
├─rhel-var 253:3 0 50G 0 lvm /var
└─rhel-home 253:4 0 315G 0 lvm /home
sdb 8:16 0 28T 0 disk
└─backup_vg-backup_vol 253:2 0 28T 0 lvm /veeam
No comments:
Post a Comment