Well. I'm not so virtuous to use parted inside a Centos VM to expand the filesystem.
By default the Centos Linux image dataset from SmartOS is large 10GB.
You can add another disk (it will be mounted in /data).
Or you can grow the ZFS volume related to disk0.
So, from the global zone grow the volume related to the Linux VM:
zfs set volsize=20G zones/<UUID>-disk0
I don't know, maybe you must stop the VM and start it again.
Now, from inside the VM, yes, you must install various rpms.
Firts of all the EPEL repository.
rpm --import https://fedoraproject.org/static/0608B895.txt
rpm -ivh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install gparted
yum install xauth
yum install dejavu-lgc-sans-fonts.noarch
Now you can connect to the VM via ssh with the -X option (or -Y) and run gparted
Tuesday, April 1, 2014
Wednesday, March 19, 2014
Openindiana: "tree connect failed: syserr = No such file or directory"
I was trying to mount a CIFS (Samba) share from an Openindiana host,
-bash-4.0# mount -F smbfs //user:password@networkserver.my.domain/share /mnt/samba
I got this error
mount: //networkserver.my.domain/share: tree connect failed: syserr = No such file or directory
To solve this, I had to restart the samba client service.
svcadm restart svc:/network/smb/client:default
-bash-4.0# mount -F smbfs //user:password@networkserver.my.domain/share /mnt/samba
I got this error
mount: //networkserver.my.domain/share: tree connect failed: syserr = No such file or directory
To solve this, I had to restart the samba client service.
svcadm restart svc:/network/smb/client:default
Wednesday, February 26, 2014
Fifo: vm reported as "provisioning", but it is false
Fifo: https://project-fifo.net
Why a VM status is reported as "Provisioning (Running)" even if it is already provisioned, and it is (only) running?
<killfill> that's because fifo knows if a vm is provisioning if the file 'provisioning' exists.
<killfill> Probably when creating the VM, the tools didn't wipe that file
<killfill> or maybe because you created it manually.. :P
<killfill> it's in /zones/:uuid/root/svc/ something like that.
<killfill> /zones/<uuid>/root/var/svc/provisioning
So, rm /zones/<uuid>/root/var/svc/provisioning
Et voilĂ .
Why a VM status is reported as "Provisioning (Running)" even if it is already provisioned, and it is (only) running?
<killfill> that's because fifo knows if a vm is provisioning if the file 'provisioning' exists.
<killfill> Probably when creating the VM, the tools didn't wipe that file
<killfill> or maybe because you created it manually.. :P
<killfill> it's in /zones/:uuid/root/svc/ something like that.
<killfill> /zones/<uuid>/root/var/svc/provisioning
So, rm /zones/<uuid>/root/var/svc/provisioning
Et voilĂ .
Friday, February 21, 2014
SmartOS: add (modify) the gateway to a zone
I often forget to add the gateway to a new created zone.
So, get the nic MAC address.
vmadm get zone-uuid | json -a nics.0.mac
52:d9:d7:ab:c7:56
Create a file, like /var/tmp/updategw.json
{
"update_nics": [
{
"mac": "52:d9:d7:ab:c7:56",
"gateway": "192.168.0.1"
}
]
}
Stop the zone, then issue an update.
vmadm update zone-uuid < /var/tmp/updategw.json
Verify.
vmadm get <zone-uuid> | json -a nics.0
Start the zone.
So, get the nic MAC address.
vmadm get zone-uuid | json -a nics.0.mac
52:d9:d7:ab:c7:56
Create a file, like /var/tmp/updategw.json
{
"update_nics": [
{
"mac": "52:d9:d7:ab:c7:56",
"gateway": "192.168.0.1"
}
]
}
Stop the zone, then issue an update.
vmadm update zone-uuid < /var/tmp/updategw.json
Verify.
vmadm get <zone-uuid> | json -a nics.0
Start the zone.
Monday, February 3, 2014
cisco vpn client and windows 8
So, the Cisco VPN client is not compatible with Windows 8. At least you must change various registry keys (I don't know).
A valid alternative is Shrew Soft VPNCLIENT
https://www.shrew.net/download/vpn
The Standard installation is free to use even for commercial use.
A valid alternative is Shrew Soft VPNCLIENT
https://www.shrew.net/download/vpn
The Standard installation is free to use even for commercial use.
Map sd names to Solaris disk names
Map sd names to Solaris (SmartOS, Openindiana) disk names
paste -d= <(iostat -x | awk 'NR>2{print $1}') <(iostat -nx | awk 'NR>2{print "/dev/dsk/"$11}')
https://stackoverflow.com/questions/555427/map-sd-sdd-names-to-solaris-disk-names
watchman under SmartOS
"A file watching service.
Purpose
Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change."
https://github.com/facebook/watchman
You can find pkgsrc definitions, useful to build the package under SmartOS (pkgsrc on SmartOS - zone creation and basic builds) and a binary package to be installed using pkg_add
pkg_add watchman-2.9.1nb2.tgz
This is the link: https://github.com/alcir/watchman-pkgsrc
Purpose
Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change."
https://github.com/facebook/watchman
You can find pkgsrc definitions, useful to build the package under SmartOS (pkgsrc on SmartOS - zone creation and basic builds) and a binary package to be installed using pkg_add
pkg_add watchman-2.9.1nb2.tgz
This is the link: https://github.com/alcir/watchman-pkgsrc
Subscribe to:
Posts (Atom)
