Extend root filesystems on Oracle Linux
Before you begin :
1. Verify your new disk is detect on the systems
in this case, I’m using /dev/sdb
2. Identify your volgroup
in this case, my my root vg is vg_allen.
Here we go :
[root@allen ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x079df05d.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help):
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1566, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1566, default 1566):
Using default value 1566
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@allen ~]# fdisk -l
Disk /dev/sda: 12.9 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009af64
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 1567 12069888 8e Linux LVM
Disk /dev/sdb: 12.9 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x079df05d
Device Boot Start End Blocks Id System
/dev/sdb1 1 1566 12578863+ 8e Linux LVM
Disk /dev/mapper/vg_allen-lv_root: 10.2 GB, 10242490368 bytes
255 heads, 63 sectors/track, 1245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_allen-lv_swap: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
[root@allen ~]# partprobe
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.
[root@allen ~]# pvcreate /dev/sdb
sdb sdb1
[root@allen ~]# pvcreate /dev/sdb1
Writing physical volume data to disk "/dev/sdb1"
Physical volume "/dev/sdb1" successfully created
[root@allen ~]# vgextend vg_allen /dev/sdb1
Volume group "vg_allen" successfully extended
[root@allen ~]# lvextend /dev/vg_allen/lv_
lv_root lv_swap
[root@allen ~]# lvextend /dev/vg_allen/lv_root /dev/sdb1
Extending logical volume lv_root to 21.53 GiB
Logical volume lv_root successfully resized
[root@allen ~]# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_allen-lv_root
9.4G 8.5G 504M 95% /
[root@allen ~]# resize2fs /dev/vg_allen/lv_root
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/vg_allen/lv_root is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 2
Performing an on-line resize of /dev/vg_allen/lv_root to 5644288 (4k) blocks.
The filesystem on /dev/vg_allen/lv_root is now 5644288 blocks long.
[root@allen ~]# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_allen-lv_root
22G 8.5G 12G 42% /
2012 in review
The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.
Here’s an excerpt:
4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 34,000 views in 2012. If each view were a film, this blog would power 8 Film Festivals
Failed to uninstall the Extension Pack Oracle VM VirtualBox Extension Pack.

Borobudur Temple, West Java - Indonesia : http://en.wikipedia.org/wiki/Borobudur
After uninstalling my VirtualBox, later after that I Re-Install it again. When I wanto uninstall the Extension Pack I got following error :
Failed to uninstall the Extension Pack Oracle VM VirtualBox Extension Pack.
The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the extension pack directory: VERR_ALREADY_EXISTS
rcExit=1.
Result Code: E_FAIL (0x80004005)
Component: ExtPackManager
Interface: IExtPackManager {3295e6ce-b051-47b2-9514-2c588bfe7554}
After googlig, I got solution to fix it.. you just have to clean the extension pack with the command line:
C:\Program Files\Oracle\VirtualBox>vboxmanage extpack cleanup Successfully performed extension pack cleanup C:\Program Files\Oracle\VirtualBox>
Try to re-install extension pack, and it installed successfully.
refer to vbox forum : https://forums.virtualbox.org/viewtopic.php?f=2&t=41077
On Demand Webcast : SPARC SuperCluster
Gaye Hudson and Steve Walker talk to John Abel, Chief Technology Architect, Oracle Server and Storage, EMEA, about SPARC SuperCluster and T4; and to Luc Gheysens, Senior Director, Storage Sales Specialist, EMEA, about ZFS Storage and Pillar Axiom 600
Setting Static IP Address on Solaris 11
Solaris 11 coming with new feature and enhancement, one of it is NWAM (Network automagic) with NWAM you can create and save the network profile. In this post, I’ll blogging about how to configure your Solaris 11 Systems to used static IP Address.
Ok let’s start :
1. Switch From Automatic Network Configuration Mode to Manual Network Configuration Mode
# netadm enable -p ncp DefaultFixed
2. Verify that DefaultFixed profile is applied
# netadm list netadm: DefaultFixed NCP is enabled; automatic network management is not available. 'netadm list' is only supported when automatic network management is active.
3. Determine the interface that you want to configure
# dladm show-phys
4. I’ll configure the net0 interface
# ipadm create-ip net0 # ipadm create-addr -T static -a 192.168.56.200/24 net0/v4
5. Verify
# ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 net0/v4 static ok 192.168.56.200/24 lo0/v6 static ok ::1/128
root@solaris:~# dladm show-link LINK CLASS MTU STATE OVER net0 phys 1500 up -- net1 phys 1500 unknown --
6. Add default route
# route -p add default 12.34.56.1
7. Add DNS Name Server
root@solaris:~# svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = (8.8.8.8 8.8.4.4) svc:/network/dns/client> listprop config config application config/value_authorization astring solaris.smf.value.name-service.dns.client config/nameserver net_address 8.8.8.8 8.8.4.4 svc:/network/dns/client> exit root@solaris:~# root@solaris:~# svcadm refresh dns/client root@solaris:~# svcadm restart dns/client
8. Set name service switch
root@solaris:~# svccfg -s name-service/switch svc:/system/name-service/switch> setprop config/host = "files dns" svc:/system/name-service/switch> listprop config config application config/default astring files config/value_authorization astring solaris.smf.value.name-service.switch config/printer astring "user files" config/host astring "files dns" svc:/system/name-service/switch> exit
9. Testing
root@solaris:~# ping google.com google.com is alive
That’s it..
In the next post I’ll blogging about how to configure IPMP on Solaris 11.
Configure Local IPS Repository on Solaris 11
Oracle Solaris 11 has been released and coming up as the first cloud OS, Oracle Solaris 11 coming with more features and enhancements. One of it is IPS (Image Packing Systems) this the new way you manage the software patches and packages, IPS make you easy to manage package and patches.
Why you configure Local IPS?
1. Performance (more speed from local network)
2. Security (you don’t want your client to connect to internet)
3. Replication (You want manage the repository, and to make your installation today is exactly the same for the installation next Year)
Prerequisite :
1. Install Oracle Solaris 11
2. 2 DVD ISO repository : https://edelivery.oracle.com

you need to unzip the iso, below the tow iso repository look like :
rachmat@solaris:~$ ls -l *iso -rw-r--r-- 1 rachmat staff 3537872896 Nov 13 06:53 V28915-01.iso -rw-r--r-- 1 rachmat staff 3403360256 Nov 13 14:52 V28916-01.iso
3. Create Zpool for IPS Repository (it’s optional, but I create Zpool specially for holding the repository)
root@solaris:~# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c3t0d0
/pci@0,0/pci8086,2829@d/disk@0,0
1. c3t2d0
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): ^D
root@solaris:~# zpool create ipspool c3t2d0
root@solaris:~# zfs create ipspool/ips
-optional :
root@solaris:~# zfs set atime=off ipspool/ips
root@solaris:~# zfs set compression=on ipspool/ips
set a time to off for better performance, it’s optional.
4. Mount the first repository iso and rsync it, after finished umount it :
root@solaris:~# lofiadm -a /export/home/rachmat/V28915-01.iso /dev/lofi/1 root@solaris:~# mount -F hsfs /dev/lofi/1 /mnt root@solaris:~# ls /mnt/ COPYRIGHT NOTICES README repo root@solaris:~# rsync -aP /mnt/repo /ipspool/ips root@solaris:~# umount /mnt root@solaris:~# lofiadm -d /dev/lofi/1
5. Mount the second repository iso and rsync it, after finished umount it :
root@solaris:~# lofiadm -a /export/home/rachmat/V28916-01.iso /dev/lofi/1 root@solaris:~# mount -F hsfs /dev/lofi/1 /mnt root@solaris:~# ls /mnt/ COPYRIGHT NOTICES README repo root@solaris:~# rsync -aP /mnt/repo /ipspool/ips root@solaris:~# umount /mnt root@solaris:~# lofiadm -d /dev/lofi/1
6. set the repository to your repository folder, in this case /ipspool/ips/repo
root@solaris:~# svccfg -s application/pkg/server setprop pkg/inst_root=/ipspool/ips/repo
7. Set the readonly to true :
root@solaris:~# svccfg -s application/pkg/server setprop pkg/readonly=true
8. Enable and refresh pkg serer :
root@solaris:~# svcadm refresh application/pkg/server root@solaris:~# svcadm enable application/pkg/server
9. setting up the client, to use only this repository
root@solaris:~# pkg set-publisher -G '*' -g <origin> solaris
Where the origin is your repository server domain / ip address
root@solaris:~# pkg set-publisher -G '*' -g http://10.0.7.1 solaris
10. Verify and testing :
root@solaris:~# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://10.0.7.1/
root@solaris:~# pkg install nmap
Packages to install: 2
Create boot environment: No
Create backup boot environment: No
Services to change: 1
DOWNLOAD PKGS FILES XFER (MB)
Completed 2/2 454/454 3.1/3.1
PHASE ACTIONS
Install Phase 538/538
PHASE ITEMS
Package State Update Phase 2/2
Image State Update Phase 2/2
Note : See the README file of repository for the complete options.
Oracle Solaris 11 Features & Ehancement
Oracle Solaris 11 Features & Ehancement
1. New Installation features
- AI (automatic installer)
- Live cd installer for x86 better for desktop
2. New Software package updating features
- IPS Image packagin systems
3. Oracle Solaris 10 zone features
- Solaris10 branded zone
- No Longer have to choose between different zone type
4. New networking features and enhancement
- NWAM (network automagic)
- IPMP monitoring (ipmpstat)
- Network socket enhancement no longer uses the STREAMS module (performance improvement)
- Integrated L3/L4 load balancer
- bridgin and tunneling
- ipadm – configure Internet Protocol network interfaces and TCP/IP tunables
5. Storage Enhancement
- ZFS default root filesystems (ufs available as non root fs)
- deduplication mean duplicate data block are remove(only store unique data)
- ZFS diff
- ZFS Shadow migration
- Comstar & CIFS support
6. User environment enhancement
- enhanced desktop environmnet
- time slider snapshot management
- command line facility
default user path /usr/gnu/bin before /usr/bin
default bash shell environment & ksh93 replace ksh
- CUPS printing
7. Systems security enhancment
- secure by default
- Root treated as role
- Robust data encryption
- Driver support for trusted platform module (TPM)
- trusted extention enhancement
Source : http://docs.oracle.com/cd/E23824_01/html/E24456/docinfo.html
Register Webcast : Oracle Solaris 11 Launch
Build Your Next-Generation Datacenter in the Cloud
Reserve your seat today at the Oracle Solaris 11 launch event in New York on November 9 to:
- Hear directly from Oracle executives Mark Hurd and John Fowler.
- Learn from an elite panel from Oracle Solaris 11 engineers, led by Markus Flierl, Vice President of Solaris Engineering, Oracle.
- Benefit from the insight of leading enterprises already using Oracle Solaris 11.
- Test drive Oracle Solaris 11 and engineered systems in hands-on demos.
- Meet key technologists and network with your peers during an exclusive luncheon.
You’ll take away knowledge of how to build your infrastructure with Oracle Solaris 11 to accelerate internal, public, and hybrid cloud applications, optimize application deployment with built-in virtualization and achieve top performance and cost advantages with Oracle Solaris 11–based engineered systems.
Wednesday, November 09, 2011
9:00 a.m. – 1:30 p.m. ET / 09:00 p.m – 1:30 am Jakarta Time
Gotham Hall
1356 Broadway at 36th Street
New York, NY 10018
Unable to join us in New York? Register for the webcast
New Challenge the way to success
We are is what we think, everything that we get is what we effort. with passion and focus we can reach and get our dreams to be true. Everyday in your life, career & social we will face the challenge, the challenge are vary depending on your daily life and your interest… you can take it or lose it.
Today I just passed : Oracle Certified Professional, Oracle Solaris Cluster 3.2 System Administrator and this is my new challenge in my career.
The Oracle Certified Professional, Oracle Solaris Cluster 3.2 System Administrator certification is for system administrators who install, support and administer Oracle Solaris Cluster 3.2 or Sun Cluster 3.2. It is recommended that candidates have the course Sun Cluster 3.2 Administration as well as a minimum of 6-12 months of Oracle Solaris Cluster or Sun Cluster installation and administration experience, basic network administration and ability to perform Volume Management using both Solaris Volume Manager softwware (SVM) and VERITAS Volume Manager (VxVM). ~ Oracle Certification Program
Comments (2)







