Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Tuesday, June 8, 2010

Linux fast boot

Just looking for a place to put these links for a pet project Im working on

Over and above the n00by obvious stuff like disable unused services and devices ...

software to benchmark the boot
http://www.bootchart.org/

An article about it at LWN (parallelism and read ahead)
http://lwn.net/Articles/299483/

The read-ahead code
http://fedora.danny.cz/sreadahead/

Embedded solid-state
http://www.youtube.com/watch?v=CWFy1RWSUts

Thursday, April 22, 2010

Oracle 11gR2 on JeOS

I wanna play with Oracle 11gR2 (and swingbench) stuff so Im going to use Oracle Enterprise Linux JeOS in Sun Virtual Box....
http://www.oracle.com/technology/software/products/virtualization/vm_jeos.html
...more to come - unless I get bored or sidetracked

OK it would not even boot - shi7

new virtual box is out now v3.2.0b1 - renamed to Oracle Virtual Box
http://forums.virtualbox.org/viewtopic.php?f=15&t=30286
  • Experimental support for Mac OS X guests
  • Memory ballooning to dynamically in- or decrease the amount of RAM used by a VM (64-bit hosts only) (see the manual for more information)
  • CPU hot-plugging for Linux (hot-add and hot-remove) and certain Windows guests (hot-add only) (see the manual for more information)
  • New Hypervisor features: with both VT-x/AMD-V on 64-bit hosts, using large pages can improve performance (see the manual for more information); also, on VT-x, unrestricted guest execution is now supported (if nested paging is enabled with VT-x, real mode and protected mode without paging code runs faster, which mainly speeds up guest OS booting)
  • Support for deleting snapshots while the VM is running
  • Support for multi-monitor guest setups in the GUI (see the manual for more information)
  • USB tablet/keyboard emulation for improved user experience if no Guest Additions are available
  • LsiLogic SAS controller emulation
  • RDP video acceleration
  • NAT engine configuration via API and VBoxManage

Tuesday, April 13, 2010

AIX7

AIX 7 is coming!
http://www-03.ibm.com/systems/power/software/aix/v71/preview.html

.......more generally

$echo AIX $(($(date +"%Y")-2003)) on POWER $(($(date +"%Y")-2003))

I saw on insidehpc.com that NCSA/IBM dont run AIX on there biggest POWER7 HPC cluster systems anymore, eg Blue Waters http://www.ncsa.illinois.edu/News/10/0322Linuxselected.html

Saturday, April 10, 2010

mounting CDROMs,ISOs and windows share in un*xs

In general its the mount command then some option for what the cdrom (or other) filesystem then some read-only option, then the device, then the mount point

AIX
mount -v cdrfs -o ro /dev/cd0 /mnt/cdrom
##### mount an .iso image ####128M PPs on hdisk2
mklv -y cdlv -s n -L /dev/cdlv vg00 $(du -m dvd1.iso|awk '{print int($1+128)"M"}') hdisk2 ; dd if=dvd.iso of=/dev/cdlv ; mount -v cdrfs -o ro /dev/cdlv /mnt/iso

NB: pretty bad eh and you need enough space on disk2 to copy it to, and it takes ages. I wrote this 1 liner in a post to usenet and I see its all over the net now as the way to mount in AIX 5.3 eg http://dbaspot.com/forums/aix/368597-poor-mount-iso-aix.html

I guess you should really do it from the VIO server these days http://ibmsystemsmag.blogs.com/aixchange/2008/01/more-on-virtual.html

or like this
http://www.ibm.com/developerworks/wikis/display/WikiPtype/AIXV53MntISO

or in AIX6 like this
loopmount -i cdrom.iso -o "-V cdrfs -o ro" -m /mnt

Linux
mount -t iso9660 -r /dev/hdb /mnt/cdrom
##### mount an .iso image ####
mount -o loop dvd.iso /mnt/iso

Solaris
mount -F hsfs -r /dev/dsk/c0t6d0s2 /mnt/cdrom
##### mount an .iso image ####
lofiadm -a dvd.iso; mkdir /mnt/sol ; mount -t hfs /dev/lofi/1 /mnt/iso
HP-UX*
mount -t cdfs -o ro /dev/dsk/cqd1s0 /mnt/cdrom

Windows!!! you can mount SMB/(Windows shares) to Linux with just the mount command:
### Linux
mount -t smbfs -o username=billy,password=apple22,workgroup=CORP //fileserver/fileshare /mnt/windowsdrive

### AIX

root@[scatst]/>mount -v cifs -n scadc01/temp02/temp02 -o wrkgrp=sca01,uid=205,fmode=750 /Sapinterface /scadc01

This basically says put the CIFS(windows SMB) share /Sapinterface from node scadc01 with login user=temp02 and password=temp02 with domain=sca01 on the AIX box as /scadc01 with read, write and execute permission for the user with UID=205


The Microsoft Services for Unix (SFU) help has all of this information and step by step howtos but basically on your side you need to:-

Log on as a member of the Domain Admins group of the server's domain
Install Server for NFS Authentication (and SFU etc)
[Server for NFS Authentication must be installed on every domain
controller in any domain containing users who will access files
through Server for NFS]
Log on as a member of the (local) Administrators group.
Install Server for NFS
Configure user authentication. Install "User Name Mapping" on at least
one server in the network and then specify the User Name Mapping
server that Server for NFS should use for authentication.

Check Server for NFS service, is running
On windows Services For unix shell:-
nfsshare scadev=C:/sharefolder root=

Then on AIX we can:-
mount -v nfs3 -n /share /mnt/share

wont go into samba - its all over the net and