Listando novo disco adicionado Vmware
1 2 3 4 5 6 |
[root@localhost ~]# fdisk -l Disk /dev/sdc: 53.7 GB, 53687091200 bytes, 104857600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes |
Criando PV
1 2 |
[root@localhost ~]# pvcreate /dev/sdc Physical volume "/dev/sdc" successfully created |
Criar VG
1 2 |
[root@localhost ~]# vgcreate VGBKP /dev/sdc Volume group "VGBKP" successfully created |
Criar LV
1 2 |
[root@localhost ~]# lvcreate -l +100%FREE -n LVBKP VGBKP Logical volume "LVBKP" created. |
Formatar xfs
1 2 3 4 5 6 7 8 9 10 |
[root@localhost ~]# mkfs.xfs /dev/VGBKP/LVBKP meta-data=/dev/VGBKP/LVBKP isize=256 agcount=4, agsize=3276544 blks = sectsz=512 attr=2, projid32bit=1 = crc=0 finobt=0 data = bsize=4096 blocks=13106176, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=0 log =internal log bsize=4096 blocks=6399, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 |
Criar diretório BKP
1 2 |
[root@localhost ~]# mkdir -pv /BKP mkdir: created directory ‘/BKP’ |
Adicionar ponto de montagem no fstab
1 2 3 |
[root@localhost ~]# vim /etc/fstab /dev/VGBKP/LVBKP /BKP xfs defaults 0 0 |
Montando partição
1 2 3 4 5 6 7 8 9 10 11 |
[root@localhost ~]# mount -av / : ignored /boot : already mounted swap : ignored /u01 : already mounted mount: /BKP does not contain SELinux labels. You just mounted an file system that supports labels which does not contain labels, onto an SELinux box. It is likely that confined applications will generate AVC messages and not be allowed access to this file system. For more details see restorecon(8) and mount(8). /BKP : successfully mounted |
Visualizando a partição /BKP montada
1 2 3 |
[root@localhost ~]# df -h /BKP Filesystem Size Used Avail Use% Mounted on /dev/mapper/VGBKP-LVBKP 50G 33M 50G 1% /BKP |