1

we have Linux machine redhat 7.2 LVM disk

disk -sdd with only 2G

we want to extend the size of /data to 20G by adding another disk - sde

/dev/sdd            2.0G  9.2M  1.9G   1% /data

expected results

/dev/sdd            20.0G  9.2M  1.9G   1% /data

what is the procedure that explain how to add another disk and join the new disk size to "sdd" ?

0

It does not look like your /dev/sdd is a member of LVM Group. You cannot just extend your device. Expected result is not able to be done.

By the subject, I can assume, you would like to use LVM to extend /dev/sdd and keep your data from /dev/sdd on /dev/sdd and /dev/sde at /data mount-point.

If so, the procedure looks like that:

  • Do reliable the backup of /data.
  • Create physical-volume from /dev/sdd. (It will wipe-out your data from /dev/sdd)
  • Create physical-volume from /dev/sde (It will wipe-out your data from /dev/sde)
  • Create volume-group that consists of two PVs: /dev/sdd and /dev/sde.
  • Create linear logical-volume, create filesystem on it, mount it on /data.
  • Restore your backup.

References:

  • thank you , can you please described how to Create physical-volume , Create volume-group , Create linear logical-volume ( or just explain by commands the steps , – yael Jan 2 '18 at 8:35
  • Have a look at pvcreate vgcreate lvcreate commands. – user263770 Jan 2 '18 at 8:40
  • do we need to umount the mount point from sdd when we do pvcreate> – yael Jan 2 '18 at 8:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.