Grokbase
x

Ruslan Sivak (r...@istandfor.com)

Profile | Posts (69)

User Information

Display Name:Ruslan Sivak
Partial Email Address:r...@istandfor.com
Posts:
69 total
69 in CentOS

5 Most Recent

All Posts
1) Ruslan Sivak [CentOS] Backup
| +1 vote
We have a RHEL2 server that has had one of the drives in the raid array fail. I would like to do a...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
We have a RHEL2 server that has had one of the drives in the raid array
fail.  I would like to do a full backup of the system before we replace 
the raided drive, in case the second drive decides to die during the
procedure.

What is the recommended way to back up a linux system?  I was thinking 
of doing a snapshot, but the system is ext3 with no LVM.  It has been 
suggested to hook up a usb drive and do an rsync of /.  Are there any 
better solutions?

The reason I wanted a snapshot is that I wanted to get an image of the
disk, so that I wouldn't have to reinstall and reconfigure all the apps.

Russ
_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
2) Ruslan Sivak Re: [CentOS] mounting filesystems with blocks larger then 4k over aloop device
| +1 vote
The page size is currently 4k. I'm running "Linux domU-12-31-36-00-51-72 2.6.16-xenU #1 SMP Mon May...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Flaherty, Patrick wrote:
>> mount: Function not implemented
>>
>> looking at dmesg I get:
>>
>> XFS: Attempted to mount file system with blocksize 8192 bytes
>> XFS: Only page-sized (4096) or less blocksizes currently work.
>> XFS: SB validate failed
>>
>>
>> I had similar issues with reiserFS. Is there a way to get a
>> filesystem with larger then 4k blocks in CentOS 5?
>>     
>
> maybe you need to specify block size (bs= see the mount manpage) when
> mounting or...
> the man page says it can only be as big as pagesize. Check your page
> size `$ getconf PAGE_SIZE`, maybe that's the problem.
>
> See also: http://lwn.net/Articles/249169/
>
> http://www.uwsg.iu.edu/hypermail/linux/kernel/0706.2/1960.html: Commit
> seems to show after linux-2.6.22 you should be able to ignore page size
> when mounting XFS volumes.
>
> Good luck
> Patrick
> _______________________________________________
> CentOS mailing list
> [email protected: C...@centos.org]
> http://lists.centos.org/mailman/listinfo/cent
>

The page size is currently 4k.  I'm running "Linux 
domU-12-31-36-00-51-72 2.6.16-xenU #1 SMP Mon May 28 03:41:49 SAST 2007
i686 athlon i386 GNU/Linux".  I there a 2.6.22 or later kernel available?

Russ

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
3) Ruslan Sivak Re: [CentOS] mounting filesystems with blocks larger then 4k over a loop device
| +1 vote
Looks like I would need something like this: http://lwn.net/Articles/249169/ does anyone know wh...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Ruslan Sivak wrote:
> So I'm playing around with S3 and elasticdrive, and I create a
> filesystem on it with a block size larger then 4k.
> mkfs.xfs -b size=8k /mnt/ed5/ed0 -f
>
> This completes fine and sets up the proper filesystem. When I try to
> mount it, however, I get:
>
> mount /mnt/ed5/ed0 /mnt/eds35/ -o loop
>
>
> mount: Function not implemented
>
> looking at dmesg I get:
>
> XFS: Attempted to mount file system with blocksize 8192 bytes
> XFS: Only page-sized (4096) or less blocksizes currently work.
> XFS: SB validate failed
>
>
> I had similar issues with reiserFS. Is there a way to get a
> filesystem with larger then 4k blocks in CentOS 5?
>
> Russ
>

Looks like I would need something like this:

http://lwn.net/Articles/249169/

does anyone know wh ether this is part of CentOS yet, or if there is
some sort of binary available?

Russ


_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
4) Ruslan Sivak Re: [CentOS] backups and md5 all in one while splitting
| +1 vote
How does this sub-shell redirection work? Can someone explain the syntax to me or shoot me a link...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Ross S. W. Walker wrote:
>
> 'tee' splits the stdin into multiple output streams.
>
> The first instance of tee you listed gave it a file name and a pipe to
> output the stdout to.
>
> The second instance did a redirection to a sub-shell which then passed
> it to 'split' and it also had a pipe.
>
> -Ross
>

How does this sub-shell redirection work?  Can someone explain the 
syntax to me or shoot me a link to a doc somewhere?

Russ

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
5) Ruslan Sivak Re: [CentOS] backups and md5 all in one while splitting
| +1 vote
This seems to work well, but I have no idea what it's doing. Can someone walk me through what tee...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Shad L. Lords wrote:
>> I'm trying to back up our svn repositories, and I found a nice little
>> backup command line bzip's the backup and creates the md5 hash all in
>> one:
>>
>> svnadmin dump --deltas /repo |bzip2 |tee dump.bz2 | md5sum >dump.md5
>>
>> The problem is I need to split the backups, so this doesn't really
>> work. Is there perhaps another way of piping things to allow for
>> splitting of the backups? Currently I'm doing something like this
>>
>> svnadmin dump --deltas /repo |bzip2 |split - -b 64m
>> cat *.bz2* | md5sum >dump.md5
>>
>> Is there a way to do this all in one step?
>
> What about:
>
> svnadmin dump --deltas /repo | bzip2 | tee >(split -b 64m - dump.bz2.)
> | md5sum > dump.md5
>
> -Shad
> _______________________________________________
> CentOS mailing list
> [email protected: C...@centos.org]
> http://lists.centos.org/mailman/listinfo/centos

This seems to work well, but I have no idea what it's doing.  Can 
someone walk me through what
tee >(split -b 64m - dump.bz2.) does and why?

Russ


_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos

spacer
Profile | Posts (69)
Home > People > Ruslan Sivak