Hard Disk Install Setup Tips: Difference between revisions
No edit summary |
|||
Line 122: | Line 122: | ||
NETWORK=10.9.1.0 | NETWORK=10.9.1.0 | ||
# onboard nic management interface | # onboard nic management interface | ||
=== System Time Sync === | |||
Sometimes when using a VMWare session the time will slow down or perhapes speed up. To correct this just | |||
follow these steps. | |||
- While in X, open a bash prompt and create a script file with a .sh extension in the root directory. | |||
- In the script add the line, "/usr/bin/rdate -s time.chu.nrc.ca". For a list of time servers check this | |||
link [http://support.ntp.org/bin/view/Servers/StratumTwoTimeServers here]. | |||
- Open /etc/crontab and add "*/1 * * * root sh timekeeper.sh" (make sure you put the name of the file you | |||
made earlier. | |||
- Restart the crond service with "/sbin/service crond restart" and the time will now sync every minute. |
Revision as of 13:22, 26 June 2007
nsthdinstall tips
Try this, assuming your boot partition is hda1, and your swap is hda5:
Partitioning
The NST installation will fit into a 2 gigabyte partition nicely, if you move the growing /var directory to it's own partition. The following partition guide will work well, if you do move the /var directory.
A good partition setup is as follows:
Partition 1 | NST Installation | 2 Gigabytes |
Partition 2 | NST backup Installation | 2 Gigabytes |
Partition 3 | Linux Swap | 1 Gigabytes |
Partition 4 | /var | Remaining Disk |
Mounting /var to a new partition
After a successful nsthdinstall, and reboot, you will have the /var directory in your base partition. Since this directory can grow quickly due to log files and such, it is advised you move it to it's own partition. Follow these commands to move /var from the base partition to a newly mounted partition. This assumes that /var/hda4 is your new /var partition.
mke2fs -c /dev/hda4 mkdir /newvar mount /dev/hda4 /newvar cd /var cp -ax * /newvar cd / mv var oldvar mkdir var
- Edit /etc/fstab to add
/dev/hda4 /var ext2 defaults 1 2
- reboot
HD Installation Recipe
The following details a set of steps to Partition Hard disk to accept two NST installations and 3 ethernet NICs. Move /var to a new large partition of it's own.
HD Install
- Boot From CD
- Log in
- cfdisk
- create 2G NST install #1 /dev/hda1 Make bootable
- create 2G NST install #2 /dev/hda2
- Create 1G swap /dev/hda3
- create /dev/hda4 for /var/nst
- reboot
- nsthdinstall
nsthdinstall --device /dev/hda2 --format --label "NST v1.5.0-2" --swap-devices /dev/hda5 --swap-format-label --grub-install nsthdinstall --device /dev/hda1 --format --label "NST v1.5.0-1" --swap-devices /dev/hda5 --swap-format-label --grub-install
- reboot to HD.
- Login with nst default password.
- Create var partition, and move var to it:
mke2fs -c /dev/hda4 mkdir /newvar mount /dev/hda4 /newvar cd /var cp -ax * /newvar cd / mv var oldvar mkdir var
- Edit /etc/fstab to add
/dev/hda4 /var ext2 defaults 1 2
- reboot
Set Host Name
nsthostname -n nprobe9
NIC Setup
Set up 3 nics. On my particular system, I used two PCI cards (eth0 and eth1) as probes and the onboard nic (eth2) as the management port
- cdnet
- Set probe ports eth0 and eth1 to static
- Set management port eth2 (the onboard nic) to static, and set ip address 10.<campus>.1.6
[root@nprobe9 network-scripts]# cat ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none ONBOOT=yes # PROBE PORT 3com NIC
[root@nprobe9 network-scripts]# cat ifcfg-eth1 DEVICE=eth1 BOOTPROTO=none ONBOOT=yes # PROBE PORT 3com NIC #2
[root@nprobe9 network-scripts]# cat ifcfg-eth3 DEVICE=eth3 BOOTPROTO=static ONBOOT=yes IPADDR=10.9.1.6 GATEWAY=10.9.1.1 NETMASK=255.255.255.0 BROADCAST=255.255.255.255 NETWORK=10.9.1.0 # onboard nic management interface
System Time Sync
Sometimes when using a VMWare session the time will slow down or perhapes speed up. To correct this just follow these steps.
- While in X, open a bash prompt and create a script file with a .sh extension in the root directory. - In the script add the line, "/usr/bin/rdate -s time.chu.nrc.ca". For a list of time servers check this link here. - Open /etc/crontab and add "*/1 * * * root sh timekeeper.sh" (make sure you put the name of the file you made earlier. - Restart the crond service with "/sbin/service crond restart" and the time will now sync every minute.