General :: What Is The Difference Between Ext2online And Resize2fs Command
Mar 9, 2011What is the difference between ext2online and resize2fs command?
View 3 RepliesWhat is the difference between ext2online and resize2fs command?
View 3 Replieswhat is the function of resize2fs command and how this command works internally , how it is related to inodenumber or does it format the partition
View 6 Replies View Relatedi m doing certification in RHCE. i have learn much more in Linux. now i m going towards LInux hardware programming.i had solved enough questions about internal working of commands that r used in Linux. bt i m not understand hows resize2fs command actually work.i kknow this command is used to shrink or extend the partion or file system.but hows that possible.wat is the internal woring of that command.
View 1 Replies View RelatedWhat is the difference between *.xml and *.xml in find command in Linux/macThe results of:find . -name *.xml and find . -name *.xml are different. But why?Also, is locate '*.xml' better than find? Which one is the most commonly used?
View 1 Replies View RelatedWhat is difference between lvreduce and lvresize command?
View 2 Replies View RelatedFor searching a file or directory i normally use grep command. kindly can you guide me the difference between grep and find command. I have used both but that are the difference between them ? are the same or grep is new as comapird to find command.
View 2 Replies View RelatedI have written a set of aliases in a file.When i tried to dot it( "Prompt> . filename" ). It said " Permission denied. "But, when I sourced it ("Prompt> source filename"). It worked perfectly.Linux manual has one entry for both the commands. Then what am I missing ?
View 5 Replies View RelatedI'm currently in the process of remove a drive from an lvm. I am following this guide
[URL]
and to be honest I have also posted this question at [URL] but I have a fair amount of data at stake here and really need to make sure I'm acting safely. This is certainly not a place to button mash or guess.this is the 2nd drive that I am removing, the first one went off without a problem.However, I just received this error
Code:
resize2fs: Can't read next inode while trying to resize /dev/vg0/lvol0
and I'm not sure what it means or where to go from here. The entire output is
Code:
root@dude:/mnt# resize2fs -p /dev/vg0/lvol0 4466524456k
resize2fs 1.41.4 (27-Jan-2009)
Resizing the filesystem on /dev/vg0/lvol0 to 1116631114 (4k) blocks.
[code]....
so i have a few shell scripts that execute wonderfully when i type them at the command line but they fail when they are run from cron.
for example, if i run a script from command line that contains
Code:
shopt -s nullglob
to prevent problems with for f in *.mp4 type loops, it works fine from terminal command line but when called from cron, it gives an error->
Code:
/home/centralsqwall/Videos/videochecker.sh: 91: shopt: not found
a couple other random errors as well...
so there is some difference in the shell from cron and the terminal?
i'm running ubuntu 9.10, #!/bin/bash
what are the commands i should be using to echo my environment or simulate cron environment from the terminal?
i am using red hat linux 2.4 . I have 3 folders dir1 dir2 dir3 I have tarred them like this.
1.tar cvfz tarball_1.tgz dir1 dir2 dir3
2.tar cvfz tarball_2.tgz dir1 dir2 dir3 2>& /dev/null (So that it does not display any error message or operation details to the user)
[usr@machine]$ ls -lrt
-rw-r--r-- 1 usr grp 199843988 May 17 13:39 tarball_1.tgz
-rw-r--r-- 1 usr grp 199837488 May 17 13:53 tarball_2.tgz
But can any one explain the size difference as seen in list output...
I just wanted to know the difference between Using Sudo mechanism over using Power breaker utilities.
View 4 Replies View RelatedI have a machine running Arch Linux (2010, I believe) with a 6TB RAID-5 array hooked up to a Highpoint RocketRaid 2320. I've been having issues with the RAID controller's drivers and the latest Linux kernels thanks to the driver not being open-source, and as a result I am migrating the system to Windows Server.Problem is that the 6TB disk originally was comprised only of an ext4 partition.I shrunk the partition down as much as I could, and added a NTFS partition in the empty space so I could start moving files. That went fine. Problem is that now I need to shrink the ext4 partition again, move files, shrink again, etc. The second run through resize2fs is taking way longer than the first pass.It seems to be getting stuck at pass 3:
[root@nar-shaddaa rc.d]# resize2fs -p /dev/sdb3 863000000
resize2fs 1.41.14 (22-Dec-2010)
Resizing the filesystem on /dev/sdb3 to 863000000 (4k) blocks.
[code]....
I am not especially cli adept so could someone tell me the best way to use the diff command to get the difference between a string of text and the contents of a file instead of between the contents of two files?
View 3 Replies View RelatedWhat is different? When I execute the "man source", and "man ." are same. Is it same? or not? If it is different, what is it?
View 2 Replies View RelatedI needed to shrink a filesystem so I could take a drive out of a RAID5 array. I unmounted the fs, then ran e2fsck on it and it found 5.9% non contiguous files but no errors. Then I ran resize2fs -f /dev/whatever 1300G (initial size was 2500G, used space was at this time only 1136G). It started operating and after some hours I received a lot of messages on the output as mdadm started resync in the background. Now the resync is done but nothing moves. Here is the output I received in the terminal window where resize2fs was ran :
Code:
computer:/# e2fsck /dev/stold/storold
e2fsck 1.41.3 (12-Oct-2008)
/dev/st/stor a �t� mont� 68 fois sans avoir �t� v�rifi�, v�rification forc�e.
Passe*1*: v�rification des i-noeuds, des blocs et des tailles
[code]....
I understand that it doesn't do nothing anymore, as it doesn't consume any CPU cycles anymore. What can I do now ? It's running near 24 hours now ! How can I try to escape from this situation without loosing all data ?
Example: In rc2.d I have S99test. In it: Code: #!/bin/sh mplayer -playlist "/music/Thom Yorke - The Eraser" Reboot; hear the loveliness; press pause (lirc setup)...still loveliness.
Login as root; "pkill mplay";hear nothing; "/etc/rc2.d/S99test"; more loveliness; press pause...silence! I know that i the former case, mplayer is assigned (for lack of a proper term) to a session, e.g. tty1. Not so in the latter. But why should a program like mplayer not receive (or ignore?) input from lircd, simply because it doesn't have a session? And how can I get mplayer (or any program run from boot scripts) to work with other programs (like lircd)?
I'm somewhat a newbie at LVM and have encountered a real problem for me. During resize2fs after extending my LV i ended up with a crash. Now I'm worried I have lost all my old data. How can I proceed to get the volume in working order?
NoFear ~ # lvextend -L+400G /dev/vgftp/lvftp
Extending logical volume lvftp to 4.16 TiB
Logical volume lvftp successfully resized
NoFear ~ # umount /dev/vgftp/lvftp
NoFear ~ # resize2fs /dev/vgftp/lvftp
resize2fs 1.41.10 (10-Feb-2009)
Please run 'e2fsck -f /dev/vgftp/lvftp' first .....
NoFear ~ # e2fsck -f /dev/vgftp/lvftp
e2fsck 1.41.10 (10-Feb-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/vgftp/lvftp: 308343/505479168 files (18.3% non-contiguous),
1006593162/1010942976 blocks
NoFear ~ # resize2fs /dev/vgftp/lvftp
resize2fs 1.41.10 (10-Feb-2009)
Resizing the filesystem on /dev/vgftp/lvftp to 1115800576 (4k) blocks.
** CRASH / HANG **
25hours waiting and nothing happens. No disk I/O going on or anything. I have no backups or anything of this volume. What can I do do revert the process to get the disks back? I have not done anything at all after the crash/hang in fear of destroying something.
I am running Oracle Enterprise Linux x64 5.5 on an HP Proliant DL380 G6 attached to various SAN's via fibre channel. I have setup multipath, edited multipath.conf, lvm.conf, and after some trial and error, everything behaves and looks as it should in regard to multipath. However, when I try to resize a multipath ext3 lvm filesystem, The operation runs for a while, but then dies and I get the above error. I then see this error in /var/log/messages:
EXT3-fs warning (device dm-9): ext3_group_add: No reserved GDT blocks, can't resize
-I am only using the /dev/mapper/ paths to the filesystem (ie, resize2fs /dev/mapper/testvol-lvol1 128G)
-if I unmount the filesystem, resize2fs works fine
-Have tried removing and re-adding journal file via tune2fs with no luck
-The VG has plenty of room in it and is composed of a 100GB and 200GB partition.
-Inode resize is on in the filesystem
I am wondering if online resize2fs is only for small filesystems or not recommended as a best practice or just not generally done??? As I mentioned, the operation works fine offline if I unmount the filesystem, but this won't be an option once system is in production.
so the safest way to go about this is to assume I know nothing. I mean, I have a rough Idea of what a kernel is, no idea what a shell is, etc. I do consider myself computer savvy, but know NOTHING about linux and thats why I'm Diving in, hopefully not too much, this is just to give you an idea of what we're working with here.
After several install attempts I kept getting a blank screen. Whether it be black,white, or the default gnome desktop (without any icons, and simple things like ctrl+alt+backspace just doesn't work, or anything else for that matter) I was ending up with a blank screen. Driver for moniter....maybe....but I did succesfully install it once, and it worked like a charm...shutdown properly, and the next day after work...Boom, same thing after startup.today I started from scratch and re-installed....samething, until I hit the power button, went from the dvd(iso) and did a fail safe, now my resolution is much better than it was the first time..Actual questions.....what did I do to fix it when failsafe never worked before?
Is there a way to save these settings, so I don't run into the problem again, because I don't even want to turn of my computer at this point?If i'm trying to dive in and learn the command line actions, is there any substancial difference between gnome terminal or hitting "c" to bring up the command line?
I'm trying to use GParted from a liveusb to resize my ext4 Ubuntu partition, but it's been stuck on the "shrink file system...resize2fs" for two days straight. The progress bar is still going back and forth, and top shows a lot of CPU activity, but it won't move past this point. I know it's a bad idea to stop GParted while it's resizing, what I can do, maybe a way to check to see if it's actually busy resizing the partition?
View 1 Replies View Relateddf -k
/dev/sda6 25396228 21249088 2836240 89% /export
21G used[code].....
The 3.4G is correct because we have removed all non essential file but free space reported by df is not consistent with the actual free space that should be there.
the difference between GLX and EGL?
View 1 Replies View Relatedwhat is the difference between C and gcc...
View 12 Replies View RelatedLast week in one of the Interview Dump Papers I read about NIS+. Anyone who can quick reference how the setting up NIS is different from NIS+.
View 1 Replies View Relatedwhat is the difference between a GUI and KDE..
View 5 Replies View RelatedI need to know the exact difference between SCP and SSH can somebody explain please as i am confused as both seem to do the same thing if so let me know what the difference is.
View 4 Replies View RelatedWhat is the difference between /dev/tty and /dev/pts ??
I google a lot but didn't understand......
Thanks in advance
What is the difference between |less and |more ?
View 7 Replies View RelatedI tried to download ISO file and saw ,Download ISO 1 and Download ISO 2 .What is the difference between two ISO's?
View 4 Replies View RelatedWhat is the main difference between these two ? NIS and LDAP ?
View 1 Replies View Related