Difference between revisions of "Post-Install Hardware Changes"

From Amahi Wiki
Jump to: navigation, search
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!--{{WorkInProgress}}-->
+
{{NeedsUpdate}}
<!--<i>This article belongs in the "Getting Under the Hood" section</i>
 
{{NeedsMerge | [[Main Page]]}}-->
 
<!--{{NeedsExpantion}}-->
 
<!--{{NeedsDelete |[[Main Page]]}}-->
 
<!--Please remove or place comment accordingly-->
 
<!--Your text bellow this line-->
 
  
<b>Preliminary:</b>  
+
=<b>Preliminary:</b>=
Swapping hardware in a Linux system such as Amahi (Fedora/Ubuntu) is very forgiving and simple for the most part. Amahi does depend, however, on having the eth0 network interface and your shares depend on having the right drives and SATA ports identified between hardware changes to avoid <i>lengthy</i> repair processes. Note that all of these apply mostly the same if you're running within a virtual machine. Some VM hypervisors abstract the parts enough that Os will no notice new hardware and not rename it (eg: eth0 to eth1).
+
Swapping hardware in a Linux system such as Amahi (Fedora/Ubuntu) is very forgiving and simple for the most part. Amahi does depend, however, on having the eth0 network interface and your shares depend on having the right drives and SATA ports identified between hardware changes to avoid <i>lengthy</i> repair processes. Note that all of these apply mostly the same if you're running within a virtual machine. Some VM hypervisors abstract the parts enough that the OS will not notice new hardware and not rename it (eg: eth0 to eth1).
  
If swapping:<br />
+
=Motherboard/ SATA-controller/ RAID-card=
>> Motherboard/ SATA-controller/ RAID-card <<<br />
+
- you have no changes to make when booting back into Linux, which will just re-fit drivers to the new part. <br />
- you have no changes to make when booting back into Fedora, which will just re-fit drivers to the new part. <br />
+
- It is VERY advisable though, to reconnect your drives in the same sequence they were before the swap of the motherboard/ sata-controller/ RAID-card..<br />
- It is very advisable though, to reconnect your drives in the same sequence they were before the swap of the motherboard/ sata-controller/ RAID-card..<br />
 
 
eg:<br />
 
eg:<br />
 
before the part-swap<br />
 
before the part-swap<br />
Line 21: Line 14:
 
..and so on.<br />
 
..and so on.<br />
 
- In the BIOS/ UEFI, ensure that the boot sequence is also the same as before the upgrade or swap. <br />
 
- In the BIOS/ UEFI, ensure that the boot sequence is also the same as before the upgrade or swap. <br />
 +
>> Finally, after replacing or even adding drives, run a 'greyhole -f' and a 'greyhole -l' as sudo in terminal to completely re-discover what you may have had in the greyhole storage pool.
  
If swapping:<br />
+
<b></b><br />
>> network card << <br />
+
=Network Card=
 
- you must ensure that the same ethernet device assignment stands as before the part swap. <br />
 
- you must ensure that the same ethernet device assignment stands as before the part swap. <br />
 
- If anything eth0 may become eth1 afterwards, so you will need to rename it to eth0 via the Network Manager in the desktop. You'll want to reboot to finalize changes. <br />
 
- If anything eth0 may become eth1 afterwards, so you will need to rename it to eth0 via the Network Manager in the desktop. You'll want to reboot to finalize changes. <br />
 
- use your favourite command line editor and edit with sudo/su..
 
- use your favourite command line editor and edit with sudo/su..
{{code|
+
$/etc/udev/rules.d/70-persistent-net.rules
$/etc/udev/rules.d/70-persistent-net.rules
+
 
}}
 
 
which may look like this
 
which may look like this
{{code|
+
 
Code = # This file was automatically generated by the /lib/udev/write_net_rules
+
<pre># This file was automatically generated by the /lib/udev/write_net_rules
 
# program, run by the persistent-net-generator.rules rules file.
 
# program, run by the persistent-net-generator.rules rules file.
 
#
 
#
Line 40: Line 33:
 
# net device () (custom name provided by external tool)
 
# net device () (custom name provided by external tool)
 
SUBSYSTEM=="net", ACTION=="add", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
 
SUBSYSTEM=="net", ACTION=="add", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
}}
+
</pre>
 
And notice the "eth0". If it is something else, make it eth0 and save the file and reboot.
 
And notice the "eth0". If it is something else, make it eth0 and save the file and reboot.
 +
<br />
  
 +
=CPU / RAM / video card=
 +
- no changes need to be done after boot. These drivers and modules should automatically load on a reboot of Linux VMs.<br />
 +
- this is because the hypervisor is abstracting the CPU to the VM regardless.
  
If swapping:<br />
+
<b></b><br />
>> CPU / RAM / video card << <br />
 
- no changes need to be done after boot. These drivers and modules should automatically load on a reboot of Linux.<br />
 
 
 
 
 
 
 
<!--Your text above this line-->
 
<!--This page must belong to one of the following categories please remove comment-->
 
<!--[[category:Apps]]-->
 
<!--[[Category:Fedora_14]]-->
 
<!--[[Category:Platform]]-->
 
<!--[[Category:Pro Version]]-->
 
<!--[[Category:Services]]-->
 
<!--[[Category:VPN]]-->
 
 
 
<noinclude>
 
[[Category:WikiModTools]]
 
</noinclude>
 

Latest revision as of 00:52, 24 May 2016

Msgbox.update.png Update Needed
The contents of this page have become outdated or irrelevant. Please consider updating it.

Preliminary:

Swapping hardware in a Linux system such as Amahi (Fedora/Ubuntu) is very forgiving and simple for the most part. Amahi does depend, however, on having the eth0 network interface and your shares depend on having the right drives and SATA ports identified between hardware changes to avoid lengthy repair processes. Note that all of these apply mostly the same if you're running within a virtual machine. Some VM hypervisors abstract the parts enough that the OS will not notice new hardware and not rename it (eg: eth0 to eth1).

Motherboard/ SATA-controller/ RAID-card

- you have no changes to make when booting back into Linux, which will just re-fit drivers to the new part.
- It is VERY advisable though, to reconnect your drives in the same sequence they were before the swap of the motherboard/ sata-controller/ RAID-card..
eg:
before the part-swap
sata port 01 = sata drive sda
after the part-swap
sata port 01 = sata drive sda
..and so on.
- In the BIOS/ UEFI, ensure that the boot sequence is also the same as before the upgrade or swap.
>> Finally, after replacing or even adding drives, run a 'greyhole -f' and a 'greyhole -l' as sudo in terminal to completely re-discover what you may have had in the greyhole storage pool.


Network Card

- you must ensure that the same ethernet device assignment stands as before the part swap.
- If anything eth0 may become eth1 afterwards, so you will need to rename it to eth0 via the Network Manager in the desktop. You'll want to reboot to finalize changes.
- use your favourite command line editor and edit with sudo/su..

$/etc/udev/rules.d/70-persistent-net.rules

which may look like this

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# net device () (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

And notice the "eth0". If it is something else, make it eth0 and save the file and reboot.

CPU / RAM / video card

- no changes need to be done after boot. These drivers and modules should automatically load on a reboot of Linux VMs.
- this is because the hypervisor is abstracting the CPU to the VM regardless.