Service Desk Knowledgebase: Operator Tasks: Difference between revisions

From Computer Laboratory System Administration
Jump to navigationJump to search
Line 101: Line 101:
To reinstall a machine that is currently working you can do so by remotely copying a fresh image into a spare partition, while the machine is in use.
To reinstall a machine that is currently working you can do so by remotely copying a fresh image into a spare partition, while the machine is in use.
* Use SSH to login to the machine using your CL account
* Use SSH to login to the machine using your CL account
* Check to see which partitions are available with a 'ext' file systems on the partition with:<br />'''cl-asuser blkid | grep ext'''
* Check to see which partitions are available with a 'ext' file systems on the partition with:<br />'''cl-asuser blkid | grep ext'''<br />For example:
* Check which partition is in use at present with:<br /> '''df /'''
  /dev/md2: LABEL="kiku_U12.04_md3" UUID="58956853-b55f-475c-bbe1-4177875228d5" TYPE="ext4"
* Choose the device like '''/dev/<font color="red">sda2</font>''' that is '''not currently in use''' - the disc may show up as a UUID which you check against the 'blkid' listing (if '''/dev/sda2''' is the current root then use '''dev=sda1''' or '''dev=md2''' etc instead) and do:<br />'''dev=<font color="red">sda2</font>'''<br />'''cl-asuser blkid | grep /dev/$dev'''
  /dev/md1: LABEL="kiku_U14.04_md1" UUID="58956853-b55f-475c-beef-4177875225d8" TYPE="ext4"
  /dev/mapper/vg01-scratch: LABEL="scratch" UUID="53ce4c02-dde6-4542-89ca-9a47446143a7" TYPE="ext3"
* Check which partition is in use at present with:<br /> '''df /'''<br />For example:
  Filesystem    1K-blocks    Used Available Use% Mounted on
  /dev/md1        31364084 17037644  12985036  57% /
* Choose the device like '''/dev/<font color="red">md2</font>''' that is '''not currently in use''' - the disc may show up as a UUID which you check against the 'blkid' listing (if '''/dev/sda2''' is the current root then use '''dev=sda1''' or '''dev=sda2''' etc instead) and do:<br />'''dev=<font color="red">md2</font>'''<br />'''cl-asuser blkid | grep /dev/$dev'''
* If the device is listed as being available, and is 'spare' as it is '''NOT''' reported as in use by the "'''df /'''" command then run the following to zero the first 3 blocks:<br />'''sudo dd if=/dev/zero bs=512 count=3 of=/dev/$dev'''
* If the device is listed as being available, and is 'spare' as it is '''NOT''' reported as in use by the "'''df /'''" command then run the following to zero the first 3 blocks:<br />'''sudo dd if=/dev/zero bs=512 count=3 of=/dev/$dev'''
* To do the reinstall run:<br />'''sudo /a/misc-nosnap1/distros/ubuntu/clone/restore reinstall $dev'''
* To do the reinstall run:<br />'''sudo /a/misc-nosnap1/distros/ubuntu/clone/restore reinstall $dev'''

Revision as of 10:17, 2 September 2015


This is the Operator Tasks content page of the CL Wiki Service Desk Knowledgebase. Its purpose is to provide information to the Service Desk team on how to handle problems and requests about this CL service. If you are involved with the provision of this CL service please feel free to add to the knowledge about that it.

If CL staff need to tell the Service Desk team about problems with this service please email
sys-admin-aside@cl.cam.ac.uk.

Return to the Service Desk Knowledgebase SERVICE PORTFOLIO

Key Service Description & URLs

The operation processes are to install and move hardware and to install and update the operating system when a machine is re-deployed. In addition telephones and network connections are maintained. Unused equipment is to be reclaimed and unused wiring to be removed.

CL Customer Documentation

Further CL Sys-Admin Resources

Underpinning Services

  • ??? - Any supporting or underpinning services

Customer-base for this Service

  • All staff and students of the Computer Laboratory

Costs

  • Free to all current staff and students of the Computer Laboratory

SLA

  • N/A

Service Desk Call Handling Procedure

  • RT tickets can be passed to the Operator team by changing the Queue as oper with the Owner set to Nobody and the Status set to new.
  • RT tickets can be escalated to the sys-admin team by changing the Queue as sys-admin with the Owner set to Nobody and the Status set to new.
  • RT tickets can be escalated to the experts by changing the Queue to backoffice with the Owner set to Nobody and the Status as new.
  • RT tickets can be Taken from the oper queue by members of the oper team. When the work requested has been completed the ticket status should be set to new, the owner to nobody and the queue to sys-admin.

Contacts

Primary

Other

Availability

  • Monday to Friday 9-5

Hints, Tips & Known Issues

Procedure for Patching

Graham Titmus (27/01/2015)

The patches are documented in the database. All physical cables on the patch panels should be documented. For patches for telephones only the patch should have a comment in it which has Telephone at the start. All other patches will also have a connection to a physical machine as well.

If a person is being moved from one room to another then the Staff List should be updated when the move is completed with the new office number, the desk they are at is found form the Office Plan any mistakes in that should be reported to Reception to be corrected.

Adding a patch

  1. Go to the floorbox page and enter the box name (somethings like WC2E-012 - the box number always ends with 3 digits pad with zeros if required) and press [Enter]
  2. If no connection shows up for the port you plan to use press the [Add Connection] button
  3. On the AddConnection page add in the port number (between 1 and 4, phones usually are in port 1) and the machine inventory number. Then click on create.
  4. You will be taken back to the floorbox page. Click on [Trace] by the connection you have just added.
  5. On the Cable Trace page you should see a single line for a connection in the floor box. Click on [Add Patch].
  6. You will then be on the Add Patch page. Enter the other end of the patch in the form HOST-012 (use 3 digits with preceding zeros for the last part of the host port). Click on [Create]. The wiring database is now completely updated.
  7. Put a comment on the RT ticket saying which HOST port the patch was added to.
  8. The VLAN now needs to be configured for that port by the operators following the following the Updating VLANs in the Cisco switches procedure.

Removing a patch

If the connection is shared with a telephone then the patch should not be removed but the CONnection for the machine does need to be removed.

With Phone
  1. Go to the floorbox page and enter the box name (somethings like WC2E-012 - the box number always ends with 3 digits pad with zeros if required) and press [Enter]
  2. Click on [Trace] by the connection you have just added.
  3. On the Cable trace page you should see a four line trace for a connection in the floor box. Click on the number to the left of the label [CON].
  4. On the next page click on Delete Connection
  5. Put a comment on the RT ticket saying which HOST port the patch was removed from.
  6. The VLAN now needs to be configured for that port by the operators following the Updating VLANs in the Cisco switches procedure .
Without phone
  1. Go to the floorbox page and enter the box name (somethings like WC2E-012 - the box number always ends with 3 digits pad with zeros if required) and press [Enter]
  2. Click on [Trace] by the connection you have just added.
  3. On the Cable trace page you should see a four line trace for a connection in the floor box. Click on [Delete All].
  4. Put a comment on the RT ticket saying which HOST port the patch was removed from.
  5. The VLAN now needs to be configured for that port by the operators following the Updating VLANs in the Cisco switches procedure .

Reinstall a machine

Graham Titmus (27/01/2015)

To reinstall a machine that is currently working you can do so by remotely copying a fresh image into a spare partition, while the machine is in use.

  • Use SSH to login to the machine using your CL account
  • Check to see which partitions are available with a 'ext' file systems on the partition with:
    cl-asuser blkid | grep ext
    For example:
 /dev/md2: LABEL="kiku_U12.04_md3" UUID="58956853-b55f-475c-bbe1-4177875228d5" TYPE="ext4"
 /dev/md1: LABEL="kiku_U14.04_md1" UUID="58956853-b55f-475c-beef-4177875225d8" TYPE="ext4"
 /dev/mapper/vg01-scratch: LABEL="scratch" UUID="53ce4c02-dde6-4542-89ca-9a47446143a7" TYPE="ext3"
  • Check which partition is in use at present with:
    df /
    For example:
 Filesystem     1K-blocks     Used Available Use% Mounted on
 /dev/md1        31364084 17037644  12985036  57% /
  • Choose the device like /dev/md2 that is not currently in use - the disc may show up as a UUID which you check against the 'blkid' listing (if /dev/sda2 is the current root then use dev=sda1 or dev=sda2 etc instead) and do:
    dev=md2
    cl-asuser blkid | grep /dev/$dev
  • If the device is listed as being available, and is 'spare' as it is NOT reported as in use by the "df /" command then run the following to zero the first 3 blocks:
    sudo dd if=/dev/zero bs=512 count=3 of=/dev/$dev
  • To do the reinstall run:
    sudo /a/misc-nosnap1/distros/ubuntu/clone/restore reinstall $dev
  • If sudo says that the command is not permitted, someone with suitable privileges can add the cl-sudoers-d-uis-oper-reinstall package, and then anyone listed in /etc/sudoers.d/cl-90-uis-oper-reinstall will be able to use it, so can run restore with a first arguement of 'safe' i.e.:
    sudo /a/misc-nosnap1/distros/ubuntu/clone/restore safe im=R reinstall $dev
  • When the reinstall is completed, reboot the machine is there are no other users, or liaise with any active users.
  • Once rebooted, check you can login
  • If the machine is to be given to someone different from the previous owner, then ensure the database is up to date, and run, replacing $crsid with their actual CRSid i.e. gt19:
    cl-asuser cl-hostid-fix --user $crsid -a

Install a new machine

Graham Titmus (27/01/2015)

The simplest option is to clone a master disc.

Linux Operating System Upgrades

Piete Brooks (27/04/2015) DRAFT based on RT#95410

This documents a straightforward case - does oper know how to do it? Basically:
cd /a/misc-nosnap1/distros/ubuntu/clone
head restore
and see the last two lines. In this case:
sudo dd if=/dev/zero of=/dev/sda1 bs=512 count=3
sudo ./restore reinstall sda1
press [Enter] a few times (or just wait), and on next reboot it will be 14.04. Best to reboot and test things while a CO is around 'just in case'.

Categorising Keywords

  • Machine moves installation network patching telephones