home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / aix / 13639 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  4.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!navier.math.uh.edu!mcbryde
  2. From: mcbryde@navier.math.uh.edu (Jack Mcbryde)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: disk space
  5. Date: 22 Jan 1993 04:29:45 GMT
  6. Organization: UH Dept of Math
  7. Lines: 92
  8. Message-ID: <1jnt7pINNdp6@menudo.uh.edu>
  9. References: <1993Jan22.003726.17271@sobeco.com>
  10. NNTP-Posting-Host: navier.math.uh.edu
  11. Keywords: disk vg lv df
  12.  
  13. In article <1993Jan22.003726.17271@sobeco.com> emillion@sobeco.com (E.J.Millions) writes:
  14. >I recently added a disk to an existing volume group and am somewhat 
  15. >puzzled by the difference between df and lslv, as follows
  16. >
  17. >% df
  18. >Filesystem    Total KB    free %used   iused %iused Mounted on
  19. >/dev/lv04      2097152  865984   58%   15372     2% /mounts/b
  20. >% lslv lv04
  21. >LOGICAL VOLUME:     lv04                   VOLUME GROUP:   vg03
  22. >...
  23. >MAX LPs:            600                    PP SIZE:        4 megabyte(s)
  24. >COPIES:             1                      SCHED POLICY:   parallel
  25. >LPs:                568                    PPs:            568
  26. >...
  27. >MOUNT POINT:        /mounts/b              LABEL:          /mounts/b
  28. >
  29. >Perhaps it is simply that I'm tired and it's time to go home, but
  30. >the last time I checked  2,097 Meg was not equivalent to 4x568=2,272 Meg.
  31.  
  32. Looks like the 2Gb filesystem limit may have gotten you. I don't know anyway
  33. to reclaim the space other than deleting the filesystem and logical volume
  34. and recreating it the easy foolproof way. (There may be one, I just don't
  35. know it.) 
  36.  
  37. This is for lots of people out there. Unless you want to do stuff with things
  38. like raw partitions there is *no* reason to screw around with logical volumes
  39. in order to create/enlarge filesystems. (Except to change the maximum number
  40. of physical partitions.) All it does is mess people up.
  41.  
  42. Here is the simple foolproof way to do it:
  43.   For a filesystem <= .5Gb with the disk already in the volume group:
  44.     smitty
  45.       Physical & Logical Storage
  46.         File Systems
  47.           Add / Change / Show / Delete File Systems
  48.             Journaled File Systems
  49.               Add a Journaled File System
  50.               or
  51.               Change / Show Characteristics of a Journaled File System
  52.               (if it already exists)
  53.  
  54. To add a new disk to a volume group:
  55.   smitty
  56.     Physical & Logical Storage
  57.       Logical Volume Manager
  58.         Volume Groups
  59.           Set Characteristics of a Volume Group
  60.             Add a Physical Volume to a Volume Group
  61.  
  62. To modify the default .5Gb limit:
  63.   smitty
  64.     Physical & Logical Storage
  65.       Logical Volume Manager
  66.         Logical Volumes
  67.           Set Characteristic of a Logical Volume
  68.             Change a Logical Volume
  69.               LOGICAL VOLUME name (use F4)
  70.                 change the line that says 
  71.                 MAXIMUM NUMBER of LOGICAL PARTITIONS
  72.                 to 512 (this gives you the 2Gb limit)
  73.  
  74. If you do things this way you will never have to count the physical partition,
  75. you will never have mismatched amount of disk allocated to a logical volume
  76. and its corresponding filesystem, and you will spend less time messing
  77. around in smit. Don't make it harder than it needs to be. Most of the IBMer's
  78. I've seen do this strange crap with allocating more physical partitions to
  79. a logical volume before they try to enlarge a filesystem. It's not necessary.
  80.  
  81. What I do is stick a disk into a volume group. (It's own if I can get away
  82. with it. But that's another story.) Then if I need a new filesystem, I add
  83. a filesystem. (as in first set of menus) If I need it to be larger (but
  84. less than .5Gb) I follow the first set of menus. smit takes care of all of
  85. the underlying logical volume stuff for you. If I need it to be larger than
  86. .5Gb then I follow the second set of menus (and I always change it it 512,
  87. that way I never have to do it again - this is just resetting the maximum
  88. possible size it doesn't use up space) followed by the first. 
  89.  
  90. BTW, any irritation that may be detected on my part is not with you or any
  91. in particular individual. I just get so tired of watching people making
  92. the logical volume manager more complicated and messy than it needs to be.
  93. I suspect that IBM is responsible whether it be by virtue of classes, unclear
  94. documentation, or SE's. Then again maybe it has do do with a Sun mindset
  95. where you have to preallocate all of your disk before you can possibly really
  96. know where it is going to need to go. Gack!
  97.  
  98. later,
  99. jack
  100. --
  101. jack      mcbryde@karazm.math.uh.edu    * All I ask of Thee, Lord
  102. * Christ died for our sins.  Dare we    * Is to be a drinker and fornicator
  103. * make his martyrdom meaningless by     * An unbeliever and a sodomite
  104. * not committing them? - Jules Feiffer  * And then to die. - Claude de Chauvigny
  105.