change

Issues related to applications and software problems
Post Reply
polysupport
Posts: 2
Joined: 2018/12/12 20:44:26

change

Post by polysupport » 2018/12/12 21:28:26

Hi

I apologize if my request has been already posted. but after checking, I m sure, it is not the case.
we have a server running centos 7.5 with 2 drives ; 10 To (HD) et 256 Go (SSD)

details :
cat /etc/*elease
CentOS Linux release 7.6.1810 (Core)

here is how how disks have been created (by the vendor):

sudo parted -l
Model: ATA HGST HUH721010AL (scsi)
Disk /dev/sda: 10.0TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 10.0TB 10.0TB xfs primary

Model: ATA SATADOM-ML 3ME3 (scsi)
Disk /dev/sdb: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 2097kB 1049kB primary
2 2097kB 526MB 524MB primary xfs boot
3 526MB 22.0GB 21.5GB primary xfs
4 22.0GB 256GB 234GB extended
5 22.0GB 30.6GB 8590MB logical linux-swap(v1)
6 30.6GB 256GB 225GB logical xfs

or thru this command : sudo fdisk -l

Disk /dev/sda: 10000.8 GB, 10000831348736 bytes, 19532873728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
Disk identifier: 4D24***************************************

# Start End Size Type Name
1 2048 19532871679 9.1T Microsoft basic primary

Disk /dev/sdb: 256.1 GB, 256060514304 bytes, 500118192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000bcbee

Device Boot Start End Blocks Id System
/dev/sdb1 2048 4095 1024 83 Linux
/dev/sdb2 * 4096 1028095 512000 83 Linux
/dev/sdb3 1028096 42971135 20971520 83 Linux
/dev/sdb4 42971136 500117503 228573184 5 Extended
/dev/sdb5 42973184 59750399 8388608 82 Linux swap / Solaris
/dev/sdb6 59752448 500117503 220182528 83 Linux

I have also submitted an enclosed file to detailthe ssd drive thru GUI

so what is our concerns ?

we find out we could not install Matlab (18 Go) on the regular path /usr/local..located on FileSystem Partition 3 XFS (dev/sdb3) 21 Go
it does not make sense to install it on Home or the 10 To disk (this one is dedicated for storing our calculus)
we want to run Matlab on the SSD drive for its speed, and we have plenty of free available space on it (see pic)

questions

how do we have to change the partition, so you can move the current dev/sdbd3 on the free space (ssd drive)
is it possible to extand the dev/sdb3 to the extended partition ? (let say from 21 Go to 50 Go)
I've been looking online but saw so many different commands and we dont want to damage the server....

Thanks for your reply.









t
Attachments
SDD Drive GUI
SDD Drive GUI
filesystem partition6.jpg (240.09 KiB) Viewed 654 times

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: change

Post by stevemowbray » 2018/12/13 10:44:52

If I were you I'd just install it to /home/matlab, and add /home/matlab/bin to your path.

Alternatively, you could back up the contents of /home, split the partition using parted and make part of it the new /home and part of it /usr/local with the appropriate size, then restore the contents of /home.

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: change

Post by jlehtone » 2018/12/13 10:56:07

stevemowbray wrote:
2018/12/13 10:44:52
If I were you I'd just install it to /home/matlab, and add /home/matlab/bin to your path.
An alternative is to
1. create /home/local
2. move contents of /usr/local into /home/local
3. bind-mount /home/local as /usr/local (in /etc/fstab)
That way entire /usr/local will be on /dev/sdb6


PS. some informative commands:

Code: Select all

sudo gdisk -l
lsblk
blkid
findmnt

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: change

Post by tunk » 2018/12/13 11:12:40

Or you could shrink /home (/dev/sdb6?), make a new partition on the free space and mount it as /opt.
Install matlab and any other third party software there.

polysupport
Posts: 2
Joined: 2018/12/12 20:44:26

Re: change

Post by polysupport » 2018/12/14 16:06:53

jlehtone wrote:
2018/12/13 10:56:07
stevemowbray wrote:
2018/12/13 10:44:52
If I were you I'd just install it to /home/matlab, and add /home/matlab/bin to your path.
An alternative is to
1. create /home/local
2. move contents of /usr/local into /home/local
3. bind-mount /home/local as /usr/local (in /etc/fstab)
That way entire /usr/local will be on /dev/sdb6


PS. some informative commands:

Code: Select all

sudo gdisk -l
lsblk
blkid
findmnt

thanks for your suggestion. I think your idea seems more appropriate for our concerns.
would you mind to give us proper command lines to apply your ideas ?

regards

Post Reply