[Openstack] problem in preparing and labeling the drives in order to mount them

pragya jain prag_2648 at yahoo.co.in
Thu Sep 12 06:05:53 UTC 2013


I have to prepare and label the drives in order to mount them.
I run some commands to survey what's on the system:
root at arun-Aspire-5742:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda4 177866264 4164648 164666508 3% / udev 2918600 4 2918596 1% /dev tmpfs 1170364 892 1169472 1% /run none 5120 4 5116 1% /run/lock none 2925908 216 2925692 1% /run/shm
root at arun-Aspire-5742:~# cat /proc/mounts rootfs / rootfs rw 0 0 sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 udev /dev devtmpfs rw,relatime,size=2918600k,nr_inodes=198985,mode=755 0 0 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 tmpfs /run tmpfs rw,nosuid,relatime,size=1170364k,mode=755 0 0 /dev/disk/by-uuid/5259827c-cc52-43f4-bc2c-7aac2f927b02 / ext4 rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered 0 0 none /sys/fs/fuse/connections fusectl rw,relatime 0 0 none /sys/kernel/debug debugfs rw,relatime 0 0 none /sys/kernel/security securityfs rw,relatime 0 0 none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0 none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0 gvfs-fuse-daemon /home/arun/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
root at arun-Aspire-5742:~# ls /sys/block loop0 loop3 loop6 ram1 ram12 ram15 ram4 ram7 sda sr1 loop1 loop4 loop7 ram10 ram13 ram2 ram5 ram8 sdb loop2 loop5 ram0 ram11 ram14 ram3 ram6 ram9 sr0
root at arun-Aspire-5742:~# sudo blkid /dev/sda1: LABEL="System Reserved" UUID="12BA0286BA026717" TYPE="ntfs" /dev/sda2: UUID="D8EA06E4EA06BEAE" TYPE="ntfs" /dev/sda4: UUID="5259827c-cc52-43f4-bc2c-7aac2f927b02" TYPE="ext4" /dev/sda5: UUID="8AE41BA8E41B9613" TYPE="ntfs" /dev/sda6: UUID="3A14E4D814E497E1" TYPE="ntfs" /dev/sda7: UUID="a7c2ed39-1081-4702-9aed-a42b80a07cff" TYPE="swap" /dev/sr1: LABEL="20110729_053228" TYPE="iso9660"
root at arun-Aspire-5742:~# sudo mkfs.xfs -L d1 /dev/sda2 mkfs.xfs: /dev/sda2 appears to contain an existing filesystem (ntfs).
mkfs.xfs: Use the -f option to force overwrite.
Now, my problem is: I don't understand which device should I label as "d1"? how many devices should I label as "d1", "d2" etc.?
Please help me in this regard.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130912/915e3103/attachment.html>


More information about the Openstack mailing list