Dariush Debian Diary
Diariusz Dariusza
, 25, 2008
Backups with snapshots
pokurcz:/home/ftp# xfs_freeze -f /fs/tmpptc/
pokurcz:/home/ftp# lvcreate -l 500 -s -n tsnap /dev/dat/tmpptc
Logical volume "tsnap" created
pokurcz:/home/ftp# mkdir /fs/snapt
pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/tmp
tmpf tmpptc
pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/tmp
tmpf tmpptc
pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/
bck devetch fs ftp tmpf tmpptc tsnap
pokurcz:/home/ftp# mount -o nouuid,ro /dev/dat/tsnap /fs/snapt/
pokurcz:/home/ftp# xfs_freeze -u /fs/tmpptc
pokurcz:/home/ftp#
pokurcz:/home/ftp# cd /fs/tmpptc/
pokurcz:/fs/tmpptc# ls
TL1_6-install.pdf
VMware-VMvisor-InstallerCD-3.5.0-67921.i386.iso conieface.xfsdump.gz hypervisor_performance_comparison_1_0_5_with_esx-data.pdf ldap.pem q testy
pokurcz:/fs/tmpptc# touch HELLO.WORLD
pokurcz:/fs/tmpptc# ls /fs/snapt/
VMware-VMvisor-InstallerCD-3.5.0-67921.i386.iso conieface.xfsdump.gz hypervisor_performance_comparison_1_0_5_with_esx-data.pdf ldap.pem q testy
pokurcz:/fs/tmpptc#
Clean up:
pokurcz:/fs/tmpptc# umount /fs/snapt/
pokurcz:/fs/tmpptc# lvremove -f /dev/dat/
tmpf tmpptc tsnap
pokurcz:/fs/tmpptc# lvremove -f /dev/dat/tsnap
Logical volume "tsnap" successfully removed
Last modified on
, 22, 2008
Remove disks from lvm
HN:/home/eyck# pvscan PV /dev/dm-10 VG systems lvm2 [65.00 GB / 5.93 GB free] PV /dev/dm-9 VG cdb lvm2 [70.00 GB / 1.89 GB free] PV /dev/dm-8 VG spool lvm2 [797.47 GB / 81.70 GB free] PV /dev/cciss/c0d0p5 lvm2 [32.98 GB] PV /dev/cciss/c1d0p5 lvm2 [67.83 GB] PV /dev/cciss/c1d1p5 lvm2 [67.83 GB] PV /dev/cciss/c1d2p5 lvm2 [273.45 GB] PV /dev/cciss/c1d3p1 lvm2 [279.39 GB] Total: 8 [1.62 TB] / in use: 3 [932.46 GB] / in no VG: 5 [721.49 GB] HN:/home/eyck# pvremove /dev/cciss/c1d3p1 Labels on physical volume "/dev/cciss/c1d3p1" successfully wiped HN:/home/eyck# pvremove /dev/cciss/c1d2p5 Labels on physical volume "/dev/cciss/c1d2p5" successfully wiped HN:/home/eyck# pvremove /dev/cciss/c1d1p5 Labels on physical volume "/dev/cciss/c1d1p5" successfully wiped HN:/home/eyck# pvremove /dev/cciss/c0d0p5 Labels on physical volume "/dev/cciss/c0d0p5" successfully wiped HN:/home/eyck# pvremove /dev/cciss/c1d0p5 Labels on physical volume "/dev/cciss/c1d0p5" successfully wiped HN:/home/eyck# HN:/home/eyck# pvscan PV /dev/dm-10 VG systems lvm2 [65.00 GB / 5.93 GB free] PV /dev/dm-9 VG cdb lvm2 [70.00 GB / 1.89 GB free] PV /dev/dm-8 VG spool lvm2 [797.47 GB / 81.70 GB free] Total: 3 [932.46 GB] / in use: 3 [932.46 GB] / in no VG: 0 [0 ]
Last modified on
Kerberos and k5startkadmin -k -p eyck@DOMAIN
Last modified on
Copyright ©1995-2004 Dariush Pietrzak. All content on this website, unless otherwise noted, is licensed under a Creative Commons License.
Using desktop theme, version 0.5. Check the Blosxom site for the latest copy.
| January 2008 | ||||||
|---|---|---|---|---|---|---|
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||
Subscribe to a syndicated feed of this weblog, brought to you by the power of RSS.
