vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Can anybody out there remember how to reslice disks and volumes. Our support people all claim to have forgotten (I never knew) The problem: Digging around in smit I think our current configuration is: Physical disk hdisk4 Volume group vold3 Logical volume lvd3 File System d3 We have a single "spare" disk in the system mounted as /d3 - I need to reslice this into two partitions and remount them as /d3 and /eht (for example) i can find where to rename /d3 to /eht, but cannot figure out how to slice out a new area. I am sure I am missing a step as I go thru smit and I cannot figure out how to achieve this. I would like somebody to give me a step by step to do this guide if possible Many thanks EHT |
| |||
| A Volume Group ( VG ) consist of 1 or more hdisks. A VG holds 1 or more Logical Volumes (LV). which hold normaly a Filessystem ( FS) So for your problem: Find out the name of the VG which contains a FS that is mounted as /d3 # lsfs /d3 | tail -1 | cut -f3 -d"/" | xargs lslv | grep GROUP You will see something like: $ LOGICAL VOLUME: lv01 VOLUME GROUP: datavg Now check if you have enough free space in that VG # lsvg datavg and look for .... FREE PPs: If yes: # smitty chfs and use the VG name where to place the new FS. If not: Reduce the LV which holds /d3 - but this is another story wich depends pretty much of your OS level. Also i still hope that you do not use an old smitty on an old SUN machine because your writing sounds to an SUN Admin. hth Hajo |
| |||
| Hajo Ehlers wrote: > A Volume Group ( VG ) consist of 1 or more hdisks. > > A VG holds 1 or more Logical Volumes (LV). which hold normaly a > Filessystem ( FS) > > So for your problem: > Find out the name of the VG which contains a FS that is mounted as /d3 > > # lsfs /d3 | tail -1 | cut -f3 -d"/" | xargs lslv | grep GROUP > > You will see something like: > $ LOGICAL VOLUME: lv01 VOLUME GROUP: datavg > > Now check if you have enough free space in that VG > # lsvg datavg > and look for .... FREE PPs: > > If yes: > # smitty chfs > and use the VG name where to place the new FS. > > If not: Reduce the LV which holds /d3 - but this is another story wich > depends pretty much of your OS level. > > Also i still hope that you do not use an old smitty on an old SUN > machine because your writing sounds to an SUN Admin. > > hth > Hajo Thanks for the reply, but the file system appears to be the full volume which is why I need to trash it and reconfigure from scratch - it is a spare disk so I don't mind doing this. I just don't want to accidentally trash the other 4 disks - (users get really upset!) The machine is IBM e30 - I am just an aging unix hack that has got fed up with "professionals" saying it cannot be done. oslevel 4.3.1.0 lv = lvd3 Total PP's 544 vg = vold3 Total PP's 546 Free 1 You appear to say I need to reduce the LV size, I cannot see a way to do this thru smit? |
| |||
| In the old days a reduce means - recreate ;-) If you do not care about the data: #umount your FS mounted on /d3 umount /d3 # remove the FS with the mount point /d3. The rmfs will remove the FS and the underlying LV rmfs /d3 # Now a lsvg vold3 should show 545 free PP's . One PP is used normaly for the JFS log. lsvg vold3 # Now recreate the filesystem with the size of 1 PP ( We will not care about the LV names ) or if you know the final size replace the 1 with the amount of 512BytesBLock crfs -v jfs -g vold3 -a size=1 -m /d3 -A yes crfs -v jfs -g vold3 -a size=1 -m /d4 -A yes mount /d3 mount /d4 # or use 'smitty crfs' . Afterwards you should be able to increase the FS /d3 /d4 with chfs -a size=NewSizeIn512BytesBlock /d3 chfs -a size=NewSizeIn512BytesBlock /d4 hth Hajo |
| Thread Tools | |
| Display Modes | |
|
|