Re[2]: dump/restore, how to reduce slice size
Здравствуйте, Robert. Вы писали 30 сентября 2011 г., 4:11:15: >> From owner-freebsd-questi...@freebsd.org Thu Sep 29 14:37:35 2011 >> Date: Thu, 29 Sep 2011 22:36:38 +0300 >> From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= >> To: freebsd-questions@freebsd.org >> Subject: dump/restore, how to reduce slice size >> >> Hi, Freebsd-questions. >> >> # df -h >> Filesystem SizeUsed Avail Capacity Mounted on >> /dev/ad4s1a 2G206M1.6G11%/ >> devfs 1.0k1.0k 0B 100%/dev >> /dev/ad4s1e3.9G 13M3.6G 0%/tmp >> /dev/ad4s1f 40G 25G 12G67%/usr >> /dev/ad4s1d 31G3.6G 24G13%/var >> procfs 4.0k4.0k 0B 100%/proc >> /dev/ad2s1f 39G 25G 10G71%/mnt >> devfs 1.0k1.0k 0B 100%/var/named/dev >> >> >> as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G >> but on ad4s1f only 25G used. >> >> How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f? >> >> These commands: >> #mount /dev/ad2s1f /mnt >> #cd /mnt >> #dump -0Lf - /usr | restore -rf - >> does not help, because of ad2s1f does not have space to restore >> 'end of ' /dev/ad4s1f. >> >> May help any? RB> ad2s1f already has 25 gigs of stuff on it. with ounly 14 gigs 'free'. RB> ad4s1f has 25 gigs of stuff on _it_. RB> The 25 gigs of ad4s1f will not fit in the 14 gigs of free space on RB> ad2s1f. It is state after restoration. Before that I do the prestine file system with: newfs /dev/ad2s1f mount /dev/ad2s1f /mnt cd /mnt dump -0Lf - /usr | restore -rf - at the end of restore process I got error about that on target file system there is no inode . abourt? [yn] I type 'n'. there are about 10 inodes missed. when I compare files it seems that are same on source and target. Is that Ok, may I do not worry about that error messages? RB> Now, RB> *IF* the existing 'stuff' on ad2s1f is of no value, and the -only- thing RB> you want to have on that filesystem is the 'copy' of ad4s1f, RB> *THEN* there is 'simple' solution. You need to delete the files on RB> ad4s1f -before- trying the dump/restor. In the commnds you show, above, RB> fter the 'cd /mnt', and before the dump/restore, Type in 'rm -fr /mnt/*', RB> but DO NOT hit the enter key. Look at what you typed, and make sure RB> that there is no white-spce immediately before the '*'. Double check RB> that there is no whitespce after the first '/'. or before the 2nd one. RB> TRIPLE CHECK that there are no spaces before the '*'. Have you made RB> a full back-up of the system recently? If not, abort this commqnd, and RB> make the full backup before trying this again. RB> *IF* you are absolutely certain you have typed the commnd correctly, _and_ RB> you have current full-system backup, then go ahead nd press the enter RB> key. thank you for attention. I understand that. RB> As my friend Dante Brown once remarked: RB> "All hope abandon RB> ye who press Enter RB> here." -- С уважением, Коньков mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: dump/restore, how to reduce slice size
On Fri, Sep 30, 2011 at 03:41:26PM +0200, Damien Fleuriot wrote: > > > On 9/29/11 10:09 PM, Jerry McAllister wrote: > > On Thu, Sep 29, 2011 at 10:36:38PM +0300, ??? ??? wrote: > > > >> Hi, Freebsd-questions. > >> > >> # df -h > >> Filesystem SizeUsed Avail Capacity Mounted on > >> /dev/ad4s1a 2G206M1.6G11%/ > >> devfs 1.0k1.0k 0B 100%/dev > >> /dev/ad4s1e3.9G 13M3.6G 0%/tmp > >> /dev/ad4s1f 40G 25G 12G67%/usr > >> /dev/ad4s1d 31G3.6G 24G13%/var > >> procfs 4.0k4.0k 0B 100%/proc > >> /dev/ad2s1f 39G 25G 10G71%/mnt > >> devfs 1.0k1.0k 0B 100%/var/named/dev > >> > >> > >> as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G > >> but on ad4s1f only 25G used. > >> > >> How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f? > >> > >> These commands: > >> #mount /dev/ad2s1f /mnt > >> #cd /mnt > >> #dump -0Lf - /usr | restore -rf - > >> does not help, because of ad2s1f does not have space to restore > >> 'end of ' /dev/ad4s1f. > >> > >> May help any? > > > > Well, you are going to have difficulty putting 50 GB on a 39 GB partition. > >(25GB + 25GB = 50GB). > > It won't work. > > > > You could try compressing the dump, but dump files do not tend > > to compress well and even if you got a 50% compression, you would > > still be really close to overfill. > > > > Probably you need to go to the store and get a nice big USB drive > > and slice and partition it in to a bunch of 50 GB partitions and > > pipe your dump to a restore in those partitions on that drive. > > You can round-robin your backups to those USB partitions. > > > > My backup to a USB hard drive just saved me the beginning of > > this week when the old machine died of heat prostration. > > > > > Dump is supposed to take only the used space. Yes. He already has 25 GB used on the partition and wants to add another approx 25 GB in a 39 GB partition. There ain't room. jerry > > @OP, refer the following link for correct dump/restore syntax: > http://www.wonkity.com/~wblock/docs/html/backup.html#_tt_dump_tt_with_compression > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: dump/restore, how to reduce slice size
>>> # df -h >>> Filesystem SizeUsed Avail Capacity Mounted on >>> /dev/ad4s1a 2G206M1.6G11%/ >>> devfs 1.0k1.0k 0B 100%/dev >>> /dev/ad4s1e3.9G 13M3.6G 0%/tmp >>> /dev/ad4s1f 40G 25G 12G67%/usr >>> /dev/ad4s1d 31G3.6G 24G13%/var >>> procfs 4.0k4.0k 0B 100%/proc >>> /dev/ad2s1f 39G 25G 10G71%/mnt >>> devfs 1.0k1.0k 0B 100%/var/named/dev >>> >>> >>> as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G >>> but on ad4s1f only 25G used. >>> >>> How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f? You can't. ad4s1f has 25G of files, but ad2s1f only has 10G of free space. You need a bigger disk. If you're just moving things around, I agree that a $100 USB disk is the best way to store backups temporarily. R's, John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: dump/restore, how to reduce slice size
On 9/29/11 10:09 PM, Jerry McAllister wrote: > On Thu, Sep 29, 2011 at 10:36:38PM +0300, ??? ??? wrote: > >> Hi, Freebsd-questions. >> >> # df -h >> Filesystem SizeUsed Avail Capacity Mounted on >> /dev/ad4s1a 2G206M1.6G11%/ >> devfs 1.0k1.0k 0B 100%/dev >> /dev/ad4s1e3.9G 13M3.6G 0%/tmp >> /dev/ad4s1f 40G 25G 12G67%/usr >> /dev/ad4s1d 31G3.6G 24G13%/var >> procfs 4.0k4.0k 0B 100%/proc >> /dev/ad2s1f 39G 25G 10G71%/mnt >> devfs 1.0k1.0k 0B 100%/var/named/dev >> >> >> as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G >> but on ad4s1f only 25G used. >> >> How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f? >> >> These commands: >> #mount /dev/ad2s1f /mnt >> #cd /mnt >> #dump -0Lf - /usr | restore -rf - >> does not help, because of ad2s1f does not have space to restore >> 'end of ' /dev/ad4s1f. >> >> May help any? > > Well, you are going to have difficulty putting 50 GB on a 39 GB partition. >(25GB + 25GB = 50GB). > It won't work. > > You could try compressing the dump, but dump files do not tend > to compress well and even if you got a 50% compression, you would > still be really close to overfill. > > Probably you need to go to the store and get a nice big USB drive > and slice and partition it in to a bunch of 50 GB partitions and > pipe your dump to a restore in those partitions on that drive. > You can round-robin your backups to those USB partitions. > > My backup to a USB hard drive just saved me the beginning of > this week when the old machine died of heat prostration. > Dump is supposed to take only the used space. @OP, refer the following link for correct dump/restore syntax: http://www.wonkity.com/~wblock/docs/html/backup.html#_tt_dump_tt_with_compression ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: dump/restore, how to reduce slice size
On Thu, Sep 29, 2011 at 10:36:38PM +0300, ??? ??? wrote: > Hi, Freebsd-questions. > > # df -h > Filesystem SizeUsed Avail Capacity Mounted on > /dev/ad4s1a 2G206M1.6G11%/ > devfs 1.0k1.0k 0B 100%/dev > /dev/ad4s1e3.9G 13M3.6G 0%/tmp > /dev/ad4s1f 40G 25G 12G67%/usr > /dev/ad4s1d 31G3.6G 24G13%/var > procfs 4.0k4.0k 0B 100%/proc > /dev/ad2s1f 39G 25G 10G71%/mnt > devfs 1.0k1.0k 0B 100%/var/named/dev > > > as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G > but on ad4s1f only 25G used. > > How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f? > > These commands: > #mount /dev/ad2s1f /mnt > #cd /mnt > #dump -0Lf - /usr | restore -rf - > does not help, because of ad2s1f does not have space to restore > 'end of ' /dev/ad4s1f. > > May help any? Well, you are going to have difficulty putting 50 GB on a 39 GB partition. (25GB + 25GB = 50GB). It won't work. You could try compressing the dump, but dump files do not tend to compress well and even if you got a 50% compression, you would still be really close to overfill. Probably you need to go to the store and get a nice big USB drive and slice and partition it in to a bunch of 50 GB partitions and pipe your dump to a restore in those partitions on that drive. You can round-robin your backups to those USB partitions. My backup to a USB hard drive just saved me the beginning of this week when the old machine died of heat prostration. jerry jerry > > -- > Konkov mailto:kes-...@yandex.ru > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
dump/restore, how to reduce slice size
Hi, Freebsd-questions. # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ad4s1a 2G206M1.6G11%/ devfs 1.0k1.0k 0B 100%/dev /dev/ad4s1e3.9G 13M3.6G 0%/tmp /dev/ad4s1f 40G 25G 12G67%/usr /dev/ad4s1d 31G3.6G 24G13%/var procfs 4.0k4.0k 0B 100%/proc /dev/ad2s1f 39G 25G 10G71%/mnt devfs 1.0k1.0k 0B 100%/var/named/dev as you can see /dev/ad4s1f is 40G and /dev/ad2s1f is 39G but on ad4s1f only 25G used. How can I dump /dev/ad4s1f and restore it on /dev/ad2s1f? These commands: #mount /dev/ad2s1f /mnt #cd /mnt #dump -0Lf - /usr | restore -rf - does not help, because of ad2s1f does not have space to restore 'end of ' /dev/ad4s1f. May help any? -- Konkov mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"