Jump to content

[Solaris] Disk Partitioning on Live System


Recommended Posts

Posted

Evening folks,

 

Would anyone have an idea about partition Solaris disks? Currently Demoing Sun's VDI Solution and trying their "Demo on a single box method"

 

However it asks to create a ZFS file store for the .vdi images. When I installed the system, i went through the process of setting sizes for / and swap, I didn't create any other folders as various applications files are stored in various places and thought having everything on the same segment would be best.

 

What I'd ideally like todo is partition the drive in two and use the second drive as the ZFS store for the images of the desktops.

 

Anyone know how this would be achieved, Solaris is yet another beast to get a grasp of, everything looks different, feels different, and acts different. The drive in the machine is a 450GB Sata drive.

 

Thanks!

 

2. Configure the ZFS storage.

Sun VDI 3 (in combination with VirtualBox) uses the ZFS filesystem to create snapshots of virtual machine disk images or to clone/replicate virtual machine disks. The interaction with ZFS is handled automatically and is completely encapsulated within VDI. However, initially you must setup the ZFS storage (more precisely a ZFS storage pool aka zpool).

   * As previously mentioned, the second disk should be configured as ZFS storage. Simply trigger the following command as root user:

# zpool create VDI 

(In this case, the name of the zpool is 'VDI', but you can also use any other name in your setup. If you do not know the name of your second disk, you can look it up using the format or fdisk command.)

   * ZFS uses any memory available (up to the limit) for a so-called ARC cache. This can cause issues in a demo setup, because VDI may falsely report that there is not enough memory for starting up any virtual machine. To resolve this issue, adapt the max value used for the ARC cache.
     For example, to restrict the memory to 2GB, add the following line in /etc/system:

set zfs:zfs_arc_max = 2147483648

   * Enable the SMF service for iSCSI access (iSCSI target daemon) with the command:

svcadm enable svc:/system/iscsitgt:default

Posted

You have two options

 

"Just to get terminology right in Solaris X86 a slice is not the same as a FDISK Partition.

A DOS primary/extended partition can be sliced up."

 

I would reinstall and leave a slice free with space needed.

Then as your document

zpool create VDI c0t1d0s<#free slice num>

 

But a quick and dirty solution without installing

mkfile 50g /vdi-pool.0
zpool create vdi /vdi-pool.0
zpool status

 

If you run out of space, then simply add some more to the pool

 

mkfile 50g /vdi-pool.1
zpool add vdi /vdi-pool.1
zpool status

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...