VirtualBox by Innotek GmBH
Then VirtualBox by Sun Microsystems
Then VirtualBox by Oracle
Pretty much like VMWare.
Tuesday, June 24, 2008
Wednesday, March 26, 2008
NFSv4 on FedoraCoreX
On NFS client
/etc/fstab - used on the NFS client
/etc/auto.master - used on the NFS client
/etc/init.d/rpcgssd - required on the client when RPCSEC_GSS is used
On NFS Server
/etc/exports - used on the NFS server
/etc/sysconfig/nfs - used on the NFS server
/etc/init.d/nfs - required on the server
/etc/init.d/rpcsvcgssd - required on the server when RPCSEC_GSS is used
On both NFS Client/Server
/etc/idmapd.conf - used on the NFS client and server
/etc/gssapi_mech.conf - used on the NFS client and server
/etc/init.d/portmap - used on the client and server
/etc/init.d/rpcidmapd - required on both client and server
Others such as:
/etc/hosts, /etc/hosts.allow, /etc/hosts.deny, /etc/sysconfig/iptables (if firewall enabled, port tcp/2049) etc
To mount NFS during boot, put appropriate NFS entry at /etc/fstab
For more info : http://www.vanemery.com/Linux/NFSv4/NFSv4-no-rpcsec.html#intro
/etc/fstab - used on the NFS client
/etc/auto.master - used on the NFS client
/etc/init.d/rpcgssd - required on the client when RPCSEC_GSS is used
On NFS Server
/etc/exports - used on the NFS server
/etc/sysconfig/nfs - used on the NFS server
/etc/init.d/nfs - required on the server
/etc/init.d/rpcsvcgssd - required on the server when RPCSEC_GSS is used
On both NFS Client/Server
/etc/idmapd.conf - used on the NFS client and server
/etc/gssapi_mech.conf - used on the NFS client and server
/etc/init.d/portmap - used on the client and server
/etc/init.d/rpcidmapd - required on both client and server
Others such as:
/etc/hosts, /etc/hosts.allow, /etc/hosts.deny, /etc/sysconfig/iptables (if firewall enabled, port tcp/2049) etc
To mount NFS during boot, put appropriate NFS entry at /etc/fstab
For more info : http://www.vanemery.com/Linux/NFSv4/NFSv4-no-rpcsec.html#intro
Wednesday, January 30, 2008
How to check backup and to restore on HP OpenView Omniback
(From SuhailaAbdGhani SITI)
# /usr/omni/bin/omnistat <--Check for stats
Check detail reports for current running session
# /usr/omni/bin/omnidb -ses 2007/05/28-2 -rep|more
Check session details :(Backup contain; Object Name,Size, Device name, etc)
omnidb -session -detail
# /usr/omni/bin/omnidb -sess 2008/01/17-4 -det
omnidownload -list_devices
# /usr/omni/bin/omnidownload -list_devices
To Restore filesystem
-------------------------
omnir -filesystem object name -session sessionID session-id-tree mountpoint -into restore target -no_monitor/session-id
# /usr/omni/bin/omnir -filesystem mlbs0048_cs1:/local/apps/ctm '/local/apps/ctm' -session 2008/01/17-4 -tree /local/apps/ctm -into /local/apps/ctm -no_monitor
To handle mount request:
Check session report, look for media label,device,slot, etc eg:
# /usr/omni/bin/omnidb -sess 2008/01/26-12 -rep|more
Command to confirm mount request.
omnimnt -dev -session
# /usr/omni/bin/omnimnt -dev LTO_2_mlbsv146 -ses 2008/01/26-12
# /usr/omni/bin/omnistat <--Check for stats
Check detail reports for current running session
# /usr/omni/bin/omnidb -ses 2007/05/28-2 -rep|more
Check session details :(Backup contain; Object Name,Size, Device name, etc)
omnidb -session
# /usr/omni/bin/omnidb -sess 2008/01/17-4 -det
omnidownload -list_devices
# /usr/omni/bin/omnidownload -list_devices
To Restore filesystem
-------------------------
omnir -filesystem object name -session sessionID session-id-tree mountpoint -into restore target -no_monitor/session-id
# /usr/omni/bin/omnir -filesystem mlbs0048_cs1:/local/apps/ctm '/local/apps/ctm' -session 2008/01/17-4 -tree /local/apps/ctm -into /local/apps/ctm -no_monitor
To handle mount request:
Check session report, look for media label,device,slot, etc eg:
# /usr/omni/bin/omnidb -sess 2008/01/26-12 -rep|more
Command to confirm mount request.
omnimnt -dev
# /usr/omni/bin/omnimnt -dev LTO_2_mlbsv146 -ses 2008/01/26-12
Monday, January 28, 2008
Jérôme Kerviel
Is he 'better' than Yasuo Hamanaka and Nick Leeson or a merely made a scapegoat of Société Générale's bad investment decision?
Monday, January 21, 2008
To Configure Solaris OS to Generate Core Files
#mkdir -p /var/cores
#coreadm -g /var/cores/%f.%n.%p.%t.core -e global -e global-setid -e log -d process -d proc-setid
# coreadm <---Display the core configuration.
global core file pattern: /var/cores/%f.%n.%p.%t.core
init core file pattern: core
global core dumps: enabled
per-process core dumps: disabled
global setid core dumps: enabled
per-process setid core dumps: disabled
global core dump logging: enabled
#man coreadm <---for further details
# ulimit -c unlimited <--- Set the size of the core dumps to unlimited.
# ulimit -a <----Verify coredump size
coredump(blocks) unlimited
Test/Verify core file creation.
# cd /var/cores
# sleep 100000 &
[1] PID
# kill -8 PID; # ls
#coreadm -g /var/cores/%f.%n.%p.%t.core -e global -e global-setid -e log -d process -d proc-setid
# coreadm <---Display the core configuration.
global core file pattern: /var/cores/%f.%n.%p.%t.core
init core file pattern: core
global core dumps: enabled
per-process core dumps: disabled
global setid core dumps: enabled
per-process setid core dumps: disabled
global core dump logging: enabled
#man coreadm <---for further details
# ulimit -c unlimited <--- Set the size of the core dumps to unlimited.
# ulimit -a <----Verify coredump size
coredump(blocks) unlimited
Test/Verify core file creation.
# cd /var/cores
# sleep 100000 &
[1] PID
# kill -8 PID; # ls
Friday, January 18, 2008
Backup/Restore (Solaris) - ufsdump/ufsrestore, cpio, tar
#dmesg | grep st <---- CHecking tape device
#mt -f /dev/rmt/0 status <---- Checking tape drive status
UFSDUMP (Backup file system)
#ufsdump 0cvf /dev/rmt/0 /dev/rdsk/c0t0d0s0 <-- using raw devices
#ufsdump 0cvf /dev/rmt/0 /usr <--- using mounted fs
Disk to disk copy
#ufsdump 0f - /dev/rdsk/c0t0d0s7 |(cd /mnt/backup ;ufsrestore xf -)
UFSRESTORE (restore fs)
#ufsrestore rvf /dev/rmt/0 <---- restore a dump to a current dir
# ufsrestore -i /dev/rmt/0 <--- in interactive mode, on the selected tape drive
TAR
#tar cvf /dev/rmt/0 * <---- Backup all (*) using tar for the current dir
#tar tvf /dev/rmt/0 <---- listing a tar backup on a tape
#tar xvf /dev/rmt/0 <---- Extracting tar backup from tape to a current dir
CPIO
#find . -depth -print | cpio -ovcB > /dev/rmt/0 <---- Backup using cpio
#cpio -ivtB < /dev/rmt/0 <---- Viewing cpio files on a tape
#cpio -ivcB < /dev/rmt/0 <---- Restoring a cpio backup
Compress/uncompress
#compress -v or #gzip
#uncompress.Z or #gunzip .gz
#mt -f /dev/rmt/0 status <---- Checking tape drive status
UFSDUMP (Backup file system)
#ufsdump 0cvf /dev/rmt/0 /dev/rdsk/c0t0d0s0 <-- using raw devices
#ufsdump 0cvf /dev/rmt/0 /usr <--- using mounted fs
Disk to disk copy
#ufsdump 0f - /dev/rdsk/c0t0d0s7 |(cd /mnt/backup ;ufsrestore xf -)
UFSRESTORE (restore fs)
#ufsrestore rvf /dev/rmt/0 <---- restore a dump to a current dir
# ufsrestore -i /dev/rmt/0 <--- in interactive mode, on the selected tape drive
TAR
#tar cvf /dev/rmt/0 * <---- Backup all (*) using tar for the current dir
#tar tvf /dev/rmt/0 <---- listing a tar backup on a tape
#tar xvf /dev/rmt/0 <---- Extracting tar backup from tape to a current dir
CPIO
#find . -depth -print | cpio -ovcB > /dev/rmt/0 <---- Backup using cpio
#cpio -ivtB < /dev/rmt/0 <---- Viewing cpio files on a tape
#cpio -ivcB < /dev/rmt/0 <---- Restoring a cpio backup
Compress/uncompress
#compress -v
#uncompress
Thursday, January 17, 2008
OS Backup/Restore using ufsdump in Solaris
Backing Up and Restoring the Solaris OS With "ufsdump"
(http://www.sun.com/bigadmin/content/submitted/backup_restore_ufsdump.html)
Yazid Mohamed, August 2006
This Tech Tip describes a backup and restore procedure for the Solaris 8 or 9 Operating System using the ufsdump command.
Backing Up the OS
1. For this example, we are using c0t0d0s0 as a root partition. Bring the system into single-user mode (recommended).
# init -s
2. Check the partition consistency.
# fsck -m /dev/rdsk/c0t0d0s0
3. Verify the tape device status:
# mt status
Or use this command when you want to specify the raw tape device, where x is the interface:
# mt -f /dev/rmt/x status
4. Back up the system:
a) When the tape drive is attached to your local system, use this:
# ufsdump 0uf /dev/rmt/0n /
b) When you want to back up from disk to disk, for example, if you want to back up c0t0d0s0 to c0t1d0s0:
# mkdir /tmp/backup
# mount /dev/dsk/c0t1d0s0 /tmp/backup
# ufsdump 0f - / | (cd /tmp/backup;ufsrestore xvf -)
c) When you want to back up to a remote tape, use this. On a system that has a tape drive, add the following line to its /.rhosts file:
hostname root
where hostname is the name or IP of the system that will run ufsdump to perform the backup. Then run the following command:
# ufsdump 0uf remote_hostname:/dev/rmt/0n /
Restoring the OS
1. For this example, your OS disk is totally corrupted and replaced with a new disk. Go to the ok prompt and boot in single-user mode from the Solaris CD.
ok> boot cdrom -s
2. Partition your new disk in the same way as your original disk.
3. Format all slices using the newfs command. For example:
# newfs /dev/rdsk/c0t0d0s0
4. Make a new directory in /tmp:
# mkdir /tmp/slice0
5. Mount c0t0d0s0 into /tmp/slice0:
# mount /dev/dsk/c0t0d0s0 /tmp/slice0
6. Verify the status of the tape drive:
# mt status
If the tape drive is not detected, issue the following command:
# devfsadm -c tape
or
# drvconfig
# tapes
# devlinks
Verify the status of tape drive again and make sure the backup tape is in the first block or file number is zero. Use the following command to rewind the backup tape:
# mt rewind
7. Go into the /tmp/slice0 directory and you can start restoring the OS.
# cd /tmp/slice0
# ufsrestore rvf /dev/rmt/0n
If you want to restore from another disk (such as c0t1d0s0), use the following command:
# mkdir /tmp/backup
# mount /dev/dsk/c0t1d0s0 /tmp/backup
# ufsdump 0f - /tmp/backup | (cd /tmp/slice0;ufsrestore xvf -)
8. After restoring all the partitions successfully, install bootblock to make the disk bootable. This example assumes your /usr is located inside the "/" partition:
# cd /tmp/slice0/usr/platform/'uname -m'/lib/fs/ufs
# installboot bootblk /dev/rdsk/c0t0d0s0
9. To finish restoring your OS, reboot the system.
Example:
To create full dump of a root fs on c0t3d0, on 150MB tape unit 0, use:
example# ufsdump 0cfu /dev/rmt/0 /dev/rdsk/c0t3d0s0
To make and verify an incremental dump at level 5 of the usr partition of c0t3d0, on a tape unit 1,
example# ufsdump 5fuv /dev/rmt/1 /dev/rdsk/c0t3d0s6
(http://www.sun.com/bigadmin/content/submitted/backup_restore_ufsdump.html)
Yazid Mohamed, August 2006
This Tech Tip describes a backup and restore procedure for the Solaris 8 or 9 Operating System using the ufsdump command.
Backing Up the OS
1. For this example, we are using c0t0d0s0 as a root partition. Bring the system into single-user mode (recommended).
# init -s
2. Check the partition consistency.
# fsck -m /dev/rdsk/c0t0d0s0
3. Verify the tape device status:
# mt status
Or use this command when you want to specify the raw tape device, where x is the interface:
# mt -f /dev/rmt/x status
4. Back up the system:
a) When the tape drive is attached to your local system, use this:
# ufsdump 0uf /dev/rmt/0n /
b) When you want to back up from disk to disk, for example, if you want to back up c0t0d0s0 to c0t1d0s0:
# mkdir /tmp/backup
# mount /dev/dsk/c0t1d0s0 /tmp/backup
# ufsdump 0f - / | (cd /tmp/backup;ufsrestore xvf -)
c) When you want to back up to a remote tape, use this. On a system that has a tape drive, add the following line to its /.rhosts file:
hostname root
where hostname is the name or IP of the system that will run ufsdump to perform the backup. Then run the following command:
# ufsdump 0uf remote_hostname:/dev/rmt/0n /
Restoring the OS
1. For this example, your OS disk is totally corrupted and replaced with a new disk. Go to the ok prompt and boot in single-user mode from the Solaris CD.
ok> boot cdrom -s
2. Partition your new disk in the same way as your original disk.
3. Format all slices using the newfs command. For example:
# newfs /dev/rdsk/c0t0d0s0
4. Make a new directory in /tmp:
# mkdir /tmp/slice0
5. Mount c0t0d0s0 into /tmp/slice0:
# mount /dev/dsk/c0t0d0s0 /tmp/slice0
6. Verify the status of the tape drive:
# mt status
If the tape drive is not detected, issue the following command:
# devfsadm -c tape
or
# drvconfig
# tapes
# devlinks
Verify the status of tape drive again and make sure the backup tape is in the first block or file number is zero. Use the following command to rewind the backup tape:
# mt rewind
7. Go into the /tmp/slice0 directory and you can start restoring the OS.
# cd /tmp/slice0
# ufsrestore rvf /dev/rmt/0n
If you want to restore from another disk (such as c0t1d0s0), use the following command:
# mkdir /tmp/backup
# mount /dev/dsk/c0t1d0s0 /tmp/backup
# ufsdump 0f - /tmp/backup | (cd /tmp/slice0;ufsrestore xvf -)
8. After restoring all the partitions successfully, install bootblock to make the disk bootable. This example assumes your /usr is located inside the "/" partition:
# cd /tmp/slice0/usr/platform/'uname -m'/lib/fs/ufs
# installboot bootblk /dev/rdsk/c0t0d0s0
9. To finish restoring your OS, reboot the system.
Example:
To create full dump of a root fs on c0t3d0, on 150MB tape unit 0, use:
example# ufsdump 0cfu /dev/rmt/0 /dev/rdsk/c0t3d0s0
To make and verify an incremental dump at level 5 of the usr partition of c0t3d0, on a tape unit 1,
example# ufsdump 5fuv /dev/rmt/1 /dev/rdsk/c0t3d0s6
Subscribe to:
Posts (Atom)