mount a new physical hard disk on RedHat #linux #sysadmin #RHEL7
- christophe desterke
- 18 févr. 2019
- 1 min de lecture
#root require lvm2 : logical volum manager #scan all disks fdisk -l /dev/sd* #scan the disk concerned to be mount sdb fdisk -l /dev/sdb #create volume group vgcreate data1 /dev/sdb #scan data1 volume group vgdisplay data1 #tree of mount points lsblk #create a logical volum attached to the group volum (size here 3.6T) lvcreate -L3600G -n lvdata1 data1 #format the new logical volum mkfs -t ext4 /dev/data1/lvdata1 df -h
Comments