Title: reiserfs manipulation notes Subject: I ran out of space and had to add more # Adding second disk. # Extending existing partitions. # # No data was harmed in the following process. # # # Lets see what we got mounted on this system. # # bdf -bi Filesystem kbytes used avail %used iused ifree %iuse Mounted on /dev/vg00/lvol3 83733 35020 40339 46% 3033 10407 23% / /dev/vg00/lvol1 47829 20244 22802 47% 21 7659 0% /stand /dev/vg00/lvol9 4680424 3077606 1134775 73% 17072 750928 2% /var /dev/vg00/lvol7 454741 352143 57123 86% 16966 55994 23% /usr /dev/vg00/lvol4 30597 97 27440 0% 22 15210 0% /tmp /dev/vg00/lvol6 2002251 1444292 357733 80% 14593 302399 5% /opt /dev/vg00/lvol5 598357 45804 492717 9% 2370 93630 2% /home # # display what is in volume group 1 # # vgdisplay /dev/vg01 --- Volume groups --- VG Name /dev/vg01 VG Write Access read/write VG Status available Max LV 255 Cur LV 0 Open LV 0 Max PV 16 Cur PV 1 Act PV 1 Max PE per PV 2169 VGDA 2 PE Size (Mbytes) 4 Total PE 2169 <--this Alloc PE 0 <--this Free PE 2169 <--this Total PVG 0 # Remove Physical Volumes from volume group # # vgchange -a n /dev/vg01 Volume group "/dev/vg01" has been successfully changed. # Remove volume group # # vgremove /dev/vg01 vgremove: Volume group not activated. # Activate the volume group # # vgchange -a y /dev/vg01 Activated volume group Volume group "/dev/vg01" has been successfully changed. # Remove volume group # # vgremove /dev/vg01 Volume group "/dev/vg01" has been successfully removed. # Look at the mount points to determin where to add space. # # strings /etc/lvmtab /dev/vg00 56u[ /dev/dsk/c0t6d0 # List disks on the system # # ioscan -fnC disk |more Class I H/W Path Driver S/W State H/W Type Description ============================================================================ disk 0 8/0/19/0.6.0 sdisk CLAIMED DEVICE SEAGATE ST19171W /dev/dsk/c0t6d0 /dev/rdsk/c0t6d0 disk 2 8/4.6.0 sdisk CLAIMED DEVICE SEAGATE ST19171W /dev/dsk/c3t6d0 /dev/rdsk/c3t6d0 disk 1 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA /dev/dsk/c1t2d0 /dev/rdsk/c1t2d0 # Show that the physical volume is not part of a volume group. # # pvdisplay /dev/dsk/c3t6d0 pvdisplay: Couldn't find the volume group to which physical volume "/dev/dsk/c3t6d0" belongs. pvdisplay: Cannot display physical volume "/dev/dsk/c3t6d0". # Add disk to volume group ( which adds PE to the volume group) # # vgextend /dev/vg00 /dev/dsk/c3t6d0 Warning: Max_PE_per_PV for the volume group (2168) too small for this PV (2169). Using only 2168 PEs from this physical volume. Volume group "/dev/vg00" has been successfully extended. Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf # Now look at mount ponts and logical volumes # # more /etc/fstab /dev/vg00/lvol3 / hfs defaults 0 1 /dev/vg00/lvol1 /stand hfs defaults 0 1 /dev/vg00/lvol4 /tmp hfs defaults 0 2 /dev/vg00/lvol5 /home hfs defaults 0 2 /dev/vg00/lvol6 /opt hfs defaults 0 2 /dev/vg00/lvol7 /usr hfs defaults 0 2 #/dev/dsk/c1t2d0 /cdrom cdfs ro,suid 0 0 /dev/vg00/lvol9 /var hfs defaults 0 2 # Look at PE in logical volume where /tmp is mounted # # lvdisplay /dev/vg00/lvol4 --- Logical volumes --- LV Name /dev/vg00/lvol4 VG Name /dev/vg00 LV Permission read/write LV Status available/syncd Mirror copies 0 Consistency Recovery MWC Schedule parallel LV Size (Mbytes) 200 Current LE 50 Allocated PE 50 Stripes 0 Stripe Size (Kbytes) 0 Bad block on Allocation strict IO Timeout (Seconds) default # Extend the size of the lvol4 by 500 PE. # # lvextend -L 500 /dev/vg00/lvol4 Logical volume "/dev/vg00/lvol4" has been successfully extended. Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf # # # lvextend -L 500 /dev/vg00/lvol4 # bdf -bi Filesystem kbytes used avail %used iused ifree %iuse Mounted on /dev/vg00/lvol3 83733 35019 40340 46% 3033 10407 23% / /dev/vg00/lvol1 47829 20244 22802 47% 21 7659 0% /stand /dev/vg00/lvol9 4680424 3077606 1134775 73% 17072 750928 2% /var /dev/vg00/lvol7 454741 352143 57123 86% 16966 55994 23% /usr /dev/vg00/lvol4 30597 97 27440 0% 22 15210 0% /tmp /dev/vg00/lvol6 2002251 1444292 357733 80% 14593 302399 5% /opt /dev/vg00/lvol5 598357 45805 492716 9% 2370 93630 2% /home # exit $ su Password: su: Sorry $ sudo ksh Password: # shutdown 0 SHUTDOWN PROGRAM 03/28/01 15:18:50 PST Broadcast Message from jstile (ttyp1) Wed Mar 28 15:18:50... SYSTEM BEING BROUGHT DOWN NOW ! ! ! /sbin/rc[61]: 10.2.0.0: not found. /sbin/rc[61]: 10.3.0.0: not found. /sbin/rc[61]: 10.4.0.0: not found. /sbin/rc[61]: 207.62.194.0: not found. /sbin/auto_parms, checking network for DHCP server (see /etc/auto_parms.log) /sbin/rc1.d/K258diagnostic[22]: 10.2.0.0: not found. /sbin/rc1.d/K258diagnostic[22]: 10.3.0.0: not found. /sbin/rc1.d/K258diagnostic[22]: 10.4.0.0: not found. /sbin/rc1.d/K258diagnostic[22]: 207.62.194.0: not found. /sbin/rc1.d/K300acct[39]: 10.2.0.0: not found. /sbin/rc1.d/K300acct[39]: 10.3.0.0: not found. /sbin/rc1.d/K300acct[39]: 10.4.0.0: not found. /sbin/rc1.d/K300acct[39]: 207.62.194.0: not found. /sbin/rc1.d/K400iforls[25]: 10.2.0.0: not found. /sbin/rc1.d/K400iforls[25]: 10.3.0.0: not found. /sbin/rc1.d/K400iforls[25]: 10.4.0.0: not found. /sbin/rc1.d/K400iforls[25]: 207.62.194.0: not found. /sbin/rc1.d/K410ncs[32]: 10.2.0.0: not found. /sbin/rc1.d/K410ncs[32]: 10.3.0.0: not found. /sbin/rc1.d/K410ncs[32]: 10.4.0.0: not found. /sbin/rc1.d/K410ncs[32]: 207.62.194.0: not found. System shutdown in progress ___________________________ Stop CDE login server ............................................ OK Stop NFS server subsystem ........................................ OK Usage: /sbin/init.d/hpnpd [start|stop] ........................... OK Stopping Netscape Fasttrack Server ............................... OK Stop OmniBack II daemons ......................................... OK Stopping Advanced Server/9000 .................................... N/A Stopping Lan Manager 2.2 ......................................... OK Stopping the PerfView Software pvalarmd and pvnotifyd daemons .... OK Shutting down Measureware performance software ................... OK Stopping Distributed Single Logical Screen daemon ................ OK Stopping audio server daemon ..................................... FAIL * Stop auditing subsystem .......................................... OK Stop diagnostic subsystem ........................................ OK Stop clock daemon ................................................ OK Stopping HP Distributed Print Service ............................ OK Stop print spooler ............................................... OK Stopping HP Disk Array Manager daemons. .......................... OK Stopping disk array monitor daemons. ............................. OK Stop accounting .................................................. N/A Stopping time synchronization .................................... OK Stop vt daemon ................................................... OK Terminating X Font Server ........................................ OK Stop remote boot daemon .......................................... OK Stop Gradient License Server Daemon .............................. OK Stop NCS broker daemons .......................................... OK Stop DFS daemons ................................................. OK Stop DCE daemons ................................................. OK Stopping OSPF MIB Network Management subAgent .................... N/A Stopping SNMP HP-UNIX Network Management subAgent ................ OK Stopping SNMP MIB-2 Network Management subAgent .................. OK Stopping SNMP Master Network Management daemon ................... OK Stopping outbound connection daemons for DDFA software ........... N/A Stopping mail daemon ............................................. OK Stopping remote system status daemon ............................. N/A Stopping RARP protocol daemon .................................... N/A Stopping router discover protocol daemon ......................... N/A Stopping dynamic routing daemon .................................. N/A Stopping Internet services daemon ................................ OK Stopping multicast routing daemon ................................ N/A Stop NFS client subsystem ........................................ OK Stop NIS client subsystem ........................................ OK Stop NIS server subsystem ........................................ OK Stop NFS core subsystem .......................................... OK Stopping name server daemon ...................................... N/A Unconfigure LAN interfaces ....................................... OK Stop network tracing and logging daemon .......................... OK Stop pty allocator daemon ........................................ OK Stop system message logging daemon ............................... OK Stopping USB hub daemon .......................................... OK Stop Software Distributor agent daemon ........................... OK Stop syncer daemon ............................................... OK Killing user processes ........................................... OK Unmount file systems ............................................. OK * - An error has occurred ! * - Refer to the file /etc/rc.log for more information. Transition to run-level 0 is complete. Wait for transition to run-level S (allow 20 seconds). Warning: Transition to init state s timed out -- exiting shutdown. # # mount / on /dev/vg00/lvol3 defaults on Tue Mar 27 18:57:00 2001 /usr on /dev/vg00/lvol7 defaults on Tue Mar 27 18:57:07 2001 /home on /dev/vg00/lvol5 defaults on Tue Mar 27 18:57:08 2001 # extendfs -F hfs /dev/vg00/rlvol4 max number of sectors extendible is 479232. extend file system /dev/vg00/rlvol4 to have 479232 sectors more. Warning: 50 sector(s) in last cylinder unallocated extended super-block backups (for fsck -b#) at: 34656, 37144, 39440, 41928, 44416, 46904, 49392, 51880, 54368, 56856, 59152, 61640, 64128, 66616, 69104, 71592, 74080, 76568, 78864, 81352, 83840, 86328, 88816, 91304, 93792, 96280, 98576, 101064, 103552, 106040, 108528, 111016, 113504, 115992, 118288, 120776, 123264, 125752, 128240, 130728, 133216, 135704, 138000, 140488, 142976, 145464, 147952, 150440, 152928, 155416, 157712, 160200, 162688, 165176, 167664, 170152, 172640, 175128, 177424, 179912, 182400, 184888, 187376, 189864, 192352, 194840, 197136, 199624, 202112, 204600, 207088, 209576, 212064, 214552, 216848, 219336, 221824, 224312, 226800, 229288, 231776, 234264, 236560, 239048, 241536, 244024, 246512, 249000, 251488, 253976, 256272, 258760, 261248, 263736, 266224, 268712, 271200, 273688, 275984, 278472, 280960, 283448, 285936, 288424, 290912, 293400, 295696, 298184, 300672, 303160, 305648, 308136, 310624, 313112, 315408, 317896, 320384, 322872, 325360, 327848, 330336, 332824, 335120, 337608, 340096, 342584, 345072, 347560, 350048, 352536, 354832, 357320, 359808, 362296, 364784, 367272, 369760, 372248, 374544, 377032, 379520, 382008, 384496, 386984, 389472, 391960, 394256, 396744, 399232, 401720, 404208, 406696, 409184, 411672, 413968, 416456, 418944, 421432, 423920, 426408, 428896, 431384, 433680, 436168, 438656, 441144, 443632, 446120, 448608, 451096, 453392, 455880, 458368, 460856, 463344, 465832, 468320, 470808, 473104, 475592, 478080, 480568, 483056, 485544, 488032, 490520, 492816, 495304, 497792, 500280, 502768, 505256, 507744, 510232, # init 3 ksh: init: not found # init 3 ksh: init: not found # whereis init 3 init: /sbin/init /sbin/init.d /usr/share/man/man1m.Z/init.1m 3: # /sbin/init 3 # df -k /opt (/dev/vg00/lvol6 ) : 1802025 total allocated Kb 357734 free allocated Kb 1444291 used allocated Kb 80 % allocation used /stand (/dev/vg00/lvol1 ) : 43046 total allocated Kb 22802 free allocated Kb 20244 used allocated Kb 47 % allocation used /tmp (/dev/vg00/lvol4 ) : 432306 total allocated Kb 432262 free allocated Kb 44 used allocated Kb 0 % allocation used /var (/dev/vg00/lvol9 ) : 4212381 total allocated Kb 1134805 free allocated Kb 3077576 used allocated Kb 73 % allocation used /home (/dev/vg00/lvol5 ) : 538521 total allocated Kb 492716 free allocated Kb 45805 used allocated Kb 8 % allocation used /usr (/dev/vg00/lvol7 ) : 409266 total allocated Kb 57123 free allocated Kb 352143 used allocated Kb 86 % allocation used / (/dev/vg00/lvol3 ) : 75359 total allocated Kb 40337 free allocated Kb 35022 used allocated Kb 46 % allocation used # Now lvol4 had 30 Mb, and now has 480 Mb. # # bdf -bi Filesystem kbytes used avail %used iused ifree %iuse Mounted on /dev/vg00/lvol3 83733 35022 40337 46% 3035 10405 23% / /dev/vg00/lvol7 454741 352143 57123 86% 16966 55994 23% /usr /dev/vg00/lvol5 598357 45805 492716 9% 2370 93630 2% /home /dev/vg00/lvol9 4680424 3077576 1134805 73% 17049 750951 2% /var /dev/vg00/lvol4 480341 44 432262 0% 21 226283 0% /tmp /dev/vg00/lvol1 47829 20244 22802 47% 21 7659 0% /stand /dev/vg00/lvol6 2002251 1444291 357734 80% 14592 302400 5% /opt # ls /tmp .AgentSockets 4837.ps OB2Upgrade.log_7176 ign_configure lost+found null .perflbd.socket 4971.ps dhcpfifo.any last_uuid media_info snmpd.log 111.sh 5224.sh dhcpfifo.root lj4x1894 media_info.tmp # ls -alF total 20 drwxr-xr-x 2 root sys 1024 Mar 28 09:06 ./ drwxr-xr-x 21 root sys 1024 Mar 27 15:37 ../ -rw-r--r-- 1 root sys 3334 Mar 28 12:17 cell_info -rw-r--r-- 1 root sys 6 Mar 27 15:34 cell_server -rw-r--r-- 1 root sys 527 Mar 28 11:59 installation_servers -rw------- 1 root root 79 Mar 28 09:07 lic.dat -rw-r--r-- 1 root sys 105 Mar 27 15:37 omni_info # cd /tmp # ls .AgentSockets 4837.ps OB2Upgrade.log_7176 daemonstat.any.80 ign_configure llbdbase.dat media_info.tmp .perflbd.socket 4971.ps PHSS_22038 dhcpfifo.any last_uuid lost+found null 111.sh 5224.sh PHSS_22373 dhcpfifo.root lj4x1894 media_info snmpd.log # sh PHSS_22038 x - PHSS_22038.text x - PHSS_22038.depot [compressed] # ls -alF total 523616 drwxrwxrwx 5 bin bin 4096 Mar 28 15:39 ./ drwxr-xr-x 25 root root 4096 Mar 27 18:49 ../ drwx------ 2 root root 1024 Mar 28 15:23 .AgentSockets/ srwxrwxrwx 1 root root 0 May 19 1998 .perflbd.socket* -rw-r--r-- 1 root root 23 Mar 27 18:57 111.sh -rw-r--r-- 1 root sys 2942 Mar 28 15:19 4837.ps -rw-r--r-- 1 root sys 2911 Mar 19 14:32 4971.ps -rw-r--r-- 1 root root 23 Mar 28 15:22 5224.sh -rw-r--r-- 1 root sys 17282 Mar 27 15:37 OB2Upgrade.log_7176 -rw-r----- 1 jstile users 170542108 Mar 28 15:30 PHSS_22038 -rw-r--r-- 1 root sys 97269760 Sep 21 2000 PHSS_22038.depot -rw-r--r-- 1 root sys 6912 Sep 25 2000 PHSS_22038.text -rw-r--r-- 1 www other 57380 Mar 28 15:24 daemonstat.any.80 prw-rw-rw- 1 root root 0 Mar 28 15:24 dhcpfifo.any| prw-rw-rw- 1 root root 0 Mar 28 15:24 dhcpfifo.root| drwxr-xr-x 2 root sys 24 Jul 11 2000 ign_configure/ -rw-rw-rw- 1 root root 16 Mar 19 16:11 last_uuid -rw-rw-rw- 1 lp lp 0 Feb 26 12:32 lj4x1894 -r--r--r-- 1 root root 0 Mar 28 15:23 llbdbase.dat drwxr-xr-x 2 root root 8192 Apr 16 1998 lost+found/ -rw-r--r-- 1 root root 490 Mar 11 13:59 media_info -rw-r--r-- 1 root root 1 Mar 11 13:59 media_info.tmp -rw-r--r-- 1 root sys 0 Mar 28 15:23 null -rwxrwxrwx 1 root root 1372 Mar 28 15:23 snmpd.log* # swinstall -s PHSS_22038.depot # swinstall /tmp/PHSS_22038.depot ======= 03/28/01 15:41:36 PST BEGIN swinstall SESSION (non-interactive) * Session started for user "root@oview". * Beginning Selection * Target connection succeeded for "oview:/". ERROR: There is currently no depot software on host "oview" at location "/var/spool/sw". * Source connection failed for "oview:/var/spool/sw". WARNING: More information may be found in the daemon logfile on this target (default location is oview:/var/adm/sw/swagentd.log). * Selection had errors. ======= 03/28/01 15:41:38 PST END swinstall SESSION (non-interactive) # swinstall -s /tmp/PHSS_22038.depot * swinstall exit underway. Cleaning up. # ls .AgentSockets 4971.ps PHSS_22038.depot dhcpfifo.root llbdbase.dat null .perflbd.socket 5224.sh PHSS_22038.text ign_configure lost+found snmpd.log 111.sh OB2Upgrade.log_7176 daemonstat.any.80 last_uuid media_info 4837.ps PHSS_22038 dhcpfifo.any lj4x1894 media_info.tmp # rm -rf PHSS_22038.depot PHSS_22038.text # rm -rf PHSS_22038 # mv /home/jstile/PHSS_22 1) PHSS_22373 2) PHSS_22910 3) PHSS_22914 # mv /home/jstile/PHSS_22373 . # sh PHSS_22373 x - PHSS_22373.text x - PHSS_22373.depot [non-ascii] # swinstall -s /tmp/PHSS_22373.depot * swinstall exit underway. Cleaning up. # rm -rf PHSS_22373.text PHSS_22373.depot PHSS_22373 # mv /home/jstile/PH 1) PHSS_22910 2) PHSS_22914 # mv /home/jstile/PHSS_22910 . # sh PHSS_22910 x - PHSS_22910.text x - PHSS_22910.depot [compressed] # swinstall -s /tmp/PHSS_22910.depot * swinstall exit underway. Cleaning up. # rm -rf PHSS_22910* # mv /home/jstile/PHSS_22914 .