Tuesday, July 07, 2009

Linux hard disk operation

LVM
Create LV process
  • Initializing disks or disk partitions

    fdisk - fdisk /dev/sd? press p to list the partition table, press n to create a new partition, press e to create extended partition, press p to create a primary partition(maximum 4 per disk) input the number of the partition if create a primary partition, input fisrt cylinder number, input last cylinder number or +sizeM eg: +100M. Change the partition's system ID by use the fdisk command t, input the partition number after the popup Selected Partition, input desired Hex code of the system id here input 8e which for linux LVM. Use the fdisk command w to write the new partition table to the hard disk.

  • Assign the disks or disk partitions as physical volume
  • Create volume group on one or more PVs
  • Use space from a VG as Logical Volume
  • Format the LV.

No comments: