[GTALUG] Making a second HD transparent to the user
John Sellens
jsellens at syonex.com
Sat Apr 9 13:57:50 UTC 2016
You didn't mention any particulars, so this may or may not be helpful.
Many distributions default to creating partitions using lvs.
If the "df" command shows you devices with names like
/dev/mapper/VolGroup00-LogVol00
they are using lvs.
With lvs, you can dynamically expand a partition.
If it looks like your machine is using lvs, check the output
of the pvs, vgs, and lvs commands.
If you are using lvs, and add a new disk to the system (likely /dev/sdb),
then something like this (modified to suit your system):
pvcreate /dev/sdb
vgextend VolGroup00 /dev/sdb
lvextend --size=+50G /dev/mapper/VolGroup00-LogVol00
and depending on your filesystem, something like
resize2fs /dev/mapper/VolGroup00-LogVol00
or
xfs_growfs /
But - with the low price of disks these days, if you have room for
two disks, it's often best to get two larger disks and mirror them.
Hope that helps - cheers
John
On Sat, 2016/04/09 11:51:58AM -0400, phiscock at ee.ryerson.ca <phiscock at ee.ryerson.ca> wrote:
| The time is coming when I will have to increase my hard drive storage. I
| could backup, replace the current drive with something larger, and then
| copy the backup to the new, larger drive.
|
| Or I could add a second SATA drive. Is it possible to configure that
| second drive so that it seamlessly appears as an increase of size of the
| first drive?
|
| Peter
|
|
| --
| Peter Hiscocks
| Syscomp Electronic Design Limited, Toronto
| http://www.syscompdesign.com
| USB Oscilloscope and Waveform Generator
| 647-839-0325
|
| ---
| Talk Mailing List
| talk at gtalug.org
| https://gtalug.org/mailman/listinfo/talk
More information about the talk
mailing list