Agregar un nuevo disco a VirtualBox Solaris
-->Apagar la maquina virtual
-->Ir al administrador de maquinas virtuales (VirtualBox)
-->Click derecho Configurar (a la maquina virtual que deseamos a gregar un disco)
-->Almacenamiento
-->Controlador SATA
-->Agregar un disco duro
-->Crear nuevo disco
-->seleccionar el tipo de disco (en este caso VMDK )
-->seleccionar el tipo de almacenamiento (en este caso Tamaño fijo)
-->Escribir el nombre del disco
-->Elegir el tamaño del disco
-->Crear
-->Iniciar la maquina virtual
-->Loguearse como root (super usuario)
-->Ingresar los siguientes comandos
devfsadm -->Nos permitira reescanear los dispositivos disponibles
format -->Nos mostrara los discos disponibles
AVAILABLE DISK SELECTIONS:
0. c0d0 <Úxäþ¢ÿþ©ÿþ¬@©üþ cyl 2085 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
1. c2t0d0 <ATA -VBOX HARDDISK -1.0 cyl 3341 alt 2 hd 224 sec 56>
/pci@0,0/pci8086,2829@d/disk@0,0
Specify disk (enter its number):
-->Seleccionar el disco que acabamos de anexar, para estar seguros de cual es.
-->seleccionamos un numero (0 o 1 en este caso), he seleccionado el 0 para probar lo siguiente:
##En caso de que el disco ya este ocupado aparecera algo similar a esto:
Specify disk (enter its number): 0
selecting c0d0
Controller working list found
[disk formatted, defect list found]
Warning: Current Disk has mounted partitions.
/dev/dsk/c0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c0d0s1 is currently used by swap. Please see swap(1M).
/dev/dsk/c0d0s7 is currently mounted on /export/home. Please see umount(1M).
-->Ahora verificamos la opcion 1:
format
Searching for disks...
Inquiry failed for this logical diskdone
AVAILABLE DISK SELECTIONS:
0. c0d0 <Úxäþ¢ÿþ©ÿþ¬@©üþ cyl 2085 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
1. c2t0d0 <ATA -VBOX HARDDISK -1.0 cyl 3340 alt 2 hd 224 sec 56>
/pci@0,0/pci8086,2829@d/disk@0,0
-->Selccionamos 1
Specify disk (enter its number): 1
selecting c2t0d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
-->Generamos la particion con el comando partition
format> partition
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
##Para simplificar, vamos a hacer el segmento 0 del tamaño de la unidad completa con la opcion modify.
##Seleccionaos la opción de "All Free Hog", que debería ser la opción 1, y pulse ENTER.
partition> modify
Select partitioning base:
0. Current partition table (original)
1. All Free Hog
-->Seleccionamos la opcion 1
Choose base (enter number) [0]? 1
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 3339 19.98GB (3340/0/0) 41896960
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 6.12MB (1/0/0) 12544
9 alternates wm 0 0 (0/0/0) 0
Do you wish to continue creating a new partition
-->Seleccionamos yes
table based on above table[yes]? yes
Free Hog partition[6]? 0
Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]:
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 3339 19.97GB (3339/0/0) 41884416
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 3339 19.98GB (3340/0/0) 41896960
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 6.12MB (1/0/0) 12544
9 alternates wm 0 0 (0/0/0) 0
-->Seleccionamos yes
Okay to make this the current partition table[yes]? yes
Enter table name (remember quotes): disk_prueba1
--Seleccionamos yes
Ready to label disk, continue? yes
-->Salimos de partition con quit
partition> quit
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
-->Guardamos los cambios en format con save
format> save
Saving new disk and partition definitions
Enter file name["./format.dat"]: /etc/format.dat
-->Salimos del format
format> quit
-->Creamos el nuevo filesystem
# newfs /dev/rdsk/c2t0d0s0
-->Selccionamos yes
newfs: construct a new file system /dev/rdsk/c2t0d0s0: (y/n)? yes
Warning: 5376 sector(s) in last cylinder unallocated
/dev/rdsk/c2t0d0s0: 41884416 sectors in 6818 cylinders of 48 tracks, 128 sectors
20451.4MB in 427 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
........
super-block backups for last 10 cylinder groups at:
40997024, 41095456, 41193888, 41292320, 41390752, 41489184, 41587616,
41686048, 41784480, 41882912
-->Montamos el disco en una ruta previamente creada (mkdir /opt/oracle)
# mount /dev/rdsk/c2t0d0s0 /opt/oracle
mount: /dev/rdsk/c2t0d0s0 not a block device ---Es necesario montar desde /dev/dsk
-->Ejecutamos la sentencia correcta
# mount /dev/dsk/c2t0d0s0 /opt/oracle
-->Revisamos que el filesystem este creado
# df -h .
Filesystem
/dev/dsk/c2t0d0s0 20G 20M 19G 1% /opt/oracle
Saludos!