reiserfs_stage1_5
(to load from a Reiser journaling file system) or e2fs_stage1_5
(to load from an ext2 or ext3 file system). When the stage 1.5 boot loader is e2fs_stage1_5
Sharing Knowledge | System Admin Articles
reiserfs_stage1_5
(to load from a Reiser journaling file system) or e2fs_stage1_5
(to load from an ext2 or ext3 file system). When the stage 1.5 boot loader is e2fs_stage1_5
Once disk presented to host,
# pvcreate /dev/rdsk/cxtxdx
# vgextend /dev/vgname /dev/dsk/cxtxdx
# lvcreate -L /dev/vgname/lvname
# newfs -F vxfs -o largefiles /dev/vgname/rlvname
# cp -p /etc/cmcluster/pkgname/pkg.cntl /etc/cmcluster/pkgname/pkg.cntl.org
# vi /etc/cmcluster/pkgname/pkg.cntl
LV[33]=/dev/vgname/lvname; FS[33]=/oracle/ABN/sapdata20; FSMOUNT_OPT[33]="-o convosync=direct,mincache=direct,delaylog,nodatainlog"
(Add newly create Logical volume to pkg.cnt.file)
# vgexport -p -s -v -m /tmp/vgname.map /dev/vgname
# rcp /tmp/vgname.map nodee2:/tmp/vgname.map
# cp -p /etc/cmcluster/pkgname/pkg.cntl /etc/cmcluster/pkgname/pkg.cntl.node2
# rcp /etc/cmcluster/pkgname/pkg.cntl.node2 nodee2:/tmp/
(mount the mount point manually on the node where the vg is active now)
# mount -o convosync=direct,mincache=direct,delaylog,nodatainlog /dev/vgname/lvolname /oracle/ABN/sapdata20
On Adoptive Node :-
# vgexport /dev/vgname
# mkdir /dev/vgname
# ll /dev/vg*/group
# mknode /dev/vgname/group c 64 0x0X0000
# vgimport -p -s -v -m /tmp/vgname.map /dev/vgname -> (preview) if no error proceed below by removing -p
# vgimport -s -v -m /tmp/vgname.map /dev/vgname
# cp /tmp/pkg.cntl.node2 /etc/cmcluster/pkgname
# cp -p /etc/cmcluster/pkgname/pkg.cntl /etc/cmcluster/pkgname/pkg.cntl.org
# mv /etc/cmcluster/pkgname/pkg.cntl.node2 /etc/cmcluster/pkgname/pkg.cntl
# swapinfo -tam Mb Mb Mb PCT START/ Mb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 12288 0 12288 0% 0 - 1 /dev/vg00/lvol2 reserve - 391 -391 memory 1938 628 1310 32% total 14226 1019 13207 7% - 0 - # lvcreate -L 1024 -n swap2 /dev/vg01 Logical volume "/dev/vg01/swap2" has been successfully created with character device "/dev/vg01/rswap2". Logical volume "/dev/vg01/swap2" has been successfully extended. Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf # swapon -p 1 /dev/vg01/swap2 # swapinfo -tam Mb Mb Mb PCT START/ Mb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 12288 0 12288 0% 0 - 1 /dev/vg00/lvol2 dev 1024 0 1024 0% 0 - 1 /dev/vg01/swap2 reserve - 391 -391 memory 1938 628 1310 32% total 15250 1019 14231 7% - 0 - # swapoff /dev/vg01/swap2 # swapinfo -tam Mb Mb Mb PCT START/ Mb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 12288 0 12288 0% 0 - 1 /dev/vg00/lvol2 reserve - 391 -391 memory 1938 628 1310 32% total 14226 1019 13207 7% - 0 - # lvremove /dev/vg01/swap2 The logical volume "/dev/vg01/swap2" is not empty; do you really want to delete the logical volume (y/n) : y Logical volume "/dev/vg01/swap2" has been successfully removed. Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
# swlist -l bundle BUNDLE11i HWEnable11i FEATURE11i QPKBASE QPKAPPS
# swlist -l bundle BUNDLE11i HWEnable11i FEATURE11i QPKBASE
shutdown -r 0 –> reboot
shutdown -h now –> shutdown and halt
shutdown 0 –> shutdown to single user mode
reboot 0 –> reboot
init 1 – single user mode
hpux -is boots single user mode
Interupting the boot process:
GSP Mode
To reboot to single user mode:
following are the booting files for xp ; boot.ini, ntldt, ntdetect.com, ntoskrnl.exe,bootdd.sys, bootsect.dos,hal.dll, system.
First there will be pre- boot sequence, it includes the following
1.POST(power on self test) first check for hardware
2.loads boot.ini, loads mbr.
3.mbr loads active partation
4ntldr loads o.s.
boot process: first loads boot.ini, ntldr will be in boot.ini it loads os. boot.ini shows available os for selection, ntdetect.com check for hardware, ntoskrnl.exe loads drivers for devices.
Booting process are classified into 5 steps.
1.POST
2.The MBR reads the boot sector which is the first sector of the active partition.
3.Ntldr locket path of os from boot.ini
4.Ntldr to run ntdedetect.com to get information about installed hardware.
5.Ntldr reads the registry files then select a hardware profile, control set and loads device drivers.
6.After that Ntoskrnl.exe takes over and starts winlogon.exe which starts lsass.exe
this is the program that display the welcome screen.
What is the difference between Windows XP Professional Edition and Windows XP Home Edition?
Although the XP Pro and Home Editions share the same common core code, they don't have the same features. The right version for you depends on the functionality you need.
Backup—XP Pro has the standard Win2K backup program; XP Home has no backup program.
Dynamic Disks—XP Pro supports dynamic disks; XP Home doesn't.
IIS—XP Pro includes IIS; XP Home doesn't.
Encrypted File System (EFS)—EFS debuted in Win2K and lets you encrypt files on an NTFS partition, a very useful feature for mobile machines. XP Pro includes EFS; XP Home doesn't.
Multiprocessor—XP Pro supports up to two processors; XP Home supports only one (as did Windows Me/Win98).
Remote Assistance—Both editions support Remote Assistance, which lets someone from a Help desk connect to the client desktop to troubleshoot problems.
Remote Desktop—XP Pro adds to Remote Assistance by letting any machine running a Terminal Services client run one Terminal Services session against an XP Pro machine.
Domain Membership—XP Pro systems can be domain members; XP Home systems can't, but they can access domain resources.
Group Policy—XP Pro supports group policies; XP Home doesn't.
IntelliMirror—XP Pro supports IntelliMirror, which includes Microsoft Remote Installation Services (RIS), software deployment, and user setting management; XP Home doesn't support IntelliMirror.
Upgrade from Windows Me/Win98—Both XP Pro and XP Home support this upgrade
Upgrade from Win2K/NT—Only XP Pro supports this upgrade.
64-bit Support—Only XP Pro will have a 64-bit version that supports the Itanium systems.
Network Support—XP Pro includes support for Network Monitor, SNMP, IP Security (IPSec), and the Client Services for NetWare (CSNW); XP Home doesn't.
Now all logical volumes in /dev/vg00 volume group are mirrored. It is time to split this mirror so we have two identical copies of our system. To make sure you don't loose any data this should be done only when all your applications are stopped.
# lvsplit -s bkp /dev/vg00/lv*
Logical volume "/dev/vg00/lvol1bkp" has been successfully created with
character device "/dev/vg00/rlvol1bkp".
Logical volume "/dev/vg00/lvol1" has been successfully split.
--(text cut)--
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
With this we have split every logical volume to the original and copy with 'bkp' sufix. For example, lvol1 and lvol1bkp, lvol2 and lvol2bkp, and so on. In case of a problem after patching we will use 'bkp' logical volumes.
After splitting, new logical volumes (ones with the 'bkp' suffix) needs to be checked with the fsck for consistency.
# for i in /dev/vg00/lv*bkp; do fsck -F $(fstyp $i) $i; done
log replay in progress
replay complete - marking super-block as CLEAN
unknown_fstyp (no matches)
fsck: invalid argument to "-F FStype" option
fsck: /dev/vg00/lvol2bkp is not a valid file system type
usage: fsck [-F FStype] [-V] [-m] [special...]
or fsck [-F FStype] [-V] [-m] [-o specific_options] [special...]
log replay in progress
replay complete - marking super-block as CLEAN
--(text cut)--
Do not worry about that error we got there. It is because we tried to fsck SWAP filesystem.
PROBLEM
How to remove a functional mirror disk from the boot / root mirror configuration.
This document provides steps to remove a functional mirror disk from an LVM boot
disk configuration.
These steps apply to Integrity / Itanium based HP-UX systems ONLY.
CONFIGURATION
Integrity servers
rx1600 rx1620
rx2600 rx2620
rx4640 bl60p
rx7620 rx7640
rx8620 rx8640
RESOLUTION
Example disk to be removed from a mirror set:
c2t1d0s2
1. lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t1d0s2
2. vgreduce /dev/vg00 /dev/dsk/c2t1d0s2
Safety checks :
# vgdisplay -v /dev/vg00 | grep c2t1d0
Should not return anything
# strings /etc/lvmtab
Ensure that c2t1d0 or s2 device is not listed.
# lvlnboot -v
Ensure no errors and that c2t1d0 is no longer listed.
3. Steps to remove EFI disk partitions :
# idisk -wR /dev/rdsk/c2t1d0
NOTE: This is destructive, ensure specify correct disk !
Note the use or rdsk device and whole disk device file.
4. Remove the special device files which are no longer used.
# rmsf /dev/rdsk/c2t1d0s1
# rmsf /dev/rdsk/c2t1d0s2
# rmsf /dev/rdsk/c2t1d0s3
# rmsf /dev/dsk/c2t1d0s1
# rmsf /dev/dsk/c2t1d0s2
# rmsf /dev/dsk/c2t1d0s3
Use pvcreate or pvcreate -f to format the disk for LVM usage and create or
extend the disk into a volume group.
Let us assume your router address is 192.168.1.254 and network ID is 192.168.1.0/24, then you can type route command as follows:
# route add net 192.168.1.0 netmask 255.255.255.0 192.168.1.254
OR
To add a default route:
# route add default 192.168.1.254
Verify that (display) routing table is updated (display routing table):
# netstat -nr
Test it i.e. try to ping or send nslookup request:
# ping mycorp.com
To flush all routing entries use command [quite handy to clean your gordian knot ;)] :
# route -f
However if I reboot HPUX box then above routing entries gets removed. To pick up your setting upon each reboot your need to configure Routes in HPUX networking configuration file - /etc/rc.config.d/netconf. To add default router/gateway 192.168.1.254:
# vi /etc/rc.config.d/netconf
Add or modify following entries
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="192.168.1.254"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
Reboot HP-UX system/server to take effect
# shutdown -ry 0
Both HP-UX and Sun Solars uses almost same device file naming convention. Typically it look like as follows:
c#t#d#
Let us try to understand what those letters
Use ioscan command to get information about your device under HP-UX. A block device file is always in /dev/dsk and a character device file in /dev/rdsk directory.