This is used for migrating logical
volumes to or from offline storage.
???
??? ???
???
???
??? ??? ??? ??? ??? ??? ??? ???
Storage
[ 94 ]
In this section we will create a Ubuntu Feisty Fawn installation on LVM volume.
Time for Action??”Using LVM
We will create the volumes needed for our installation first, and then install Ubuntu
onto the volume.
1. Create a physical volume on a disk partition:
# pvcreate /dev/hda6
2. Display the details of the various physical volumes present in your system:
3. Create a volume group on the physical volume with a name gandalf:
# vgcreate gandalf /dev/hda6
4. You can display the various volume groups present on your server by using
the vgdisplay command.
Chapter 6
[ 95 ]
5. Create a logical volume for storing our image and name the volume feisty:
# lvcreate ??“L 4094M ??“n feisty gandalf
6. The logical volume details can de displayed by using the
lvdisplay command.
7. The lvscan command is used to scan all the logical volumes and their
current status. As you can see below, we have two logical volumes and both
are currently active.
Storage
[ 96 ]
8. Create the ext3 file system on our newly created logical volume.
9. Create a directory and mount the logical volume:
# mkdir /mnt/feisty
# mount /dev/gandalf/feisty /mnt/feisty
10. Run debootstrap. This will download and extract all the necessary files to the
above mounted directory:
~ /usr/sbin/debootstrap --arch i386 feisty /mnt/feisty
http://archive.
Pages:
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94