Difference between revisions of "Format And Mount local2"

From DISI
Jump to navigation Jump to search
(Created page with " == Format Disk == Do these commands as root: * fdisk -l ** Find disks/RAID disks to format *parted *print *mklabel gpt *mkpart logical 0GB 9995GB. (based on what we read in r...")
 
m
Line 21: Line 21:
 
** /dev/zinc/zinc_lv /local2 ext4 defaults 1 2
 
** /dev/zinc/zinc_lv /local2 ext4 defaults 1 2
 
* mount /local2
 
* mount /local2
 +
 +
== Partition Disk ==
 +
* https://www.techotopia.com/index.php/Adding_a_New_Disk_Drive_to_a_CentOS_System

Revision as of 22:37, 4 March 2021

Format Disk

Do these commands as root:

  • fdisk -l
    • Find disks/RAID disks to format
  • parted
  • print
  • mklabel gpt
  • mkpart logical 0GB 9995GB. (based on what we read in result of print above)
  • print. (to confirm)
  • quit


Mount Local2

  • pvcreate /dev/sdb1
  • vgcreate zinc /dev/sdb1
  • lvcreate -l 100%FREE -n zinc_lv zinc
  • mkfs.ext4 -L zinc /dev/mapper/zinc-zinc_lv
  • mkdir /local2
  • vim /etc/fstab
    • /dev/zinc/zinc_lv /local2 ext4 defaults 1 2
  • mount /local2

Partition Disk