Re: dasdfmt assistance...next
Just noticed that there is a '-r' option on the lvextend command: -r|--resizefs Frank M. Ramaekers Jr. -Original Message- From: Frank M. Ramaekers Sent: Monday, July 9, 2018 5:05 PM To: LINUX-390@VM.MARIST.EDU Subject: RE: dasdfmt assistance...next Resize2fs seems to work just fine: resize2fs /dev/mapper/clefos_mfclef00-home resize2fs 1.42.9 (28-Dec-2013) Filesystem at /dev/mapper/clefos_mfclef00-home is mounted on /home; on-line resizing required old_desc_blocks = 3, new_desc_blocks = 4 The filesystem on /dev/mapper/clefos_mfclef00-home is now 8076288 blocks long. Frank M. Ramaekers Jr. -Original Message- From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of R P Herrold Sent: Monday, July 9, 2018 4:08 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: dasdfmt assistance...next On Mon, 9 Jul 2018, Frank M. Ramaekers wrote: > Okay, I'm now stuck at expanding the logical volume (the whole purpose > of this exercise was to expand the /home mount point). > xfs_growfs /home > xfs_growfs: /home is not a mounted XFS filesystem > > Hmmmnot a XFS, then what is it? 'df' only shows that it is a ext4: xfs is a filesystem. So is ext4 see man mount If you want to expand a mount, I would probably just set up a: 1. new xfs partition of the desired size, and mount it, at say: /tmp/home 2. then rsync the content over: rsync -av /home/. /tmp/home/. 3. run the command twice, 'just in case' 4. umount /home, and /tmp/home 5. manually edit /etc/fstab to point to the new one 6. get SElinux properly set: a. # touch /.autorelabel b. # reboot (the system will relabel) The former [ext4 formated] /home/ partition may be scratched -- Russ herrold -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit https://urldefense.proofpoint.com/v2/url?u=http-3A__www.marist.edu_htbin_wlvindex-3FLINUX-2D390=DwIBAg=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=WTruvifGwehpeKadN8Hjr_KHkloQdeit0cYMhg0UmyU=trgd0qSOesx7mhGQ675iU30E8UbufEs2JzD-hIia1uc= -- For more information on Linux on System z, visit https://urldefense.proofpoint.com/v2/url?u=http-3A__wiki.linuxvm.org_=DwIBAg=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=WTruvifGwehpeKadN8Hjr_KHkloQdeit0cYMhg0UmyU=pVKZWs7vwOODYtEYLVhyPLfK_f0UXOggqurU2h22K5g= -- This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at privacy...@torchmarkcorp.com. -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: dasdfmt assistance...next
Resize2fs seems to work just fine: resize2fs /dev/mapper/clefos_mfclef00-home resize2fs 1.42.9 (28-Dec-2013) Filesystem at /dev/mapper/clefos_mfclef00-home is mounted on /home; on-line resizing required old_desc_blocks = 3, new_desc_blocks = 4 The filesystem on /dev/mapper/clefos_mfclef00-home is now 8076288 blocks long. Frank M. Ramaekers Jr. -Original Message- From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of R P Herrold Sent: Monday, July 9, 2018 4:08 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: dasdfmt assistance...next On Mon, 9 Jul 2018, Frank M. Ramaekers wrote: > Okay, I'm now stuck at expanding the logical volume (the whole purpose > of this exercise was to expand the /home mount point). > xfs_growfs /home > xfs_growfs: /home is not a mounted XFS filesystem > > Hmmmnot a XFS, then what is it? 'df' only shows that it is a ext4: xfs is a filesystem. So is ext4 see man mount If you want to expand a mount, I would probably just set up a: 1. new xfs partition of the desired size, and mount it, at say: /tmp/home 2. then rsync the content over: rsync -av /home/. /tmp/home/. 3. run the command twice, 'just in case' 4. umount /home, and /tmp/home 5. manually edit /etc/fstab to point to the new one 6. get SElinux properly set: a. # touch /.autorelabel b. # reboot (the system will relabel) The former [ext4 formated] /home/ partition may be scratched -- Russ herrold -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit https://urldefense.proofpoint.com/v2/url?u=http-3A__www.marist.edu_htbin_wlvindex-3FLINUX-2D390=DwIBAg=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=WTruvifGwehpeKadN8Hjr_KHkloQdeit0cYMhg0UmyU=trgd0qSOesx7mhGQ675iU30E8UbufEs2JzD-hIia1uc= -- For more information on Linux on System z, visit https://urldefense.proofpoint.com/v2/url?u=http-3A__wiki.linuxvm.org_=DwIBAg=laxeQK7vPmHfouIIPNyCfbQd49eK3u00U8Jdo0RFvts=EOaM1MkMLG24_TOy4m7EdDoX0CP9-c0YJ2kTdeagcqQ=WTruvifGwehpeKadN8Hjr_KHkloQdeit0cYMhg0UmyU=pVKZWs7vwOODYtEYLVhyPLfK_f0UXOggqurU2h22K5g= -- This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at privacy...@torchmarkcorp.com. -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: dasdfmt assistance...next
On Mon, 9 Jul 2018, Frank M. Ramaekers wrote: > Okay, I'm now stuck at expanding the logical volume (the > whole purpose of this exercise was to expand the /home mount > point). > xfs_growfs /home > xfs_growfs: /home is not a mounted XFS filesystem > > Hmmmnot a XFS, then what is it? 'df' only shows that it is a ext4: xfs is a filesystem. So is ext4 see man mount If you want to expand a mount, I would probably just set up a: 1. new xfs partition of the desired size, and mount it, at say: /tmp/home 2. then rsync the content over: rsync -av /home/. /tmp/home/. 3. run the command twice, 'just in case' 4. umount /home, and /tmp/home 5. manually edit /etc/fstab to point to the new one 6. get SElinux properly set: a. # touch /.autorelabel b. # reboot (the system will relabel) The former [ext4 formated] /home/ partition may be scratched -- Russ herrold -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: dasdfmt assistance...next
Okay, I'm now stuck at expanding the logical volume (the whole purpose of this exercise was to expand the /home mount point). I'm to the point of: xfs_growfs /home xfs_growfs: /home is not a mounted XFS filesystem Hmmmnot a XFS, then what is it? 'df' only shows that it is a ext4: df -Th Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/clefos_mfclef00-root ext4 35G 7.7G 25G 24% / devtmpfs devtmpfs 481M 0 481M 0% /dev tmpfstmpfs 496M 0 496M 0% /dev/shm tmpfstmpfs 496M 44M 452M 9% /run tmpfstmpfs 496M 0 496M 0% /sys/fs/cgroup /dev/dasda1 ext4 976M 170M 740M 19% /boot /dev/mapper/clefos_mfclef00-home ext4 17G 17G 0 100% /home tmpfstmpfs 100M 0 100M 0% /run/user/1000 So, how do I know what filesystem was used for this? I have successfully: pvcreate vgextend lvextend LV info: --- Logical volume --- LV Path/dev/clefos_mfclef00/home LV Namehome VG Nameclefos_mfclef00 LV UUID41Fnrx-v3UJ-uH70-QBC6-WNhQ-a4TX-Jm3F3L LV Write Accessread/write LV Creation host, time mfclef00.torchmarkcorp.com, 2018-05-22 15:09:39 -0500 LV Status available # open 1 LV Size<30.81 GiB Current LE 7887 Segments 5 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:2 TIA, Frank M. Ramaekers Jr. -Original Message- From: Frank M. Ramaekers Sent: Monday, July 9, 2018 3:19 PM To: LINUX-390@VM.MARIST.EDU Subject: RE: dasdfmt assistance Good catch...the web page I was using has a '-f', but perhaps they meant '-F'...or possibly no longer viable. Without the nonexistent switch, it formats. Thanks, Frank M. Ramaekers Jr. -Original Message- From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Neal Scheffler Sent: Monday, July 9, 2018 3:08 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: dasdfmt assistance I don't see -f listed as a valid option. On Mon, Jul 9, 2018 at 3:28 PM Frank M. Ramaekers wrote: > > This is a ClefOS 7.5 system: > > dasdfmt --help > Usage: dasdfmt [OPTIONS] DEVICE > > Use dasdfmt to format a DASD ECKD device for use by Linux. > DEVICE is the node of the device (e.g. '/dev/dasda'). > > FORMAT ACTIONS > -M, --mode MODE Specify scope of operation using MODE: > full: Full device (default) > quick: Only the first two tracks > expand: Unformatted tracks at device end > --check Perform complete format check on device > > FORMAT OPTIONS > -b, --blocksize SIZE Format blocks to SIZE bytes (default 4096) > -d, --disk_layout LAYOUT Specify the disk layout: > cdl: Compatible Disk Layout (default) > ldl: Linux Disk Layout > -k, --keep_volser Do not change the current volume serial > -l, --label VOLSERSpecify volume serial number > -L, --no_labelDon't write a disk label > -r, --requestsize NUM Process NUM cylinders in one formatting step > --norecordzeroPrevent storage server from modifying record 0 > -yStart formatting without further user-confirmation > > DISPLAY PROGRESS > -m, --hashmarks NUM Show a hashmark every NUM cylinders > -p, --progressbar Show a progressbar > -P, --percentage Show progress in percent > > MISC > -C, --check_host_countCheck if device is in use by other hosts > -F, --force Format without performing sanity checking > -t, --testRun in dry-run mode without modifying the DASD > -vPrint verbose messages when executing > -h, --helpPrint this help, then exit > -V, --version Print version information, then exit > > Frank M. Ramaekers Jr. > > > -Original Message- > From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of > Mark Post > Sent: Monday, July 9, 2018 2:17 PM > To: LINUX-390@VM.MARIST.EDU > Subject: Re: dasdfmt assistance > > >>> On 7/9/2018 at 02:39 PM, "Frank M. Ramaekers" > >>> wrote: > > This response doesn't offer much help. Can anyone assist? > > dasdfmt -b 4096 -d cdl -f /dev/dasdi -k -p -y Try 'dasdfmt --help' > > for more information. > > What does "dasdfmt --help" display on that system? > > > Mark Post > > -- > For LINUX-390 subscribe / signoff / archive access instructions, send > email to lists...@vm.marist.edu with the message: INFO LINUX-390 or > visit >