Jun 182015
 

Serial port console, tested with DRAC6 Express and Ubuntu 14.04

I aint payin for DRAC Enterprise!

insta-10

create service for console

vim /etc/init/ttyS1.conf

start on stopped rc RUNLEVEL=[12345]
stop on runlevel [!12345]
respawn
exec /sbin/getty -L 115200 ttyS1 vt102

sudo start ttyS1

edit grub setting

vim /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS1 console=ttyS1,115200n8"
GRUB_TERMINAL=serial
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"

sudo update-grub

make sure ttyS1 is present in /etc/securetty (it’s there by default)

we need to assign com2 to DRAC now, either via BIOS or via omconfig (you did install OpenManage, did you?)

omreport chassis biossetup
omconfig chassis biossetup attribute=serialcom setting=com2
omconfig chassis biossetup attribute=crab setting=enabled

or reboot and enter BIOS (F2) Serial Communication section

serial communication....On with serial redirection via com2
serial port address....Serial device1 = com1, serial device2 = com2
external serial connector....Serial device 2
failsafe baud rate....115200
remote terminal type....vt100/vt220
redirection after boot....Enabled
Save the changes and exit.

 

After reboot ssh to your DRAC and type on prompt

/admin1-> console com2

 
You’re welcome
 

Source:

http://mossiso.com/2011/10/17/centos-6-idrac6-and-poweredge-r510.html
http://www.openfusion.net/linux/dell_omsa

 

 


 

May 072015
 

In this particular case I had to add a swap partition to existing Ubuntu system.

insta-07

Shrink LVM

df -h
umount /var/www/owncloud/data
resize2fs /dev/mapper/vg0-owncloud 15G
lvresize -L 15G /dev/mapper/vg0-owncloud
lvdisplay /dev/mapper/vg0-owncloud
e2fsck /dev/mapper/vg0-owncloud
mount -a
mount
df -h

create new LVM (swap)

# vgdisplay
--- Volume group ---
VG Name vg0
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 20.00 GiB
PE Size 4.00 MiB
Total PE 5119
Alloc PE / Size 3840 / 15.00 GiB
Free PE / Size 1279 / 5.00 GiB
VG UUID q6lkE0-H33z-fWX6-5l4H-Kidx-iLKf-NdZJYq

Note Free PE and then

lvcreate vg0 -l 1279 -n swap
mkswap -f /dev/mapper/vg0-swap
echo "/dev/mapper/vg0-swap none swap sw 0 0" >> /etc/fstab
swapon /dev/mapper/vg0-swap 

Check with say “free -m” to see if new swap space is now being seen by kernel.