[SOLVED] Moving a CentOS 7 HDD from HP DL160 to HP DL360p

General support questions
tunk
Posts: 895
Joined: 2017/02/22 15:08:17

Re: Moving a CentOS 7 HDD from HP DL160 to HP DL360p

Post by tunk » 2021/02/10 11:18:22

Maybe there's a setting under "logical/physical/unassigned devices"?
Also, is the firmware of the controller up to date?
Is this any help:
https://forums.unraid.net/topic/82007-s ... dl380p-g8/

webdbase
Posts: 21
Joined: 2021/01/27 13:00:19

Re: Moving a CentOS 7 HDD from HP DL160 to HP DL360p

Post by webdbase » 2021/02/10 11:45:08

tunk wrote:
2021/02/10 11:18:22
Maybe there's a setting under "logical/physical/unassigned devices"?
It says there are no other drives.

Edit:
I do not think that is the problem. The problem is with the size mismatch. As I stated before I can manually activate the LVM and mount 2 of the 3 members and all data is there.

Edit 2:
I also mentioned that I can start a fresh installation on that same disk.

webdbase
Posts: 21
Joined: 2021/01/27 13:00:19

Re: Moving a CentOS 7 HDD from HP DL160 to HP DL360p

Post by webdbase » 2021/02/10 15:11:58

After reading this, a heretical idea came to me.
Maybe some additional space is required by that RAID?

disk size is 1953459632 512-blocks (1.00 TB/ 931 GB)
sda2 start=1846552576, len=104857600, dev_size=1951360432
start+len=1951410176
1951410176 * 512 = 930,5048828125 GB

1951360432 (dev_size) - 1953459632 (disk) = 2099200 blocks = 1025 MB
len=104857600 - this means 50 GB, which is the root partition!!!

So I shrink it by 1025 or 1026 MB
or should I shrink the home partition by 1026 MB? Would this pool the root partition towards the beginning?

This is what lvscan and fdisk -l show on the running system.

Code: Select all

lvscan 
  ACTIVE            '/dev/centos00/swap' [<3.88 GiB] inherit
  ACTIVE            '/dev/centos00/home' [<876.63 GiB] inherit
  ACTIVE            '/dev/centos00/root' [50.00 GiB] inherit
A total of 930.51 GB

Code: Select all

fdisk -l
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200  1953523711   975712256   8e  Linux LVM

Disk /dev/mapper/centos00-root: 53.7 GB, 53687091200 bytes, 104857600 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 /dev/mapper/centos00-swap: 4160 MB, 4160749568 bytes, 8126464 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 /dev/mapper/centos00-home: 941.3 GB, 941273120768 bytes, 1838424064 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
Do you think it is feasible?

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

Re: Moving a CentOS 7 HDD from HP DL160 to HP DL360p

Post by tunk » 2021/02/10 15:29:27

How did you setup the drive in the RAID controller?
In my experience it may come preconfigured when you
buy a new server, or you have to do it yourself.
E.g. if you have two disks and want a mirror, then
you setup and create a RAID 1. Then this is presented
as one logical volume to the system, and not as two
physical disks.

I'm not sure what your setup is, but it may sound as
you are trying to use a non-configured disk as a
RAID disk. This may not work.

HBA/passthrough presents the physical disks to the
system, and as you say the disk work on a desktop,
configuring your RAID card for this may work.

Also some (most?) controllers store the setup both
on the card and the disks (IIRC at the beginning or
end of the disk), which may confuse the card even
more.

YMMV

Edit: You could try to run "smartctl -a /dev/sda"
to see if it's presented as a physical disk or as
a RAID.

webdbase
Posts: 21
Joined: 2021/01/27 13:00:19

Re: Moving a CentOS 7 HDD from HP DL160 to HP DL360p

Post by webdbase » 2021/02/10 15:59:23

tunk wrote:
2021/02/10 15:29:27
How did you setup the drive in the RAID controller?
In my experience it may come preconfigured when you
buy a new server, or you have to do it yourself.
All photos regarding the configuration are in my prevouse post.

Edit:
tunk wrote:
2021/02/10 15:29:27
Edit: You could try to run "smartctl -a /dev/sda"
to see if it's presented as a physical disk or as
a RAID.
This will be hard to do, because the only way to access it is through the rescue cd, which does not come with smartmontools.

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

Re: Moving a CentOS 7 HDD from HP DL160 to HP DL360p

Post by tunk » 2021/02/10 16:48:17

Yes, but did you actively change any of the settings,
or did you just insert the disk and then look at them?

Gparted Live comes with smartctl.

If you assume:
1. The card stores it's setup at the end of the disk.
2. root is at the end of the disk.
Then the card may "subtract" the setup part from your
root partition, i.e. the OS does not see the whole
file system.

webdbase
Posts: 21
Joined: 2021/01/27 13:00:19

Re: Moving a CentOS 7 HDD from HP DL160 to HP DL360p

Post by webdbase » 2021/02/10 19:03:14

tunk wrote:
2021/02/10 16:48:17
Yes, but did you actively change any of the settings,
or did you just insert the disk and then look at them?

Gparted Live comes with smartctl.

If you assume:
1. The card stores it's setup at the end of the disk.
2. root is at the end of the disk.
Then the card may "subtract" the setup part from your
root partition, i.e. the OS does not see the whole
file system.
I got the server refurbished. It was diskless and the BIOS date is 24 May 2019.
Looking at the photos, according to you, what could be changed in that single disk array?
The option I have not shown is weather it is bootable or not.
And, unfortunately, the only way to put P420i in HBA mode, if FW is not at least v5.42 (I have not checked the version of mine), turns out to be (according to a youtube video) an upgrade of the firmware, which is available only over an active warranty or support agreement covering Proliant servers.
Tomorrow I'll check Gparted Live and other options.

Edit:
And what about this:
"Booting without the RAID controller
The Proliant BIOS and/or the RAID controller have the following limitations with regard to the boot medium:
the RAID controller does not support booting from its disks, when in HBA mode
when booting from the internal SD card (there is a slot on the mainboard), the BIOS provides access only to the internal SD card (no the disks behind the RAID controller)
thus it is not sufficient to simply dump a minimal grub bootloader (stage 1) onto the SD card - it will not find the root filesystem containing the other grub modules and configuration
workaround: place the /boot/ directory on a filesystem on the SD card optionally with a software RAID (metadata version 0 - for transparency) connected to the real system hard disks attached to the RAID controller"

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

Re: Moving a CentOS 7 HDD from HP DL160 to HP DL360p

Post by tunk » 2021/02/10 20:01:00

I have no experience with that card, but I would
expect all non-raid disks to show up as an "unassigned
drive" and that in order to be used has to be configured.

Looks like the (latest?) firmware is available:
https://support.hpe.com/hpsc/swd/public ... a85bd73d0f

VeeDub
Posts: 30
Joined: 2019/12/21 02:34:05

Re: Moving a CentOS 7 HDD from HP DL160 to HP DL360p

Post by VeeDub » 2021/02/11 00:50:20

@webdbase

I haven't read all the posts really closely; so apologise if these comments don't apply.

But have you tried performing a fresh install on the destination hardware?

If you can't do a fresh install, then a migration is destined to fail.

If you have done a fresh install, then you ought to be able to study and compare the working configuration with what you see when you try and do the migration.

Assuming that you can successfully install a fresh install onto the destination hardware; another option to consider would be http://relax-and-recover.org/

Rear supports bare-metal restore to different hardware

User avatar
TrevorH
Forum Moderator
Posts: 30314
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Moving a CentOS 7 HDD from HP DL160 to HP DL360p

Post by TrevorH » 2021/02/11 01:26:23

I'm suspecting that the RAID controller uses the far end of the disk to contain its own metadata and thus presents a smaller device to the o/s than it really is. Perhaps resize the partition downwards (first doing filesystems, LVs, PVs etc).
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - General Support”