- #Disc - /dev/sda1 with everything
- pvcreate /dev/sda1
- vgcreate cc11rocksVG /dev/sda1
- lvcreate --size 300G --name boot cc11rocksVG
- resize2fs /dev/sda1 300G #Failed
- pvdisplay #This is what showed up
- ### --- Physical volume ---
- PV Name /dev/sda1
- VG Name cc11rocksVG
- PV Size 691.28 GiB / not usable 3.34 MiB
- Allocatable yes
- PE Size 4.00 MiB
- Total PE 176967
- Free PE 100167
- Allocated PE 76800
- PV UUID wvMkB9-0KHW-fK7v-rMxi-gnwy-ycLL-dhuRmu
- ###
- #Without the "#", I added those to show that they were the output
- root@ubuntu:/dev# mkfs.ext4 /dev/cc11rocksVG/boot #Output below
- ###mke2fs 1.42 (29-Nov-2011)
- Filesystem label=
- OS type: Linux
- Block size=4096 (log=2)
- Fragment size=4096 (log=2)
- Stride=0 blocks, Stripe width=0 blocks
- 19660800 inodes, 78643200 blocks
- 3932160 blocks (5.00%) reserved for the super user
- First data block=0
- Maximum filesystem blocks=0
- 2400 block groups
- 32768 blocks per group, 32768 fragments per group
- 8192 inodes per group
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
- 4096000, 7962624, 11239424, 20480000, 23887872, 71663616
- Allocating group tables: done
- Writing inode tables: done
- Creating journal (32768 blocks): done
- Writing superblocks and filesystem accounting information: done
- ###
- root@ubuntu:~# fdisk -l
- ### Disk /dev/sda: 750.2 GB, 750156374016 bytes
- 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk identifier: 0x000a58db
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2148 1449722656 724860254+ 83 Linux
- Partition 1 does not start on physical sector boundary.
- /dev/sda2 1449722657 1465149167 7713255+ 5 Extended
- Partition 2 does not start on physical sector boundary.
- /dev/sda5 1449722658 1465149167 7713255 83 Linux
- Partition 5 does not start on physical sector boundary.
- Disk /dev/mapper/cc11rocksVG-boot: 322.1 GB, 322122547200 bytes
- 255 heads, 63 sectors/track, 39162 cylinders, total 629145600 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk identifier: 0x00000000
- Disk /dev/mapper/cc11rocksVG-boot doesn't contain a valid partition table
- ###
- #Questions
- Are all of my files gone? Where do I go from here? I originally had Ubuntu 12.04 LTS on /dev/sda1 (sda2 & sda5 are swap, nothing else on drive).
- I started the install to see what the installer would let me do. It's finding "/dev/mapper/cc11rockVG-boot", "/dev/mapper/cc11rocksVG-boot" with type ext4 (322122 MB). Then on to "/dev/sda", encasing "/dev/sda1" (742256 MB) then finally "/dev/sda5" with type swap (7898 MB). It looks like this is how it is supposted to be. How do I transfer the files from my OS (move entire OS into LV), then delete it?
SHARE
TWEET
LVM - Copying old OS?
a guest
Aug 19th, 2012
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

