Monthly Archive for April, 2008

Manually mount a removable media under Solaris 10

This morning I had to install some SUNW packages in a remote Solaris 10 x86 system (a Sun Fire X4150). I had the packages in the installation DVD, so I tried to map the DVD as a virtual device using the SUN embedded Light Out Manager console (sun-elom).

Apparently the thing was working. When I mapped the DVD I head the DVD started to spin, but I couldn’t see the DVD mounted into the system: it should appear under /rmdisk (removable disk), but it didn’t.

I first ran volcheck -v, and then rmformat:

# volcheck -v
media was found

# rmformat
Looking for devices...
     1. Volmgt Node: /vol/dev/aliases/cdrom0
        Logical Node: /dev/rdsk/c1t0d0s2
        Physical Node: /pci@0,0/pci108e,4843@1d,7/storage@1/disk@0,0
        Connected Device: TSSTcorp CD/DVDW TS-T632A SR03
        Device Type: DVD Reader/Writer

     2. Volmgt Node: /vol/dev/aliases/rmdisk0
        Logical Node: /dev/rdsk/c3t0d0p0
        Physical Node: /pci@0,0/pci108e,4843@1d,7/storage@5/disk@0,0
        Connected Device: manufact product          1234
        Device Type: Removable

# ls -al /vol/dev/aliases/rmdisk0
lrwxrwxrwx   1 root     root          35 Apr 30 12:15 /vol/dev/aliases/rmdisk0 -> /vol/dev/rdsk/c3t0d0/unknown_format

So the removable DVD is rmdisk0, and its device file is /dev/rdsk/c3t0d0p0. Unfortunately (I don’t know why — using PCA I looked for a patch that could solve this, but didn’t see any), it seems that volfs couldn’t recognize the DVD format (unknown_format), so it didn’t mount it automatically.

I then tried to force volfs to mount it, using volrmmount, but it didn’t mount anything:

# volrmmount -i rmdisk0

I finally had to mount the device manually. To do this, first i had to disable volfs:

# svcadm disable -st volfs

I then checked the filesystem type of the virtual device (to also be sure that the system was actually seeing it correctly). To do that, I used the command fstyp and the device file returned by rmformat:

# fstyp -v /dev/dsk/c3t0d0p0
hsfs
CD-ROM is in ISO 9660 format
System id: Solaris
Volume id: OpenSolaris
Volume set id:
Publisher id:
Data preparer id:
Application id: MKISOFS ISO 9660/HFS FILESYSTEM BUILDER & CDRECORD CD-R/DVD CREATOR (C) 1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is 1
Volume set sequence number is 1
Logical block size is 2048
Volume size is 330857

The system could actually see the device, which filesystem is a hsfs. Knowing that, I could easily mount the device:

# mount -F hsfs /dev/dsk/c3t0d0p0 /mnt
# ls  /mnt
LICENSE            devices            reconfigure        solarismisc.zlib
archive.bz2        jack               release_notes.txt  system
bin                mnt                root               tmp
boot               platform           sbin
dev                proc               solaris.zlib

Once I had finished with the virtual device, I just had to unmount it and restart volfs:

# umount /mnt
# svcadm enable -s volfs

Fin de mi CPD

El fin de semana pasado he “desmantelado” mi “CPD” y he subido mis maquinas a la buhardilla. Ya vere lo que hago con ellas. Solo he dejado mi servidor (que alberga entre otras cosas esta web, el uTorrent bajo Wine, el servidor de ficheros y el drive DDS3 para backups) — ahora esta debajo de la cama de invitados ;-).

¿Google de pago?

Durante toda la mañana de ayer estuve (practicamente) sin poder usar Google. Al abrir Google me salia la pagina de siempre, pero cualquier busqueda que hacia me llevaba a una pagina que decia “We’re sorry…”, explicando que Google estaba recibidendo muchas consultas que se parecian a consultas emitidas por un virus o un spyware. Tras introducir el captcha (lo cierto es que a veces ni podia entenderlo de lo dificil que lo ponian), me daba las respuestas a mis consultas. Lo que pasa es que no siempre me permitia meter el captcha. A veces solo lo sentia, diciendome que buscara si tenia virus/spyware, o alguien de mi red.

Aqui tenemos mas informacion:

The CAPTCHA page you’re referring to is served by Google when we experience a quick spike in traffic on Google.com. A CAPTCHA image helps us determine whether traffic is coming from automated robot software or individual users. Please be aware that your network is receiving this page because our system is detecting automated querying coming from your network’s IP address.

Lo cierto es que estar sin google toda la mañana fue una experiencia dura. Cambie el buscador por defecto de mi Firefox a Yahoo!, pero tenia la impresion de no encontrar nada de lo que buscaba.

A raiz de esto se me occurrio una idea: Google podria cobrar por el uso corporativo/masivo de su buscador. Por ejemplo:

  • por encima de 500 consultas al dia (digo 500 por definir un umbral razonable), que sea de pago: x€ por consulta, bonos de consultas, tarifa plana por volumen de consultas,…),
  • por debajo del umbral, gratias (para familias). Supongo que la gente de Google ya lo habran pensado y que por alguna razon no lo querran hacer (¿todavia?).



Close
Powered by ShareThis